Description of problem: I have a scenario where rbd-target-* services are up and running, but gwcli is not able to read the cluster info. In such a case, the error message from gwcli should reflect the same, and it should fail gracefully. ~]# gwcli -d Adding ceph cluster 'ceph' to the UI Fetching ceph osd information Querying ceph for state information Traceback (most recent call last): File "/usr/bin/gwcli", line 187, in <module> main() File "/usr/bin/gwcli", line 93, in main root_node = ISCSIRoot(shell) File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 55, in __init__ self.ceph = CephGroup(self) File "/usr/lib/python2.7/site-packages/gwcli/ceph.py", line 55, in __init__ keyring) File "/usr/lib/python2.7/site-packages/gwcli/ceph.py", line 141, in __init__ self.update_state() File "/usr/lib/python2.7/site-packages/gwcli/ceph.py", line 211, in update_state status['health'].get('summary') TypeError: 'NoneType' object is not iterable Version-Release number of selected component (if applicable): ceph-iscsi-cli-2.5-7.el7cp.noarch ceph-iscsi-config-2.3-8.el7cp.noarch
Error message has been added. [root@avenger ~]# gwcli -d Adding ceph cluster 'ceph' to the UI Fetching ceph osd information Querying ceph for state information Unable to access the configuration object : REST API failure, code : 500 Traceback (most recent call last): File "/usr/bin/gwcli", line 187, in <module> main() File "/usr/bin/gwcli", line 99, in main root_node.refresh() File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 86, in refresh raise GatewayError gwcli.utils.GatewayError [root@avenger ~]# Versions: ceph-iscsi-cli-2.5-8.el7cp.noarch ceph-iscsi-config-2.3-10.el7cp.noarch
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://access.redhat.com/errata/RHBA-2017:3387