]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/devicehealth: device_health_metrics pool gets created even without any OSDs in... 37533/head
authorSunny Kumar <sunkumar@redhat.com>
Thu, 10 Sep 2020 13:13:27 +0000 (14:13 +0100)
committerNathan Cutler <ncutler@suse.com>
Sun, 4 Oct 2020 07:43:28 +0000 (09:43 +0200)
commit013719f8978d1f8bd692b2b65e00505b10effcfc
tree87f8ef5f2c416b92e3386e47927d2b7afb4b72f5
parentd44084c9d6f9c0b1b9c1041ec1b2604d548840bb
mgr/devicehealth: device_health_metrics pool gets created even without any OSDs in the cluster

This patch checks if the cluster has any OSD before the 'device_health_metrics'
pool creation by devicehealth, which prevents the cluster entering HEALTH_WARN
immediately after bootstrap.
   
Fixes: https://tracker.ceph.com/issues/46743
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
(cherry picked from commit 9041adae9e7ce9e6c1855818079b128b6af267ba)
src/pybind/mgr/devicehealth/module.py