ceph tell mgr osd status
}
+function test_mgr_devices()
+{
+ ceph device ls
+ expect_false ceph device info doesnotexist
+ expect_false ceph device get-health-metrics doesnotexist
+}
+
function test_per_pool_scrub_status()
{
ceph osd pool create noscrub_pool 12
MDS_TESTS+=" mds_tell_help_command"
MGR_TESTS+=" mgr_tell"
+MGR_TESTS+=" mgr_devices"
TESTS+=$MON_TESTS
TESTS+=$OSD_TESTS
} else if (what.size() > 7 &&
what.substr(0, 7) == "device ") {
string devid = what.substr(7);
- daemon_state.with_device(devid, [&f, &tstate] (const DeviceState& dev) {
- PyEval_RestoreThread(tstate);
- f.dump_object("device", dev);
- });
+ if (!daemon_state.with_device(
+ devid,
+ [&f, &tstate] (const DeviceState& dev) {
+ PyEval_RestoreThread(tstate);
+ f.dump_object("device", dev);
+ })) {
+ // device not found
+ PyEval_RestoreThread(tstate);
+ }
return f.get();
} else if (what == "io_rate") {
cluster_state.with_pgmap(