diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 33a0f56d..4a42b1e4 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -737,7 +737,7 @@ jobs: strategy: fail-fast: false matrix: - test: ["sanity", "state_transitions", "state_transitions_both_gws", "state_transitions_loop", "state_transitions_rand_loop", "late_registration", "late_registration_loop", "4gws", "4gws_loop", "4gws_create_delete", "4gws_create_delete_loop", "namespaces", "namespaces_loop", "mtls", "notify"] + test: ["sanity", "state_transitions", "state_transitions_both_gws", "state_transitions_loop", "state_transitions_rand_loop", "late_registration", "late_registration_loop", "4gws", "4gws_loop", "4gws_create_delete", "4gws_create_delete_loop", "namespaces", "namespaces_loop", "mtls", "notify", "ceph_status"] runs-on: ubuntu-latest env: HUGEPAGES: 1024 # 4 spdk instances diff --git a/tests/ha/ceph_status.sh b/tests/ha/ceph_status.sh new file mode 100755 index 00000000..20fbd82d --- /dev/null +++ b/tests/ha/ceph_status.sh @@ -0,0 +1,22 @@ +set -xe + +POOL="${RBD_POOL:-rbd}" +CEPH_NAME=$(docker ps --format '{{.ID}}\t{{.Names}}' | grep -v nvme | grep ceph | awk '{print $1}') +GW1_NAME=$(docker ps --format '{{.ID}}\t{{.Names}}' | awk '$2 ~ /nvmeof/ && $2 ~ /1/ {print $1}') + +docker compose exec -T ceph ceph service dump +docker compose exec -T ceph ceph status + +echo "ℹ️ Step 1: verify 2 gateways" + +docker compose exec -T ceph ceph status | grep "nvmeof: 2 gateways active" + +echo "ℹ️ Step 2: stop a gateway" + +docker stop $GW1_NAME +wait +sleep 5 + +echo "ℹ️ Step 3: verify 1 gateway" + +docker compose exec -T ceph ceph status | grep "nvmeof: 1 gateway active"