Bug 1602756

Summary: [gwcli] python traceback when pinging REST API
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jason Dillaman <jdillama>
Component: iSCSIAssignee: Jason Dillaman <jdillama>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: low Docs Contact:
Priority: low    
Version: 3.1CC: ceph-eng-bugs, ceph-qe-bugs, rperiyas, tchandra
Target Milestone: z1   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-iscsi-cli-2.7-8.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-09 00:59:17 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 Jason Dillaman 2018-07-18 12:32:27 UTC
Description of problem:

# gwcli --debug
Adding ceph cluster 'ceph' to the UI
Fetching ceph osd information
Querying ceph for state information
Refreshing disk information from the config object
Refreshing gateway & client information
- checking iSCSI/API ports on <GW NODE 1>
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 78, in refresh
    self.target.refresh()
  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 341, in refresh
    tgt.gateway_group.load(self.gateway_group)
  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 406, in load
    Gateway(self, gateway_name, gateway_group[gateway_name])
  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 604, in __init__
    self.refresh()
  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 620, in refresh
    self._get_state()
  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 649, in _get_state
    self.state = lookup[rc].get('status')
KeyError: 403


Version-Release number of selected component (if applicable):
3.0

How reproducible:
100%

Steps to Reproduce:
1. Configure the gwcli to not have access to the REST API via 
2. run "gwcli"

Comment 7 errata-xmlrpc 2018-11-09 00:59:17 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, 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-2018:3530