]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs
authorSage Weil <sage@newdream.net>
Thu, 4 Mar 2021 13:35:24 +0000 (08:35 -0500)
committerSage Weil <sage@newdream.net>
Thu, 4 Mar 2021 13:41:07 +0000 (08:41 -0500)
commit2cce16537c9f9e92bf0a8fce746d0364cbb2d15d
tree65e2db9d1320ee9dec649f71a6fd5262a6fe1b54
parentef0384dc502ba87549babdb6bcf7d2bc27125a10
mgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs

In 791952cc01201010f298033003ba52374cc0159f we switched to return JSON
both on success and fail to describe which PGs are affected or are blocking
the ability to stop/restart OSDs.  Do the same for the case where
some PG states are unknown (i.e., just after a mgr restart) so that
the cephadm upgrade process can unconditionally expect a JSON result.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h