Bug 2222605

Summary: Test test_only_accepted_traffic_logged is failing on multiple jobs
Product: Red Hat OpenStack Reporter: Lucas Alvares Gomes <lmartins>
Component: python-neutron-tests-tempestAssignee: Maor <mblue>
Status: CLOSED NOTABUG QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: apevec, egarciar, gregraka, ifrangs, jelynch, lhh, lsvaty, majopela, mblue, prgutier, rsafrono, scohen, skaplons
Target Milestone: gaKeywords: Automation, Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
In RHOSP 17.1, there is a known issue for security group log entries. When events occur in short time intervals of each other, the related security group log entries can be listed in an incorrect order. This is caused by how the OVN back end processes events. Currently, there is no workaround.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-02 16:29:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lucas Alvares Gomes 2023-07-13 09:10:02 UTC
The test "neutron_plugin.tests.scenario.test_security_group_logging.StatefulSecGroupLoggingTest.test_only_accepted_traffic_logged" is failing on these two jobs:

* https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/job/DFG-network-neutron-17.1_director-rhel-virthost-3cont_2comp-ipv4-geneve-gate-ovn/363/

* https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/job/DFG-network-neutron-17.1_director-rhel-virthost-3cont_2comp-ipv4-vxlan-ovn/53/

Traceback:

Traceback (most recent call last):
  File "/home/stack/plugins/tempest_neutron_plugin/neutron_plugin/tests/scenario/test_security_group_logging.py", line 855, in test_only_accepted_traffic_logged
    self._test_only_accepted_traffic_logged()
  File "/home/stack/plugins/tempest_neutron_plugin/neutron_plugin/tests/scenario/test_security_group_logging.py", line 629, in _test_only_accepted_traffic_logged
    self._verify_duplicate_entries(vms_same_compute, vm_a)
  File "/home/stack/plugins/tempest_neutron_plugin/neutron_plugin/tests/scenario/test_security_group_logging.py", line 685, in _verify_duplicate_entries
    self.assertEquals(
  File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 391, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 478, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 11 != 10: 
log entries amount of ICMP type "0", direction "to-lport", not according to ping amount, which is 10.
Notice code comments, tempest.log for further debugging.
These are the log_acl entries captured while ping from VM 1 to VM

The BZ was open as part of my duty as CI status deputy for this week and need further investigation