| Previous | Next |
| VDS_E_ISCSI_LOGOUT_FAILED | VDS_E_ASSOCIATED_LUNS_EXIST |
VDS_E_ISCSI_SESSION_NOT_FOUND
This is a session-identity lookup failure. Depending on the VDS operation, matching can involve the target and connection endpoints represented by target, target portal, and initiator portal objects. RFC 3721 distinguishes the stable iSCSI node name from its addresses, so matching the wrong portal after DHCP, failover, or target migration can miss a live session to the same logical storage node.
Why this state matters
The status is also an expected race possibility in management code: a session can disappear between enumeration and logout. Because VDS objects and asynchronous operations represent a changing storage system, callers should reacquire current state instead of repeatedly operating on a stale cached session assumption.
Diagnostic focus
- Compare the requested target iSCSI name with the active session target name, then compare portal endpoints separately.
- Re-enumerate sessions immediately before the management operation when another storage tool or failover component can change connectivity.
- Check whether the target reconnected through a different portal or initiator portal after path recovery.
- If the desired end state is simply “not logged in,” treat a confirmed absence differently from a failed logout that leaves active sessions.
Technical references
IVdsIscsiInitiatorAdapter::LogoutFromTarget · IVdsIscsiInitiatorAdapter::LoginToTarget · VDS_ISCSI_TARGET_PROP · RFC 3721: iSCSI naming and discovery · MS-VDS error codes
Looking for a different code? Search another status or error code.
