Skip to content

Commit

Permalink
workaround. vms not been removed in conntrack testcases
Browse files Browse the repository at this point in the history
workaround. Conntrack testcases fail randomly because one vm is
not deleted when the testcase fails. I have seen that it may
be related to the code in which conntrack table is got from the
hypervisor (removing that code, the problem does not happen
again). Including this sleep between that code and the end
of the testcase in which it will start vm removal seems to solve
the issue

Change-Id: I63975f95b0ec190c4aee09924fdadce89dab4855
  • Loading branch information
mnietoji committed Aug 25, 2023
1 parent 05f01dd commit cc71597
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nfv_tempest_plugin/tests/scenario/test_nfv_offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,15 @@ def run_offload_testcase(self, test, protocol,
offload_injection_time,
tcpdump_time)

# workaround. Conntrack testcases fail randomly because one vm is
# not deleted when the testcase fails. I have seen that it may
# be related to the code in which conntrack table is got from the
# hypervisor (removing that code, the problem does not happen
# again). Including this sleep between that code and the end
# of the testcase in which it will start vm removal seems to solve
# the issue
if sec_groups:
time.sleep(30)
self.assertTrue(network_type_found, "Network type {} not "
"found".format(network_type))
self.assertTrue(len(errors_found) == 0, "\n".join(errors_found))
Expand Down

0 comments on commit cc71597

Please sign in to comment.