From: VinayBhaskar-V Date: Wed, 26 Nov 2025 09:15:35 +0000 (+0530) Subject: qa/workunits/rbd: fix check_snapshot_info in rbd_groups.sh X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0fc89ea36a7e25161eb58619d2375d7511b2415;p=ceph-ci.git qa/workunits/rbd: fix check_snapshot_info in rbd_groups.sh Signed-off-by: VinayBhaskar-V --- diff --git a/qa/workunits/rbd/rbd_groups.sh b/qa/workunits/rbd/rbd_groups.sh index ee3cb506740..8935c07c3f4 100755 --- a/qa/workunits/rbd/rbd_groups.sh +++ b/qa/workunits/rbd/rbd_groups.sh @@ -216,7 +216,7 @@ check_snapshot_info() test "$actual_snap_name" = "$snap_name" || return 1 local snap_state=$(jq -r ".state" <<< "$snap_info_json") - test "$snap_state" = "complete" || return 1 + test "$snap_state" = "created" || return 1 local actual_image_count=$(jq '.images | length' <<< "$snap_info_json") test "$actual_image_count" = "$image_count" || return 1 @@ -224,7 +224,7 @@ check_snapshot_info() local image_snap_name=$(jq -r '.image_snap_name' <<< "$snap_info_json") local snap_info=$(rbd group snap info $group_name@$snap_name) local snap_state=$(grep -w 'state:' <<< "$snap_info" | tr -d '\t') - test "$snap_state" = "state: complete" || return 1 + test "$snap_state" = "state: created" || return 1 local image_snap_field=$(grep -w 'image snap:' <<< "$snap_info") local images_field=$(grep -w 'images:' <<< "$snap_info") if ((image_count != 0)); then