]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: cephtool: add/remove comments
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 25 Jun 2014 00:17:58 +0000 (01:17 +0100)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 23:56:41 +0000 (16:56 -0700)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 780424df3a107c7da57fc28d64f9e7a4bb47f8e8)

qa/workunits/cephtool/test.sh

index 6d2ba10e08e46d0ef111ed06ba45ac34791fc149..722f5c56776d3f835260e850dd5ae6c58bccb1c9 100755 (executable)
@@ -225,9 +225,6 @@ function test_tiering()
 
 function test_auth()
 {
-  # Assumes there are at least 3 MDSes and two OSDs
-  #
-
   ceph auth add client.xx mon allow osd "allow *"
   ceph auth export client.xx >client.xx.keyring
   ceph auth add client.xx -i client.xx.keyring
@@ -364,6 +361,9 @@ function test_mon_mon()
 
 function test_mon_osd()
 {
+  #
+  # osd blacklist
+  #
   bl=192.168.0.1:0/1000
   ceph osd blacklist add $bl
   ceph osd blacklist ls | grep $bl
@@ -379,6 +379,9 @@ function test_mon_osd()
   expect_false "ceph osd blacklist $bl/-1"
   expect_false "ceph osd blacklist $bl/foo"
 
+  #
+  # osd crush
+  #
   ceph osd crush tunables legacy
   ceph osd crush show-tunables | grep argonaut
   ceph osd crush tunables bobtail
@@ -386,6 +389,9 @@ function test_mon_osd()
   ceph osd crush tunables firefly
   ceph osd crush show-tunables | grep firefly
 
+  #
+  # osd scrub
+  #
   # how do I tell when these are done?
   ceph osd scrub 0
   ceph osd deep-scrub 0
@@ -481,6 +487,9 @@ function test_mon_osd()
 
 function test_mon_osd_pool()
 {
+  #
+  # osd pool
+  #
   ceph osd pool mksnap data datasnap
   rados -p data lssnap | grep datasnap
   ceph osd pool rmsnap data datasnap
@@ -542,12 +551,16 @@ function test_mon_pg()
   ceph report | grep osd_stats
   ceph status
   ceph -s
-  # ceph sync force
 
+  #
+  # tell osd version
+  #
   ceph tell osd.0 version
   expect_false ceph tell osd.9999 version 
   expect_false ceph tell osd.foo version
 
+  # back to pg stuff
+
   ceph tell osd.0 dump_pg_recovery_stats | grep Started
 
   ceph osd reweight 0 0.9