]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
mon: account for null dict from _admin_socket
authorPaul Cuzner <pcuzner@redhat.com>
Wed, 23 Aug 2017 02:56:37 +0000 (14:56 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Wed, 23 Aug 2017 02:56:37 +0000 (14:56 +1200)
commite827702b7fd2f0586fc303e003b2bf5f33351575
treeb05a98d7678364c15a5ee7a1f016ac29f34d599d
parent9cd82488fe523b51fbb7e06d901356accf55b0b8
mon: account for null dict from _admin_socket

the _admin_socket method could return a null dict if the
socket is not there (i.e. ceph-mon is down). By checking for the
empty dict, the collector can remain active while ceph-mon is
stopped and restarted during normal maintenance processes on a
host.
collectors/mon.py