Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
Hezko committed Oct 10, 2024
1 parent 41809ec commit d0c7bdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/ha/blocklist.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
source .env

echo "obtaining gw1 container id and its ip"
GW1_NAME=$(docker ps --format '{{.ID}}\t{{.Names}}' | awk '$2 ~ /nvmeof/ && $2 ~ /1/ {print $1}')
echo $GW1_NAME
NODE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $GW1_NAME)
echo $NODE_IP

echo "clearing blocklist"
docker compose exec -T ceph ceph osd blocklist clear

echo "shutting down gw1:$GW1_NAME"
docker stop $GW1_NAME
docker stop $GW1_NAME

echo "waiting for 30s after shutdown"
sleep 30
Expand Down

0 comments on commit d0c7bdb

Please sign in to comment.