Skip to content

Commit

Permalink
Merge pull request openstack-charmers#1138 from freyes/swift-proxy-race
Browse files Browse the repository at this point in the history
swift-proxy: wait for model to settle after running action [Antelope backport]
  • Loading branch information
ajkavanagh authored Sep 28, 2023
2 parents 7750218 + 9f91f4b commit 43b49f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zaza/openstack/charm_tests/swift/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ def test_904_set_weight_action_and_validate_rebalance(self):
'search-value': self.TEST_SEARCH_TARGET,
'weight': self.TEST_WEIGHT_INITIAL})
self.assertEqual(action.status, "completed")
# let everything settle, because after the set-weight action the
# swift-storage units need to get run swift-storage-relation-changed to
# get the new ring
logging.info("Waiting for model to settle.")
zaza.model.wait_for_agent_status()
zaza.model.block_until_all_units_idle()

self.assertTrue(
swift_utils.is_ring_synced('swift-proxy', 'object',
self.TEST_EXPECTED_RING_HOSTS))
Expand Down

0 comments on commit 43b49f9

Please sign in to comment.