Just because one OSD's metadata is missing,
don't give up on outputting all the other
OSDs' metadata.
Signed-off-by: John Spray <john.spray@redhat.com>
f->open_object_section("osd");
f->dump_unsigned("id", i);
r = dump_osd_metadata(i, f.get(), NULL);
- if (r < 0)
+ if (r == -EINVAL || r == -ENOENT) {
+ // Drop error, continue to get other daemons' metadata
+ dout(4) << "No metadata for osd." << i << dendl;
+ r = 0;
+ continue;
+ } else if (r < 0) {
+ // Unexpected error
goto reply;
+ }
f->close_section();
}
}