]> 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... 37085/head
authorSunny Kumar <sunkumar@redhat.com>
Thu, 10 Sep 2020 13:13:27 +0000 (14:13 +0100)
committerSunny Kumar <sunkumar@redhat.com>
Fri, 25 Sep 2020 12:21:12 +0000 (13:21 +0100)
commit9041adae9e7ce9e6c1855818079b128b6af267ba
treeec86e3f44479e3af32a0ff35fa2dcaa6414602c0
parent57ba57296465130e9a10fc734d6a44855119459b
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>
src/pybind/mgr/devicehealth/module.py