Red Hat Bugzilla – Bug 1266523
iscsi-ls doesn't work if target has more than one portal
Last modified: 2016-11-04 02:10:37 EDT
Description of problem: libiscsi does not allow you to connect to targets that have more than one portal. Login fails with an error. Version-Release number of selected component (if applicable): 1.9.0-6.el7 How reproducible: Steps to Reproduce: 1. iscsi-ls iscsi://HOST/TARGET Actual results: error Expected results: targets are listed Additional info:
This is common with targets that support ipv6.
Update: it's discovery, not login that fails with an error, so it only affects iscsi-ls.
Fix included in libiscsi-1.9.0-7.el7
Thanks Paolo. Reproduced the bug with libiscsi-1.9.0-6.el7. and verified with libiscsi-1.9.0-7.el7 Create multiple portals as below. /iscsi/iqn.20.../tpg1/portals> ls o- portals ............................................................................................ [Portals: 3] o- 10.66.12.153:3260 ........................................................................................ [OK] o- 192.168.1.1:3260 ......................................................................................... [OK] o- 192.168.1.2:3260 ......................................................................................... [OK] For IPv4: #iscsi-ls iscsi://10.66.12.153/iqn.2016-09.redhat.com Failed to do discovery on target. : Invalid discovery reply # iscsi-ls iscsi://10.66.12.153/iqn.2016-09.redhat.com Target:iqn.2016-09.redhat.com:storage.target0 Portal:10.66.12.153:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:192.168.1.2:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:192.168.1.1:3260,1 For IPv6: #iscsi-ls iscsi://[::1]/iqn.2016-09.redhat.com Failed to do discovery on target. : Invalid discovery reply # iscsi-ls iscsi://[::1]/iqn.2016-09.redhat.com Target:iqn.2016-09.redhat.com:storage.target0 Portal:[::3]:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:[::2]:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:[::1]:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:10.66.12.153:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:192.168.1.2:3260,1 Target:iqn.2016-09.redhat.com:storage.target0 Portal:192.168.1.1:3260,1 Base on this test result. This bug is fixed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2416.html