-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #801 from VallariAg/nvmeof-ceph-status
Show nvmeof gateways in "ceph status"
- Loading branch information
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |