]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/DaemonServer: add js-output for "ceph osd safe-to-destroy"
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 29 Oct 2018 08:56:07 +0000 (16:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 15 Nov 2018 03:02:01 +0000 (11:02 +0800)
commit432f19435523d455ecd4f386e58ee1f033cf97e2
treeb2c925a31148b30f69d719c52a9c832542190389
parent43840db329c2e349efc8ea10b3fee8a2f6a202d8
mgr/DaemonServer: add js-output for "ceph osd safe-to-destroy"

E.g.:
 - case 1:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
Error EAGAIN: 12 pgs have unknown state; cannot draw any conclusions

 - case 2:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
{
    "safe_to_destroy": [
        0,
        1,
        2
    ],
    "active": [],
    "missing_stats": [],
    "stored_pgs": []
}

 - case 3:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
{
    "safe_to_destroy": [],
    "active": [
        0,
        1,
        2
    ],
    "missing_stats": [],
    "stored_pgs": []
}

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