Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iscsi: Keep existing session on "session exists" (backport for 4.5.0) #168

Closed

Conversation

nirs
Copy link
Member

@nirs nirs commented May 9, 2022

If logging in to a node fails with "session exists" (error 15):

iscsiadm: initiator reported error (15 - session exists)

We use to remove the node, which disconnects the node and remove it.
This is not new behavior, but it seems that in 4.4 this cleanup was not
effective in the case of logging in to the same connection more than
once, and now it reliably disconnect the first node and leave the host
without any nodes, which makes it non operational.

Change iscsiadm to raise new IscsiSessionExists error, and keep the
existing session when handling this error.

With this change, if you try to connect to the same target more than
once, the host should end with one connected target.

NOTE: This is a backport for testing the patch with QE automated tests.

Bug-Url: https://bugzilla.redhat.com/2083271
Signed-off-by: Nir Soffer nsoffer@redhat.com

If logging in to a node fails with "session exists" (error 15):

    iscsiadm: initiator reported error (15 - session exists)

We use to remove the node, which disconnects the node and remove it.
This is not new behavior, but it seems that in 4.4 this cleanup was not
effective in the case of logging in to the same connection more than
once, and now it reliably disconnect the first node and leave the host
without any nodes, which makes it non operational.

Change iscsiadm to raise new IscsiSessionExists error, and keep the
existing session when handling this error.

With this change, if you try to connect to the same target more than
once, the host should end with one connected target.

Bug-Url: https://bugzilla.redhat.com/2083271
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs force-pushed the backport/4.5.0/iscsi-session-exists branch from 3a3dc51 to 2d060a5 Compare May 9, 2022 15:52
@nirs nirs changed the title iscsi: Keep existing session on "session exists" iscsi: Keep existing session on "session exists" (backport for 4.5.0) May 9, 2022
@nirs nirs self-assigned this May 9, 2022
@nirs nirs added the storage label May 9, 2022
@nirs
Copy link
Member Author

nirs commented May 10, 2022

Too late for 4.5.0 now, the fix will be available in 4.5.1 via #166.

@nirs nirs closed this May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant