Merge "Capture traffic only in podified nodes running ovs pods"

This commit is contained in:
Zuul 2024-09-15 11:00:23 +00:00 committed by Gerrit Code Review
commit 28d64df58a

View File

@ -1059,14 +1059,17 @@ class TrafficFlowTest(BaseTempestWhiteboxTestCase):
def _start_captures(self, filters, scenario='north_south', interface=None):
for node in self.nodes:
if not (node['is_controller'] or
if not (node.get('ovs_pod') or
node['is_compute'] or
node['is_networker']):
LOG.debug('Traffic is not captured on node %s because it is '
'not: controller, compute, networker', node['name'])
'none of these:\n'
'- a controller running an ovs pod\n'
'- a compute\n'
'- a networker', node['name'])
continue
elif (WB_CONF.openstack_type == 'podified' and
node['is_controller']):
node.get('ovs_pod')):
capture_client = self.proxy_host_client
command_prefix = "{} rsh {} ".format(self.OC, node['ovs_pod'])
if interface: