mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
added some logging and made an improvement to get_master_and_backupRouter method
This commit is contained in:
parent
55067a8692
commit
422787e2d9
@ -146,6 +146,7 @@ class TestCreateRvRNetwork(cloudstackTestCase):
|
|||||||
cls.zone.id,
|
cls.zone.id,
|
||||||
cls.testdata["ostype"]
|
cls.testdata["ostype"]
|
||||||
)
|
)
|
||||||
|
|
||||||
cls.testdata["small"]["zoneid"] = cls.zone.id
|
cls.testdata["small"]["zoneid"] = cls.zone.id
|
||||||
cls.testdata["small"]["template"] = cls.template.id
|
cls.testdata["small"]["template"] = cls.template.id
|
||||||
|
|
||||||
@ -1546,6 +1547,8 @@ class TestRvRRedundancy(cloudstackTestCase):
|
|||||||
listall=True
|
listall=True
|
||||||
)
|
)
|
||||||
retry = retry-1
|
retry = retry-1
|
||||||
|
if len(routers) < 2:
|
||||||
|
continue
|
||||||
if not (routers[0].redundantstate == 'MASTER' or routers[1].redundantstate == 'MASTER'):
|
if not (routers[0].redundantstate == 'MASTER' or routers[1].redundantstate == 'MASTER'):
|
||||||
continue;
|
continue;
|
||||||
if routers[0].redundantstate == 'MASTER':
|
if routers[0].redundantstate == 'MASTER':
|
||||||
@ -1556,6 +1559,7 @@ class TestRvRRedundancy(cloudstackTestCase):
|
|||||||
master_router = routers[1]
|
master_router = routers[1]
|
||||||
backup_router = routers[0]
|
backup_router = routers[0]
|
||||||
break
|
break
|
||||||
|
self.info("master_router: %s, backup_router: %s" % (master_router, backup_router))
|
||||||
return master_router, backup_router
|
return master_router, backup_router
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user