* The rbd CLI's "lock list" JSON and XML output has changed.
+ * The rbd CLI's "showmapped" JSON and XML output has changed.
+
* The sample ``crush-location-hook`` script has been removed. Its output is
equivalent to the built-in default behavior, so it has been replaced with an
example in the CRUSH documentation.
mapped_images = json.loads(out.getvalue())
if mapped_images:
log.info("Unmapping rbd images on {sn}".format(sn=sn))
- for image in mapped_images.itervalues():
+ for image in mapped_images:
remote.run(args=['sudo', 'rbd', 'unmap', str(image['device'])])
log.info("Cleaning up fio install")
remote.run(args=['rm','-rf', run.Raw(rbd_test_dir)])
return false;
if (f) {
- f->open_object_section(id);
+ f->open_object_section("device");
+ f->dump_string("id", id);
f->dump_string("pool", pool);
f->dump_string("name", image);
f->dump_string("snap", snap);
int r;
if (f) {
- f->open_object_section("devices");
+ f->open_array_section("devices");
} else {
tbl.define_column("id", TextTable::LEFT, TextTable::LEFT);
tbl.define_column("pool", TextTable::LEFT, TextTable::LEFT);