Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-8039

Stuck session - iscsiadm: initiator reported error (32 - target likely not connected)

    • None
    • None
    • rhel-sst-storage-io
    • ssg_filesystems_storage_and_HA
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      As described in https://github.com/open-iscsi/open-iscsi/issues/228

      Probably fixed by https://github.com/open-iscsi/open-iscsi/pull/292

      While target being unavailable, restarting iscsid leads to stuck sessions

      1. iscsiadm -m node
        iscsiadm: No records found
      2. iscsiadm -m discoverydb
        #
      3. iscsiadm -m node -u
        Logging out of session [sid: 25, target: iqn.2017-11.com.redhat:params-test, portal: 127.0.0.1,3260]
        iscsiadm: Could not logout of [sid: 25, target: iqn.2017-11.com.redhat:params-test, portal: 127.0.0.1,3260].
        iscsiadm: initiator reported error (32 - target likely not connected)
        iscsiadm: Could not logout of all requested sessions

      journalctl:
      iscsid: connect to 127.0.0.1:3260 failed (Connection refused)
      ...repeated....

      Version-Release number of selected component (if applicable):
      iscsi-initiator-utils-6.2.1.4-4.git095f59c.el8.x86_64
      iscsi-initiator-utils-iscsiuio-6.2.1.4-2.git2a8f9d8.el9.x86_64

      How reproducible:
      often

      Steps to Reproduce:
      1. establish iscsi session (not sure if CHAP is needed?)
      2. remove volume from target (can be localhost using targetcli)
      3. restart iscsid service
      4. try to logout from the session

      Actual results:
      Unable to remove iscsi session from the system without a reboot

      Expected results:
      No stuck iscsi sessions

              cleech@redhat.com Chris Leech
              mhoyer@redhat.com Martin Hoyer (Inactive)
              Chris Leech Chris Leech
              Zhaojuan Guo Zhaojuan Guo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: