Bug 1489444
| Summary: | No user friendly error messages from ceph-medic | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Persona non grata <nobody+410372> |
| Component: | Ceph-Medic | Assignee: | Andrew Schoen <aschoen> |
| Status: | CLOSED ERRATA | QA Contact: | Persona non grata <nobody+410372> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.0 | CC: | adeza, gmeno, hnallurv |
| Target Milestone: | rc | ||
| Target Release: | 3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | RHEL: ceph-medic-1.0.3-1.el7cp Ubuntu: ceph-medic_1.0.3-2redhat1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-12-05 23:42:05 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: | |||
This error occurred for RHEL 7.4 and Ubuntu 16.04 upstream PR: https://github.com/ceph/ceph-medic/pull/58 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: While executing "ceph-medic --inventory /path/to/host check" command with invalid inventory path, returned error which was not user friendly. Version-Release number of selected component (if applicable): ceph-medic 1.0.2 How reproducible: Always Steps to Reproduce: 1. Try to check health of a ceph cluster using ceph-medic. Actual results: Traceback (most recent call last): File "/usr/bin/ceph-medic", line 6, in <module> main.Medic() File "/usr/lib/python2.7/dist-packages/ceph_medic/main.py", line 44, in __init__ self.main(argv) File "/usr/lib/python2.7/dist-packages/ceph_medic/decorators.py", line 45, in newfunc return f(*a, **kw) File "/usr/lib/python2.7/dist-packages/ceph_medic/main.py", line 120, in main ceph_medic.config.get('--inventory', self.hosts_file))) File "/usr/lib/python2.7/dist-packages/ceph_medic/util/configuration.py", line 106, in load_hosts return AnsibleInventoryParser(_path) File "/usr/lib/python2.7/dist-packages/ceph_medic/util/configuration.py", line 280, in __init__ with open(filename, 'r') as fh: IOError: [Errno 2] No such file or directory: '/etc/ansible/hostss' Expected results: Invalid path