Bug 1489444 - No user friendly error messages from ceph-medic
Summary: No user friendly error messages from ceph-medic
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Medic
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: 3.0
Assignee: Andrew Schoen
QA Contact: Persona non grata
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-07 13:13 UTC by Persona non grata
Modified: 2017-12-05 23:42 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:42:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-medic pull 58 0 None None None 2017-09-07 19:05:06 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

Description Persona non grata 2017-09-07 13:13:37 UTC
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

Comment 2 Persona non grata 2017-09-07 13:15:29 UTC
This error occurred for RHEL 7.4 and  Ubuntu 16.04

Comment 3 Andrew Schoen 2017-09-07 19:05:07 UTC
upstream PR: https://github.com/ceph/ceph-medic/pull/58

Comment 7 errata-xmlrpc 2017-12-05 23:42:05 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-2017:3387


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