Merge "fullstack: Log router and active hosts when there are too many"
This commit is contained in:
commit
656ef0bd23
@ -499,8 +499,10 @@ class TestHAL3Agent(TestL3Agent):
|
|||||||
# Test one last time:
|
# Test one last time:
|
||||||
active_hosts = get_active_hosts()
|
active_hosts = get_active_hosts()
|
||||||
if len(active_hosts) != 1:
|
if len(active_hosts) != 1:
|
||||||
self.fail('Number of active hosts for router: %s' %
|
self.fail('Number of active hosts for router: {}\n'
|
||||||
len(active_hosts))
|
'Hosts: {}\n'
|
||||||
|
'Router: {}'.format(
|
||||||
|
len(active_hosts), active_hosts, router_id))
|
||||||
active_host = active_hosts[0]
|
active_host = active_hosts[0]
|
||||||
backup_host = next(
|
backup_host = next(
|
||||||
h for h in self.environment.hosts if h != active_host)
|
h for h in self.environment.hosts if h != active_host)
|
||||||
|
Loading…
Reference in New Issue
Block a user