]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: fix check_snapshot_info in rbd_groups.sh
authorVinayBhaskar-V <vvarada@redhat.com>
Wed, 26 Nov 2025 09:15:35 +0000 (14:45 +0530)
committerVinayBhaskar-V <vvarada@redhat.com>
Wed, 26 Nov 2025 09:22:02 +0000 (14:52 +0530)
Signed-off-by: VinayBhaskar-V <vvarada@redhat.com>
qa/workunits/rbd/rbd_groups.sh

index ee3cb5067406dac7cc9ca60935fe1e4f7a68ef55..8935c07c3f4b67ec05c85f629b713e5997c6dc08 100755 (executable)
@@ -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