]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: ceph_objectstore_tool.py: Perform dump-import 19368/head
authorDavid Zafman <dzafman@redhat.com>
Sat, 9 Dec 2017 02:48:21 +0000 (18:48 -0800)
committerDavid Zafman <dzafman@redhat.com>
Sat, 9 Dec 2017 02:50:04 +0000 (18:50 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/special/ceph_objectstore_tool.py

index efc827ec4406addc152a85c16cb171b2f5c3529b..afb463f76cac0234b08db85a1e6917676a5d6d94 100755 (executable)
@@ -1749,6 +1749,13 @@ def main(argv):
             PGS = [f for f in os.listdir(dir) if os.path.isfile(os.path.join(dir, f))]
             for pg in PGS:
                 file = os.path.join(dir, pg)
+                # Make sure this doesn't crash
+                cmd = (CFSD_PREFIX + "--op dump-import --file {file}").format(osd=osd, file=file)
+                logging.debug(cmd)
+                ret = call(cmd, shell=True, stdout=nullfd)
+                if ret != 0:
+                    logging.error("Dump-import failed from {file} with {ret}".format(file=file, ret=ret))
+                    IMP_ERRORS += 1
                 # This should do nothing
                 cmd = (CFSD_PREFIX + "--op import --file {file} --dry-run").format(osd=osd, file=file)
                 logging.debug(cmd)