]> 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, 21 Jan 2015 17:08:44 +0000 (09:08 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
tasks/ceph_manager.py

index a5c1e78439b0737182af1f8fd5760887f6b58247..9e9caf7f797ae17ca9d634ffdae039e686d8ee7d 100644 (file)
@@ -260,7 +260,10 @@ 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:
+            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))