CephRGWTest: Wait for sites to be syncronised before recovery scenario
If `self.promote_rgw_to_primary(self.primary_rgw_app)` is executed before sites are syncronised, the sites will not be syncronised after. Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This commit is contained in:
@@ -1167,6 +1167,10 @@ class CephRGWTest(test_utils.BaseCharmTest):
|
||||
'Body'
|
||||
].read().decode('UTF-8')
|
||||
|
||||
# Wait for Sites to be syncronised.
|
||||
self.wait_for_status(self.primary_rgw_app, is_primary=False)
|
||||
self.wait_for_status(self.secondary_rgw_app, is_primary=True)
|
||||
|
||||
# Recovery scenario, reset ceph-rgw as primary.
|
||||
self.promote_rgw_to_primary(self.primary_rgw_app)
|
||||
self.wait_for_status(self.primary_rgw_app, is_primary=True)
|
||||
|
||||
Reference in New Issue
Block a user