]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: Fix Thrasher kill_osd() to ignore pool going away
authorDavid Zafman <dzafman@redhat.com>
Mon, 15 Dec 2014 18:06:02 +0000 (10:06 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 4 Mar 2015 00:09:52 +0000 (16:09 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b239dadc02fc8e09c5bf633a06c479494929e85c)

Conflicts:
tasks/ceph_manager.py

tasks/ceph_manager.py

index 2f35525638c173299c8be8a2605e2ae63318b615..949e46a98ac35a2d4a1ac81cd4f90270f1b84f5a 100644 (file)
@@ -201,8 +201,13 @@ 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:
-                raise Exception("ceph-objectstore-tool: import failure with status {ret}".format(ret=proc.exitstatus))
+            if proc.exitstatus == 10:
+                self.log("Pool went away before processing an import"
+                         "...ignored");
+            elif proc.exitstatus:
+                raise Exception("ceph-objectstore-tool: "
+                                "import failure with status {ret}".
+                                format(ret=proc.exitstatus))
             cmd = "rm -f {file}".format(file=exp_path)
             exp_remote.run(args=cmd)
             if imp_remote != exp_remote: