]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs 39737/head
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 16:21:04 +0000 (10:21 -0600)
commit957528b0dfcaf84119f848a1f7dfb8b1a01ad985
tree067958d5be074ec3bb6a47085b2ea3fc316dae85
parente5b94222773ae8a8fc5fb3ddc3c9db85f0891d32
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>
(cherry picked from commit 2cce16537c9f9e92bf0a8fce746d0364cbb2d15d)
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h