Skip to content

Commit

Permalink
CephRGWTest: Wait for sites to be syncronised before recovery scenario
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ionut Balutoiu committed Apr 25, 2024
1 parent ceb34ee commit b325283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,10 @@ def test_100_migration_and_multisite_failover(self):
'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)
Expand Down

0 comments on commit b325283

Please sign in to comment.