]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: fix shell osd for ceph-objectstore-tool commands
authorSage Weil <sage@redhat.com>
Sun, 19 Jan 2020 21:32:25 +0000 (15:32 -0600)
committerSage Weil <sage@redhat.com>
Sun, 19 Jan 2020 21:32:25 +0000 (15:32 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph_manager.py

index f83b5d58a796b00e28a9d885447fe7278344207a..2f9b747939a385af8eb4e98725aa86d91011db7d 100644 (file)
@@ -286,7 +286,7 @@ class OSDThrasher(Thrasher):
             with safe_while(sleep=15, tries=40, action="ceph-objectstore-tool --op list-pgs") as proceed:
                 while proceed():
                     proc = self.run_ceph_objectstore_tool(
-                        exp_remote, 'osd.%s' % osd,
+                        exp_remote, 'osd.%s' % exp_osd,
                         prefix + [
                             '--data-path', FSPATH.format(id=exp_osd),
                             '--journal-path', JPATH.format(id=exp_osd),
@@ -325,7 +325,7 @@ class OSDThrasher(Thrasher):
             # export
             # Can't use new export-remove op since this is part of upgrade testing
             proc = self.run_ceph_objectstore_tool(
-                exp_remote, 'osd.%s' % osd,
+                exp_remote, 'osd.%s' % exp_osd,
                 prefix + [
                     '--data-path', FSPATH.format(id=exp_osd),
                     '--journal-path', JPATH.format(id=exp_osd),
@@ -339,7 +339,7 @@ class OSDThrasher(Thrasher):
                                 format(ret=proc.exitstatus))
             # remove
             proc = self.run_ceph_objectstore_tool(
-                exp_remote, 'osd.%s' % osd,
+                exp_remote, 'osd.%s' % exp_osd,
                 prefix + [
                     '--data-path', FSPATH.format(id=exp_osd),
                     '--journal-path', JPATH.format(id=exp_osd),
@@ -356,7 +356,7 @@ class OSDThrasher(Thrasher):
                 # If pg isn't already on this osd, then we will move it there
                 proc = self.run_ceph_objectstore_tool(
                     imp_remote,
-                    'osd.%s' % osd,
+                    'osd.%s' % imp_osd,
                     prefix + [
                         '--data-path', FSPATH.format(id=imp_osd),
                         '--journal-path', JPATH.format(id=imp_osd),