Skip to content

Commit

Permalink
Increase buffer and add more debug info.
Browse files Browse the repository at this point in the history
Signed-off-by: Chi Wai Chan <[email protected]>
  • Loading branch information
chanchiwai-ray committed Jan 6, 2025
1 parent b60de4e commit 01d8064
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions tests/scripts/actionutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 01d8064

Please sign in to comment.