]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/ceph-helpers.sh: fix test_run_mon
authorSage Weil <sage@redhat.com>
Fri, 8 Mar 2019 23:21:05 +0000 (17:21 -0600)
committerSage Weil <sage@redhat.com>
Fri, 8 Mar 2019 23:43:00 +0000 (17:43 -0600)
- Only create each osd once
- forget the first osdmap dump test; it's pointless

Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/ceph-helpers.sh

index 20c3459130255487e2a75452d452deef80ce5198..8850a235000fa3144a11e2f5f9883c7a16ede78f 100755 (executable)
@@ -496,11 +496,8 @@ function test_run_mon() {
 
     setup $dir || return 1
 
-    run_mon $dir a --mon-initial-members=a --osd_pool_default_size=1 || return 1
-    run_osd $dir 0 || return 1
-    create_rbd_pool || return 1
-    # rbd has not been deleted / created, hence it has pool id 1
-    ceph osd dump | grep "pool 1 'rbd'" || return 1
+    run_mon $dir a --mon-initial-members=a || return 1
+    ceph mon dump | grep "mon.a" || return 1
     kill_daemons $dir || return 1
 
     run_mon $dir a --osd_pool_default_size=3 || return 1
@@ -508,8 +505,7 @@ function test_run_mon() {
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
     create_rbd_pool || return 1
-    # rbd has been deleted / created, hence it does not have pool id 0
-    ! ceph osd dump | grep "pool 1 'rbd'" || return 1
+    ceph osd dump | grep "pool 1 'rbd'" || return 1
     local size=$(CEPH_ARGS='' ceph --format=json daemon $(get_asok_path mon.a) \
         config get osd_pool_default_size)
     test "$size" = '{"osd_pool_default_size":"3"}' || return 1