]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix reg11184 test to remove extraneous pg 16265/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 7 Jul 2017 20:56:55 +0000 (13:56 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 11 Jul 2017 17:41:09 +0000 (10:41 -0700)
Minor cleanups
Remove unused pool to aid future analysis

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/tasks/reg11184.py

index 0ffac5cdf38f41bb3802e858f841192a914f9fbf..b0c6dc11a17ef39bda92e8ae7d71a9d5a9ed21f4 100644 (file)
@@ -40,7 +40,8 @@ def task(ctx, config):
 
     while len(manager.get_osd_status()['up']) < 3:
         time.sleep(10)
-    manager.flush_pg_stats([0, 1, 2])
+    osds = [0, 1, 2]
+    manager.flush_pg_stats(osds)
     manager.raw_cluster_cmd('osd', 'set', 'noout')
     manager.raw_cluster_cmd('osd', 'set', 'noin')
     manager.raw_cluster_cmd('osd', 'set', 'nodown')
@@ -55,7 +56,9 @@ def task(ctx, config):
     log.info('creating foo')
     manager.raw_cluster_cmd('osd', 'pool', 'create', 'foo', '1')
 
-    osds = [0, 1, 2]
+    # Remove extra pool to simlify log output
+    manager.raw_cluster_cmd('osd', 'pool', 'delete', 'rbd', 'rbd', '--yes-i-really-really-mean-it')
+
     for i in osds:
         manager.set_config(i, osd_min_pg_log_entries=10)
         manager.set_config(i, osd_max_pg_log_entries=10)
@@ -175,7 +178,7 @@ def task(ctx, config):
 
     # Remove the same pg that was exported
     cmd = ((prefix + "--op remove --pgid 2.0").
-           format(id=divergent, file=expfile))
+           format(id=divergent))
     proc = exp_remote.run(args=cmd, wait=True,
                           check_status=False, stdout=StringIO())
     assert proc.exitstatus == 0
@@ -186,6 +189,13 @@ def task(ctx, config):
     manager.mark_down_osd(non_divergent[0])
     # manager.mark_out_osd(non_divergent[0])
 
+    # An empty collection for pg 2.0 needs to be cleaned up
+    cmd = ((prefix + "--op remove --pgid 2.0").
+           format(id=non_divergent[0]))
+    proc = exp_remote.run(args=cmd, wait=True,
+                          check_status=False, stdout=StringIO())
+    assert proc.exitstatus == 0
+
     cmd = ((prefix + "--op import --file {file}").
            format(id=non_divergent[0], file=expfile))
     proc = exp_remote.run(args=cmd, wait=True,