Skip to content

Commit

Permalink
more log fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hezko committed Oct 13, 2024
1 parent 5842eec commit 8a69058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/ha/blocklist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ verify_blocklist() {
NODE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $stopped_gw_name)
BLOCKLIST=$(docker compose exec -T ceph ceph osd blocklist ls)

echo "verifying there is at least 1 entriy in the blocklist related to the stopped gateway"
echo "verifying there is at least 1 entry in the blocklist related to the stopped gateway"
if echo "$BLOCKLIST" | grep -q "$NODE_IP"; then
echo "ip $NODE_IP for the stopped gateway was found the blocklist."
else
Expand All @@ -20,6 +20,7 @@ verify_blocklist() {
else
echo "didn't find unexpected entries which are not relaetd to the stopped gateway."
fi
echo "blocklist verification successful"
}

echo "obtaining gw1 container id and its ip"
Expand Down
3 changes: 2 additions & 1 deletion tests/ha/state_transitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ verify_blocklist() {
NODE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $stopped_gw_name)
BLOCKLIST=$(docker compose exec -T ceph ceph osd blocklist ls)

echo "verifying there is at least 1 entriy in the blocklist related to the stopped gateway"
echo "verifying there is at least 1 entry in the blocklist related to the stopped gateway"
if echo "$BLOCKLIST" | grep -q "$NODE_IP"; then
echo "ip $NODE_IP for the stopped gateway was found the blocklist."
else
Expand All @@ -85,6 +85,7 @@ verify_blocklist() {
else
echo "didn't find unexpected entries which are not relaetd to the stopped gateway."
fi
echo "blocklist verification successful"
}

#
Expand Down

0 comments on commit 8a69058

Please sign in to comment.