]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw/multisite: add optional --default arg to 'realm pull' 59535/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 30 Aug 2024 17:52:01 +0000 (13:52 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 30 Aug 2024 17:52:01 +0000 (13:52 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/rgw_multisite.py

index f5a6f5a261519e184426d9fcb844a1bb9ae29371..e83a54efc2b4fcd0ec192d7ac226b0dce9849b99 100644 (file)
@@ -139,7 +139,10 @@ class RGWMultisite(Task):
 
                 if cluster != cluster1: # already created on master cluster
                     log.info('pulling realm configuration to %s', cluster.name)
-                    realm.pull(cluster, master_zone.gateways[0], creds)
+
+                    is_default = self.config['realm'].get('is_default', False)
+                    args = ['--default'] if is_default else []
+                    realm.pull(cluster, master_zone.gateways[0], creds, args)
 
                 # use the first zone's cluster to create the zonegroup
                 if not zonegroup: