]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd_recovery: test no* osdmap flags
authorSage Weil <sage@newdream.net>
Mon, 30 Apr 2012 18:13:02 +0000 (11:13 -0700)
committerSage Weil <sage@newdream.net>
Mon, 30 Apr 2012 18:13:02 +0000 (11:13 -0700)
teuthology/task/osd_recovery.py

index 27596b39c994f61384b2e3a203ce64b3ec555d8f..b034a3a3deca3c5e8f87ecc6e5e89696346429e1 100644 (file)
@@ -52,6 +52,16 @@ def task(ctx, config):
     manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')
     manager.wait_for_clean()
 
+    # test some osdmap flags
+    manager.raw_cluster_cmd('osd', 'set', 'noin')
+    manager.raw_cluster_cmd('osd', 'set', 'noout')
+    manager.raw_cluster_cmd('osd', 'set', 'noup')
+    manager.raw_cluster_cmd('osd', 'set', 'nodown')
+    manager.raw_cluster_cmd('osd', 'unset', 'noin')
+    manager.raw_cluster_cmd('osd', 'unset', 'noout')
+    manager.raw_cluster_cmd('osd', 'unset', 'noup')
+    manager.raw_cluster_cmd('osd', 'unset', 'nodown')
+
     # write some new data
     p = rados_start(mon, ['-p', 'rbd', 'bench', '60', 'write', '-b', '4096'])