When having other groups in ansible.cfg which do not match the usual Ceph pattern (mons, osds, rgws), a KeyError is thrown:
# ./ceph-medic check
Host: rdh-hw20 connection: [connected ]
Host: rdh-hw20 collecting: [paths]Traceback (most recent call last):
File "./ceph-medic", line 6, in <module>
main.Medic()
File "/root/ceph-medic/bin/ceph_medic/main.py", line 44, in __init__
self.main(argv)
File "/root/ceph-medic/bin/ceph_medic/decorators.py", line 45, in newfunc
return f(*a, **kw)
File "/root/ceph-medic/bin/ceph_medic/main.py", line 131, in main
parser.dispatch()
File "/usr/lib/python2.7/site-packages/tambo/dispatcher.py", line 21, in dispatch
return instance.main()
File "/root/ceph-medic/bin/ceph_medic/check.py", line 91, in main
collector.collect()
File "/root/ceph-medic/bin/ceph_medic/collector.py", line 172, in collect
metadata[node_type][node['host']] = node_metadata
KeyError: 'test'
When having other groups in ansible.cfg which do not match the usual Ceph pattern (mons, osds, rgws), a KeyError is thrown:
Ansible cfg snippet: