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:
Ionut Balutoiu
2024-04-24 19:20:33 +03:00
parent c0f0474762
commit e68c902fc8
+4
View File
@@ -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)