]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/devicehealth: only create pool when we have some osds
authorSage Weil <sage@newdream.net>
Fri, 29 Jan 2021 16:36:39 +0000 (10:36 -0600)
committerSage Weil <sage@newdream.net>
Fri, 29 Jan 2021 16:40:19 +0000 (10:40 -0600)
commit2abf4f1fc368ee74637b0ba1c200e03c02883db8
treecd6ab34a8bfaeff691643be2d3cd72202a3026e5
parent9fea82cacc62bbd484723cdbc8c6729a89d7f23c
mgr/devicehealth: only create pool when we have some osds

If we create the pool before we have OSDs, the PGs won't be active+clean
and we'll raise a health warning that we shouldn't.  This will annoy
a new users deploying a new cluster, and (more importantly?) make
qa tests fail while deploying initial clusters due to the health
warning.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/devicehealth/module.py