diff --git a/tests/scripts/actionutils.sh b/tests/scripts/actionutils.sh index 151fcaba..55feeb9c 100755 --- a/tests/scripts/actionutils.sh +++ b/tests/scripts/actionutils.sh @@ -928,13 +928,13 @@ function test_maintenance_enter_and_exit() { # Debug nodeexec $node "microceph status" - nodeexec $node "microceph.ceph -s" # Enter idempotently for i in $(seq 1 3); do echo "Enter counts: $i" nodeexec $node "microceph cluster maintenance enter --set-noout=false --stop-osds=false $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is still active and enabled done @@ -943,7 +943,8 @@ function test_maintenance_enter_and_exit() { for i in $(seq 1 3); do echo "Exit counts: $i" nodeexec $node "microceph cluster maintenance exit $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is active and enabled done @@ -958,13 +959,13 @@ function test_maintenance_enter_set_noout_stop_osds_and_exit() { # Debug nodeexec $node "microceph status" - nodeexec $node "microceph.ceph -s" # Enter idempotently for i in $(seq 1 3); do echo "Enter counts: $i" nodeexec $node "microceph cluster maintenance enter --set-noout=true --stop-osds=true $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" nodeexec $node is_osd_noout_set # assert noout is set [ ! $(nodeexec $node check_snap_service_active_enabled osd) ] # assert osd service is not active and not enabled done @@ -973,7 +974,8 @@ function test_maintenance_enter_set_noout_stop_osds_and_exit() { for i in $(seq 1 3); do echo "Exit counts: $i" nodeexec $node "microceph cluster maintenance exit $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is active and enabled done @@ -988,13 +990,13 @@ function test_maintenance_enter_and_exit_force() { # Debug nodeexec $node "microceph status" - nodeexec $node "microceph.ceph -s" # Enter idempotently for i in $(seq 1 3); do echo "Enter counts: $i" nodeexec $node "microceph cluster maintenance enter --set-noout=false --stop-osds=false --force $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is still active and enabled done @@ -1003,7 +1005,8 @@ function test_maintenance_enter_and_exit_force() { for i in $(seq 1 3); do echo "Exit counts: $i" nodeexec $node "microceph cluster maintenance exit $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is active and enabled done @@ -1018,13 +1021,13 @@ function test_maintenance_enter_set_noout_stop_osds_and_exit_force() { # Debug nodeexec $node "microceph status" - nodeexec $node "microceph.ceph -s" # Enter idempotently for i in $(seq 1 3); do echo "Enter counts: $i" nodeexec $node "microceph cluster maintenance enter --set-noout=true --stop-osds=true --force $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" nodeexec $node is_osd_noout_set # assert noout is set [ ! $(nodeexec $node check_snap_service_active_enabled osd) ] # assert osd service is not active and not enabled done @@ -1033,7 +1036,8 @@ function test_maintenance_enter_set_noout_stop_osds_and_exit_force() { for i in $(seq 1 3); do echo "Exit counts: $i" nodeexec $node "microceph cluster maintenance exit $node" - sleep 1 + sleep 5 + nodeexec $node "microceph.ceph -s" [ ! $(nodeexec $node is_osd_noout_set) ] # assert noout is unset nodeexec $node check_snap_service_active_enabled osd # assert osd service is active and enabled done