Bug 1602756 - [gwcli] python traceback when pinging REST API
Summary: [gwcli] python traceback when pinging REST API
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: iSCSI
Version: 3.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z1
: 3.1
Assignee: Jason Dillaman
QA Contact: Tejas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-18 12:32 UTC by Jason Dillaman
Modified: 2018-11-09 01:00 UTC (History)
4 users (show)

Fixed In Version: ceph-iscsi-cli-2.7-8.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-09 00:59:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-iscsi-cli pull 109 0 None None None 2018-07-18 16:24:39 UTC
Red Hat Product Errata RHBA-2018:3530 0 None None None 2018-11-09 01:00:30 UTC

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


Note You need to log in before you can comment on or make changes to this bug.