gwtop KeyError: 'overall_status'
- Dominant language
- Python
- Stars
- 12
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
On CentOS 7.5 with ceph-iscsi-tools (master) a gwtop --debug results in:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gwtop-2.1-py2.7.egg/EGG-INFO/scripts/gwtop", line 48, in run_with_except_hook
File "build/bdist.linux-x86_64/egg/gwtop/UI/textmode.py", line 170, in run
File "build/bdist.linux-x86_64/egg/gwtop/UI/textmode.py", line 148, in update_ceph
File "build/bdist.linux-x86_64/egg/gwtop/config/ceph.py", line 30, in _get_health
KeyError: 'overall_status'
Note: one of the gateways is a Ubuntu 18.04 LTS
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with gwtop/config/ceph.py, especially _get_health, then follow the update_ceph call from gwtop/UI/textmode.py. Reproduce the issue with gwtop --debug in the reported CentOS and Ubuntu gateway setup, and verify that the command completes without the KeyError while handling the health response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100