]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/suites/rbd: Cleanup of MIRROR_IMAGE_MODE
authorSuyashd999 <suyashd999@gmail.com>
Tue, 14 Nov 2023 07:29:13 +0000 (12:59 +0530)
committerSuyash Dongre <suyashd999@gmail.com>
Tue, 14 Nov 2023 12:58:02 +0000 (18:28 +0530)
Fixes: https://tracker.ceph.com/issues/63431
Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
qa/suites/rbd/mirror-thrash/workloads/rbd-mirror-journal-stress-workunit.yaml
qa/suites/rbd/mirror-thrash/workloads/rbd-mirror-snapshot-stress-workunit-exclusive-lock.yaml
qa/suites/rbd/mirror-thrash/workloads/rbd-mirror-snapshot-stress-workunit-fast-diff.yaml
qa/suites/rbd/mirror-thrash/workloads/rbd-mirror-snapshot-stress-workunit-minimum.yaml
qa/suites/rbd/mirror/workloads/rbd-mirror-journal-bootstrap-workunit.yaml
qa/suites/rbd/mirror/workloads/rbd-mirror-snapshot-bootstrap-workunit.yaml
qa/workunits/rbd/rbd_mirror_helpers.sh
qa/workunits/rbd/rbd_mirror_stress.sh

index 9579b70d62c0c74abba6286456193d9d3f888ae4..4b85b483af46c83854ec4add0b1a42c24de3447d 100644 (file)
@@ -11,5 +11,5 @@ tasks:
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
       RBD_MIRROR_USE_RBD_MIRROR: '1'
       MIRROR_POOL_MODE: 'pool'
-      MIRROR_IMAGE_MODE: 'journal'
+      RBD_MIRROR_MODE: 'journal'
     timeout: 6h
index 87632483d1cbb427bd0f3c94d13fde7a34a6a04c..4b9225bdcba9a19bd846080257ad4ac262e1e7ef 100644 (file)
@@ -8,7 +8,7 @@ tasks:
       # override workunit setting of CEPH_ARGS='--cluster'
       CEPH_ARGS: ''
       MIRROR_POOL_MODE: 'image'
-      MIRROR_IMAGE_MODE: 'snapshot'
+      RBD_MIRROR_MODE: 'snapshot'
       RBD_IMAGE_FEATURES: 'layering,exclusive-lock'
       RBD_MIRROR_INSTANCES: '4'
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
index fc43b0ec24d763a63848fc1e3e2a67ee0f31e5c3..756fc9c741eb3723d1c8fcc8242876c0e7b14463 100644 (file)
@@ -8,7 +8,7 @@ tasks:
       # override workunit setting of CEPH_ARGS='--cluster'
       CEPH_ARGS: ''
       MIRROR_POOL_MODE: 'image'
-      MIRROR_IMAGE_MODE: 'snapshot'
+      RBD_MIRROR_MODE: 'snapshot'
       RBD_IMAGE_FEATURES: 'layering,exclusive-lock,object-map,fast-diff'
       RBD_MIRROR_INSTANCES: '4'
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
index af0ea12408bdc14a3fceb2e1d0e7b13ae63bf442..cc18601f3d8ca54ea8416048eca1659a303a1c08 100644 (file)
@@ -8,7 +8,7 @@ tasks:
       # override workunit setting of CEPH_ARGS='--cluster'
       CEPH_ARGS: ''
       MIRROR_POOL_MODE: 'image'
-      MIRROR_IMAGE_MODE: 'snapshot'
+      RBD_MIRROR_MODE: 'snapshot'
       RBD_IMAGE_FEATURES: 'layering'
       RBD_MIRROR_INSTANCES: '4'
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
index b9c5562be834dc823a6e2d18d4593787bb2fdcf8..e129374af25ea6136ffa4df30816974108b07ce7 100644 (file)
@@ -10,4 +10,4 @@ tasks:
       RBD_MIRROR_INSTANCES: '1'
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
       MIRROR_POOL_MODE: 'pool'
-      MIRROR_IMAGE_MODE: 'journal'
+      RBD_MIRROR_MODE: 'journal'
index 5ad78474d3cb2cda669166a7847135fb9c3d3e1d..9507c6ddc843e4dbd5e0a01f8c3b3b917c51d82e 100644 (file)
@@ -10,4 +10,4 @@ tasks:
       RBD_MIRROR_INSTANCES: '1'
       RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
       MIRROR_POOL_MODE: 'image'
-      MIRROR_IMAGE_MODE: 'snapshot'
+      RBD_MIRROR_MODE: 'snapshot'
index 7183a2cba258e314571f5ed54d93a4546c601207..f7a3e5de0d9989d51cb7ab5516748318c186106a 100755 (executable)
@@ -94,11 +94,10 @@ TEMPDIR=
 CEPH_ID=${CEPH_ID:-mirror}
 RBD_IMAGE_FEATURES=${RBD_IMAGE_FEATURES:-layering,exclusive-lock,journaling}
 MIRROR_USER_ID_PREFIX=${MIRROR_USER_ID_PREFIX:-${CEPH_ID}.}
+RBD_MIRROR_MODE=${RBD_MIRROR_MODE:-journal}
 MIRROR_POOL_MODE=${MIRROR_POOL_MODE:-pool}
-MIRROR_IMAGE_MODE=${MIRROR_IMAGE_MODE:-journal}
 if [ "${RBD_MIRROR_MODE}" = "snapshot" ]; then
   MIRROR_POOL_MODE=image
-  MIRROR_IMAGE_MODE=snapshot
 fi
 
 export CEPH_ARGS="--id ${CEPH_ID}"
@@ -805,9 +804,9 @@ wait_for_replay_complete()
     local pool=$3
     local image=$4
 
-    if [ "${MIRROR_IMAGE_MODE}" = "journal" ]; then
+    if [ "${RBD_MIRROR_MODE}" = "journal" ]; then
         wait_for_journal_replay_complete ${local_cluster} ${cluster} ${pool} ${image}
-    elif [ "${MIRROR_IMAGE_MODE}" = "snapshot" ]; then
+    elif [ "${RBD_MIRROR_MODE}" = "snapshot" ]; then
         wait_for_snapshot_sync_complete ${local_cluster} ${cluster} ${pool} ${image}
     else
         return 1
@@ -942,7 +941,7 @@ create_image_and_enable_mirror()
     local cluster=$1 ; shift
     local pool=$1 ; shift
     local image=$1 ; shift
-    local mode=${1:-${MIRROR_IMAGE_MODE}}
+    local mode=${1:-${RBD_MIRROR_MODE}}
     if [ -n "$1" ]; then
         shift
     fi
@@ -1064,7 +1063,7 @@ clone_image_and_enable_mirror()
     local clone_image=$6
     shift 6
 
-    local mode=${1:-${MIRROR_IMAGE_MODE}}
+    local mode=${1:-${RBD_MIRROR_MODE}}
     if [ -n "$1" ]; then
         shift
     fi
@@ -1363,7 +1362,7 @@ enable_mirror()
     local cluster=$1
     local pool=$2
     local image=$3
-    local mode=${4:-${MIRROR_IMAGE_MODE}}
+    local mode=${4:-${RBD_MIRROR_MODE}}
 
     rbd --cluster=${cluster} mirror image enable ${pool}/${image} ${mode}
     # Display image info including the global image id for debugging purpose
index cb79aba7ebc9c79126e10bf3188904914df2c51f..5426f495db10c7e1b6bfbf31ccfb58a0b1f6a5dc 100755 (executable)
@@ -96,7 +96,7 @@ start_mirrors ${CLUSTER2}
 
 testlog "TEST: add image and test replay after client crashes"
 image=test
-create_image_and_enable_mirror ${CLUSTER2} ${POOL} ${image} ${MIRROR_IMAGE_MODE} '512M'
+create_image_and_enable_mirror ${CLUSTER2} ${POOL} ${image} ${RBD_MIRROR_MODE} '512M'
 wait_for_image_replay_started ${CLUSTER1} ${POOL} ${image}
 
 clean_snap_name=
@@ -151,7 +151,7 @@ snap_name="snap"
 for i in `seq 1 ${IMAGE_COUNT}`
 do
   image="image_${i}"
-  create_image_and_enable_mirror ${CLUSTER2} ${POOL} ${image} ${MIRROR_IMAGE_MODE} '128M'
+  create_image_and_enable_mirror ${CLUSTER2} ${POOL} ${image} ${RBD_MIRROR_MODE} '128M'
   if [ -n "${RBD_MIRROR_REDUCE_WRITES}" ]; then
     write_image ${CLUSTER2} ${POOL} ${image} 100
   else