]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: "osd safe-to-destroy" - more verbose output 24712/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 23 Oct 2018 07:05:11 +0000 (15:05 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 23 Oct 2018 07:22:44 +0000 (15:22 +0800)
commit6289e7211677654850c41d08c6c9685b327f8d74
treeb2fe8325ee7bd1b1d4c9b443c74460d46db35409
parenta350131d16a3c45af347e96ec34e965e7c588b05
mgr/DaemonServer: "osd safe-to-destroy" - more verbose output

For multiple inputs, we want to avoid a situation like:

```
$ ceph osd safe-to-destroy 0 1 2
Error EBUSY: OSD(s) 1,2 have 96 pgs currently mapped to them
$ ceph osd safe-to-destroy 0
Error EBUSY: OSD(s) 0 last reported they still store some PG data, and not all PGs are active+clean; we cannot be sure they aren't still needed.
```

The first command seems to be implying osd.0 is safe-to-destroy whereas it isn't.
This patch instead gives a complete report of each osd if multiple osds are specified.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mgr/DaemonServer.cc