Merge "Capture traffic only in podified nodes running ovs pods"
This commit is contained in:
commit
28d64df58a
@ -1059,14 +1059,17 @@ class TrafficFlowTest(BaseTempestWhiteboxTestCase):
|
|||||||
|
|
||||||
def _start_captures(self, filters, scenario='north_south', interface=None):
|
def _start_captures(self, filters, scenario='north_south', interface=None):
|
||||||
for node in self.nodes:
|
for node in self.nodes:
|
||||||
if not (node['is_controller'] or
|
if not (node.get('ovs_pod') or
|
||||||
node['is_compute'] or
|
node['is_compute'] or
|
||||||
node['is_networker']):
|
node['is_networker']):
|
||||||
LOG.debug('Traffic is not captured on node %s because it is '
|
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
|
continue
|
||||||
elif (WB_CONF.openstack_type == 'podified' and
|
elif (WB_CONF.openstack_type == 'podified' and
|
||||||
node['is_controller']):
|
node.get('ovs_pod')):
|
||||||
capture_client = self.proxy_host_client
|
capture_client = self.proxy_host_client
|
||||||
command_prefix = "{} rsh {} ".format(self.OC, node['ovs_pod'])
|
command_prefix = "{} rsh {} ".format(self.OC, node['ovs_pod'])
|
||||||
if interface:
|
if interface:
|
||||||
|
Loading…
Reference in New Issue
Block a user