Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1928248

Summary: [gss][ceph-iscsigw][gwcli]issues while adding multiple IP addresses for same iSCSI Gateway
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Geo Jose <gjose>
Component: iSCSIAssignee: Xiubo Li <xiubli>
Status: CLOSED ERRATA QA Contact: Gopi <gpatta>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1CC: ceph-eng-bugs, ceph-qe-bugs, lithomas, mmuench, sostapov, tserlin, vereddy, xiubli
Target Milestone: ---   
Target Release: 5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-iscsi-3.5-1.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:28:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Geo Jose 2021-02-12 17:40:29 UTC
Description of problem:
 While adding multiple IP addresses for the same iSCSI Gateway, gwcli crashing with "KeyError: 'targets'"

Version-Release number of selected component (if applicable):
 gwcli - 2.7.
 RHCS 4.

How reproducible:
 

Steps to Reproduce:
1. Install RHCS 4.
2. Configure iscsigw using ceph-ansible.
3. Start the iSCSI gateway command-line interface.
4. Create the two iSCSI gateways using IPv4.

Reference Documentation:
[a]. https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/block_device_guide/index#the-ceph-iscsi-gateway

Actual results:
 gwcli crashing and fail to add the second iSCSI gateway.

Expected results:
 It should add the second iSCSI gateway, without any issues.

Additional info:

Comment 2 Jason Dillaman 2021-03-03 01:23:04 UTC
While the crash seems to be a definite bug, the proper way to add multiple IP addresses is to provide a comma-separated string when creating the gateway:

/iscsi-target.../gateways> create ansible.sample.com 1.2.3.4,1.2.3.5,1.2.3.6

Comment 23 Gopi 2021-06-23 06:07:38 UTC
Working as expected.

/iscsi-target...-igw/gateways> create magna010 10.8.128.10,2620:52:0:880:225:90ff:fefc:252c
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
ok
/iscsi-target...-igw/gateways> cd
/iscsi-targets> ls
o- iscsi-targets ................................................................................. [DiscoveryAuth: None, Targets: 1]
  o- iqn.2003-01.com.redhat.iscsi-gw:ceph-igw ............................................................ [Auth: None, Gateways: 1]
    o- disks ............................................................................................................ [Disks: 0]
    o- gateways .............................................................................................. [Up: 1/1, Portals: 1]
    | o- magna010 .............................................................. [10.8.128.10,2620:52:0:880:225:90ff:fefc:252c (UP)]

Comment 25 errata-xmlrpc 2021-08-30 08:28:20 UTC
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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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://access.redhat.com/errata/RHBA-2021:3294