Bug 1495110
| Summary: | [ceph-iscsi-cli]: If cluster info is not available gwcli should fail gracefully | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Tejas <tchandra> |
| Component: | iSCSI | Assignee: | Jason Dillaman <jdillama> |
| Status: | CLOSED ERRATA | QA Contact: | Tejas <tchandra> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.0 | CC: | ceph-eng-bugs, ceph-qe-bugs, jdillama, mmurthy |
| Target Milestone: | rc | ||
| Target Release: | 3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-12-05 23:45:31 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: | |||
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 |
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