]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ignore bogus ceph-objectstore-tool error in ceph_manager 13194/head
authorNathan Cutler <ncutler@suse.com>
Mon, 30 Jan 2017 23:46:22 +0000 (00:46 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 30 Jan 2017 23:49:05 +0000 (00:49 +0100)
Fixes: http://tracker.ceph.com/issues/16263
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/tasks/ceph_manager.py

index 17cf2cb30be40a40e31326cd28dab53d8c502184..d0e6a27765e6d734363ec01ef6a9b7c0071a06ee 100644 (file)
@@ -299,7 +299,12 @@ class Thrasher:
             cmd = (prefix + "--op import --file {file}")
             cmd = cmd.format(id=imp_osd, file=exp_path)
             proc = imp_remote.run(args=cmd, wait=True, check_status=False)
-            if proc.exitstatus == 10:
+            output = proc.stderr.getvalue()
+            bogosity = "The OSD you are using is older than the exported PG"
+            if proc.exitstatus == 1 and bogosity in output:
+                self.log("OSD older than exported PG"
+                         "...ignored")
+            elif proc.exitstatus == 10:
                 self.log("Pool went away before processing an import"
                          "...ignored")
             elif proc.exitstatus == 11: