Merge "test_ha_router: wait until two agents are scheduled"
This commit is contained in:
commit
c6b54a3389
@ -232,9 +232,12 @@ class TestHAL3Agent(TestL3Agent):
|
|||||||
|
|
||||||
tenant_id = uuidutils.generate_uuid()
|
tenant_id = uuidutils.generate_uuid()
|
||||||
router = self.safe_client.create_router(tenant_id, ha=True)
|
router = self.safe_client.create_router(tenant_id, ha=True)
|
||||||
agents = self.client.list_l3_agent_hosting_routers(router['id'])
|
|
||||||
self.assertEqual(2, len(agents['agents']),
|
common_utils.wait_until_true(
|
||||||
'HA router must be scheduled to both nodes')
|
lambda:
|
||||||
|
len(self.client.list_l3_agent_hosting_routers(
|
||||||
|
router['id'])['agents']) == 2,
|
||||||
|
timeout=90)
|
||||||
|
|
||||||
common_utils.wait_until_true(
|
common_utils.wait_until_true(
|
||||||
functools.partial(
|
functools.partial(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user