Block Storage Host Reports "Unable to locate Target IQN"

Problem

A Block Storage (Cinder) host is logging the following (in /var/log/messages ) related to being unable to locate a target IQN.

Bash
Copy

Environment

  • Platform9 Managed OpenStack - All Versions
  • Block Storage (Cinder)

Cause

The volume referenced (by UUID) no longer exists, i.e. it has been deleted, but, a hypervisor did not log out its iSCSI connection (likely due to a missed RPC calls, which can result from flaky networking).

Resolution

1) List iSCSI connections for a host.

Bash
Copy

2) If a session is present (for the referenced volume UUID), logout the iSCSI connection, passing the target name with -T and the IP:port of the iSCSI portal (typically the Block Storage host – the IP is shown in the previous output) with -p .

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard