[Fullstack] Additional log of tcpdump stderr output

This patch adds additional logging of tcpdump stderr output in
DSCP marking packets tests.
It is required to figure out why those tests are failing sometimes.

Change-Id: I02fe64bf817b47970e4e073f48ea8dea53bdd4f5
Related-Bug: #1733649
This commit is contained in:
Sławek Kapłoński 2017-12-12 09:35:17 +01:00 committed by Slawek Kaplonski
parent 259eedaaba
commit 7d5247bc4c
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ def wait_for_dscp_marked_packet(sender_vm, receiver_vm, dscp_mark):
if m and (m.group("src_ip") == sender_vm.ip and
m.group("dst_ip") == receiver_vm.ip):
return
# TODO(slaweq): Debug logging added to help troubleshooting bug
# https://bugs.launchpad.net/neutron/+bug/1733649
# once it will be closed this log can be removed
for line in tcpdump_async.iter_stderr():
LOG.debug("Tcpdump error output line: %s", line)
raise TcpdumpException(
"No packets marked with DSCP = %(dscp_mark)s received from %(src)s "
"to %(dst)s" % {'dscp_mark': dscp_mark,