]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw: wait for realm reload after set_master_zone 13067/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 25 Apr 2017 19:26:30 +0000 (15:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 25 Apr 2017 19:26:30 +0000 (15:26 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/rgw/rgw_multi/tests.py

index a423dc07bd31cd56589c0a8a702d6f90594bada6..4812df5ae60c4b664feadb51d3b2d8b2a32124f7 100644 (file)
@@ -323,6 +323,8 @@ def set_master_zone(zone):
     zonegroup = zone.zonegroup
     zonegroup.period.update(zone, commit=True)
     zonegroup.master_zone = zone
+    # wait for reconfiguration, so that later metadata requests go to the new master
+    time.sleep(5)
 
 def gen_bucket_name():
     global num_buckets