]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: retry the addition of a mirror pool peer
authorMykola Golub <mgolub@suse.com>
Sat, 25 Apr 2020 07:36:25 +0000 (08:36 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 29 Apr 2020 11:04:42 +0000 (13:04 +0200)
fb4311f5 has fixed this for setup, but "remove mirroring pool"
test needs fixing too.

Fixes: https://tracker.ceph.com/issues/44938
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 7eced158a9a3c47cc408b35219b4428e97e018fb)

qa/workunits/rbd/rbd_mirror_journal.sh

index 31b3ba8be27d6ce45838aa38b6c6e49c443010a7..da856861b0c9587406b493d91909d22b4e0982ad 100755 (executable)
@@ -349,8 +349,8 @@ for cluster in ${CLUSTER1} ${CLUSTER2}; do
     CEPH_ARGS='' rbd --cluster ${cluster} pool init ${pool}
     rbd --cluster ${cluster} mirror pool enable ${pool} pool
 done
-rbd --cluster ${CLUSTER1} mirror pool peer add ${pool} ${CLUSTER2}
-rbd --cluster ${CLUSTER2} mirror pool peer add ${pool} ${CLUSTER1}
+peer_add ${CLUSTER1} ${pool} ${CLUSTER2}
+peer_add ${CLUSTER2} ${pool} ${CLUSTER1}
 rdp_image=test_remove_data_pool
 create_image ${CLUSTER2} ${pool} ${image} 128
 create_image ${CLUSTER2} ${POOL} ${rdp_image} 128 --data-pool ${pool}