Checking mac-table-size only on nodes where it is possible

Change-Id: Id7638f041ed9c59cd611e5092d85b8bc2f0cced1
This commit is contained in:
dabarzil 2020-12-08 16:21:19 +02:00 committed by Federico Ressi
parent 9c2a2e749d
commit 8bf8009678
1 changed files with 8 additions and 3 deletions

View File

@ -245,9 +245,14 @@ def test_ovs_bridges_mac_table_size():
'etc/neutron/plugins/ml2/openvswitch_agent.ini '
'ovs bridge_mappings')
for node in topology.list_openstack_nodes(group='overcloud'):
br_mappings_str = sh.execute(get_br_mappings_cmd,
ssh_client=node.ssh_client,
sudo=True).stdout.splitlines()[0]
try:
br_mappings_str = sh.execute(get_br_mappings_cmd,
ssh_client=node.ssh_client,
sudo=True).stdout.splitlines()[0]
except sh.ShellCommandFailed:
LOG.debug(f"bridge mappings not configured on node '{node.name}'",
exc_info=1)
continue
br_list = [br_mapping.split(':')[1] for br_mapping in
br_mappings_str.replace('"', '').split(',')]
for br_name in br_list: