]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: override CEPH_ARGS when initializing the site name 33187/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 10 Feb 2020 16:34:49 +0000 (11:34 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 10 Feb 2020 16:39:24 +0000 (11:39 -0500)
The mirroring site name is stored in the MON config which requires
higher privledges than the standard "client.mirror" user.

Fixes: https://tracker.ceph.com/issues/44066
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/rbd_mirror_helpers.sh

index 4cbf02b033aad61027480ddf6c17c0b05344abf3..8dc8087a6000c52496afdd921299f45e0eddbb17 100755 (executable)
@@ -248,7 +248,8 @@ setup_pools()
       PEER_CLUSTER_SUFFIX=-DNE
     fi
 
-    rbd --cluster ${cluster} mirror pool enable --site-name ${cluster}${PEER_CLUSTER_SUFFIX} ${POOL} pool
+    CEPH_ARGS='' rbd --cluster ${cluster} mirror pool enable \
+        --site-name ${cluster}${PEER_CLUSTER_SUFFIX} ${POOL} pool
     rbd --cluster ${cluster} mirror pool enable ${PARENT_POOL} image
 
     rbd --cluster ${cluster} namespace create ${POOL}/${NS1}