From c4602c9ac8f7819abc89c8668fbdc4572341ac5e Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 8 Dec 2017 18:48:21 -0800 Subject: [PATCH] test: ceph_objectstore_tool.py: Perform dump-import Signed-off-by: David Zafman --- qa/standalone/special/ceph_objectstore_tool.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/standalone/special/ceph_objectstore_tool.py b/qa/standalone/special/ceph_objectstore_tool.py index efc827ec4406a..afb463f76cac0 100755 --- a/qa/standalone/special/ceph_objectstore_tool.py +++ b/qa/standalone/special/ceph_objectstore_tool.py @@ -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) -- 2.39.5