Skip to content

Commit

Permalink
Offload conntrack testcases. Sleep after stopping iperf
Browse files Browse the repository at this point in the history
This sleep is important to be sure that there are no packets in the
network that may break next testcase

Without this sleep, sometimes there are problems deleting vms and
makes fail next testcases. It is like the message to delete the
vm is lost and tempest waits until the timeout to remove vm
expires.

Change-Id: Icd138f3ce69e5aef92ed1d0be73707ba49e8161f
(cherry picked from commit c9180b9)
  • Loading branch information
mnietoji committed Jul 24, 2023
1 parent 3990099 commit f9b00d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nfv_tempest_plugin/tests/scenario/test_nfv_offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,11 @@ def check_conntrack(self, srv_pair, protocol):

for item in iperf_logs:
shell_utils.stop_iperf(item['server'], item['log_file'])
# sleep for a while to be sure that after stopping iperf,
# there is no packet generated by iperf that may break
# the following test
time.sleep(10)

return errors

def check_conntrack_table(self, hyper, source, protocol, l4_port):
Expand Down

0 comments on commit f9b00d4

Please sign in to comment.