ceph / ceph-medic

find common issues in ceph clusters
MIT License
22 stars 18 forks source link

internal errors are reported incorrectly #108

Closed alfredodeza closed 5 years ago

alfredodeza commented 5 years ago
33 passed, 6 errors, 4 warnings, [KeyError('/etc/ceph/ceph.conf',), TypeError("'>' not supported between instances of 'str' and 'int'",), KeyError('/etc/ceph/ceph.conf',), KeyError('/etc/ceph/ceph.conf',), AttributeError("'NoneType' object has no attribute 'get_safe'",), AttributeError("'NoneType' object has no attribute 'get_safe'",), KeyError('/etc/ceph/ceph.conf',), TypeError("'>' not supported between instances of 'str' and 'int'",)] internal errors, on 3 hosts
alfredodeza commented 5 years ago

Also a problem to solve here is that the KeyError should be caught and ignored in that check, so that it doesn't bubble up as an internal error - it isn't - because other checks look for missing ceph.conf files