forked from ceph/ceph-nvmeof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "ceph nvme-gw create" command and ceph logs artifact
Signed-off-by: Alexander Indenbaum <[email protected]>
- Loading branch information
Alexander Indenbaum
committed
Mar 1, 2024
1 parent
b01d7ee
commit 72eac4d
Showing
2 changed files
with
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set -ex | ||
docker-compose up -d --scale nvmeof=2 nvmeof | ||
|
||
echo "Wait for ceph container to become healthy" | ||
while true; do | ||
container_status=$(docker inspect --format='{{.State.Health.Status}}' ceph) | ||
if [[ $container_status == "healthy" ]]; then | ||
# success | ||
break | ||
else | ||
# Wait for a specific time before checking again | ||
sleep 1 | ||
echo -n . | ||
fi | ||
done | ||
docker ps | ||
|
||
# Send nvme-gw create for both gateways | ||
for i in $(seq 2); do | ||
GW_NAME=$(docker ps --format '{{.ID}}\t{{.Names}}' | awk '$2 ~ /nvmeof/ && $2 ~ /'$i'/ {print $1}') | ||
docker-compose exec ceph ceph nvme-gw create $GW_NAME rbd '' | ||
done |