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

iscsiadm - duplicate ifaces created when software iscsi iface logs into the target

    • None
    • Low
    • 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:
      Not sure if this is a bug per se, but can we clarify if this is the expected behaviour and perhaps have it documented?

          1. Creating interfaces:
            [root@storageqe-87 ~]# iscsiadm -m iface -o new -I iface0
            New interface iface0 added
            [root@storageqe-87 ~]# iscsiadm -m iface -o new -I iface1
            New interface iface1 added
          1. Assigning them a mac address - please note the could not scan message:
            [root@storageqe-87 ~]# iscsiadm -m iface -I iface0 -o update -n iface.hwaddress -v b4:96:91:a0:68:8a
            iscsiadm: Could not scan /sys/class/iscsi_transport.
            iface0 updated.
            [root@storageqe-87 ~]# iscsiadm -m iface -I iface1 -o update -n iface.hwaddress -v b4:96:91:a0:68:8b
            iface1 updated.
          1. Discovering a target using the new ifaces
            [root@storageqe-87 ~]# iscsiadm -m discovery -t st -p 172.16.0.10 -I iface0
            172.16.0.10:3260,0 iqn.2002-03.com.compellent:5000d31005728037
            172.16.0.10:3260,0 iqn.2002-03.com.compellent:5000d31005728042
            [root@storageqe-87 ~]# iscsiadm -m discovery -t st -p 172.16.1.10 -I iface1
            172.16.1.10:3260,0 iqn.2002-03.com.compellent:5000d31005728041
            172.16.1.10:3260,0 iqn.2002-03.com.compellent:5000d31005728044
          1. Two ifaces after discovery
            [root@storageqe-87 ~]# iscsiadm -m iface
            iface0 tcp,b4:96:91:a0:68:8a,<empty>,<empty>,<empty>
            iface1 tcp,b4:96:91:a0:68:8b,<empty>,<empty>,<empty>
            default tcp,<empty>,<empty>,<empty>,<empty>
            iser iser,<empty>,<empty>,<empty>,<empty>
          1. Logging into the target
            [root@storageqe-87 ~]# iscsiadm -m node -l
            Logging in to [iface: iface0, target: iqn.2002-03.com.compellent:5000d31005728037, portal: 172.16.0.10,3260]
            Logging in to [iface: iface0, target: iqn.2002-03.com.compellent:5000d31005728042, portal: 172.16.0.10,3260]
            Logging in to [iface: iface1, target: iqn.2002-03.com.compellent:5000d31005728041, portal: 172.16.1.10,3260]
            Logging in to [iface: iface1, target: iqn.2002-03.com.compellent:5000d31005728044, portal: 172.16.1.10,3260]
            Login to [iface: iface0, target: iqn.2002-03.com.compellent:5000d31005728037, portal: 172.16.0.10,3260] successful.
            Login to [iface: iface0, target: iqn.2002-03.com.compellent:5000d31005728042, portal: 172.16.0.10,3260] successful.
            Login to [iface: iface1, target: iqn.2002-03.com.compellent:5000d31005728041, portal: 172.16.1.10,3260] successful.
            Login to [iface: iface1, target: iqn.2002-03.com.compellent:5000d31005728044, portal: 172.16.1.10,3260] successful.
          1. Two new interfaces appeared:
            [root@storageqe-87 ~]# iscsiadm -m iface
            iface0 tcp,b4:96:91:a0:68:8a,<empty>,<empty>,<empty>
            iface1 tcp,b4:96:91:a0:68:8b,<empty>,<empty>,<empty>
            tcp.b4:96:91:a0:68:8a tcp,b4:96:91:a0:68:8a,172.16.0.87,default,<empty>
            tcp.b4:96:91:a0:68:8b tcp,b4:96:91:a0:68:8b,172.16.1.87,default,<empty>
            default tcp,<empty>,<empty>,<empty>,<empty>
            iser iser,<empty>,<empty>,<empty>,<empty>

      (Even if I assign iface0 and iface1 IP beforehand, the new ifaces are still being created)

      Version-Release number of selected component (if applicable):
      RHEL-8, RHEL-9

              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:
              5 Start watching this issue

                Created:
                Updated: