yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95202
[Bug 2095034] Re: test_interface_monitor_filtering fails with "Interface monitor not filtered did not received an event for ports" because it assumes that events for both ports arrive at the same call to monitor
Reviewed: https://review.opendev.org/c/openstack/neutron/+/939384
Committed: https://opendev.org/openstack/neutron/commit/956803819854546992a620cd6eb44acfd291fb79
Submitter: "Zuul (22348)"
Branch: master
commit 956803819854546992a620cd6eb44acfd291fb79
Author: Ihar Hrachyshka <ihar.hrachyshka@xxxxxxxxx>
Date: Wed Jan 15 13:38:29 2025 -0500
functional: Handle ovsdb monitor returning inserts in different checks
The test case should be satisfied as long as monitor receives the
events; it doesn't matter if the insert events were received at the same
call to process_events.
Closes-Bug: #2095034
Change-Id: Ib5b78c3bdb9f4efbbc9bad9a45be45fb97da3c1d
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2095034
Title:
test_interface_monitor_filtering fails with "Interface monitor not
filtered did not received an event for ports" because it assumes that
events for both ports arrive at the same call to monitor
Status in neutron:
Fix Released
Bug description:
https://da251a7f8678458eaa7e-80e67ec01f194d5b25d665df26ee3378.ssl.cf5.rackcdn.com/939357/1/check/neutron-
functional/66c0353/testr_results.html
ft1.1: neutron.tests.functional.agent.common.test_ovsdb_monitor.SimpleInterfaceMonitorTestCase.test_interface_monitor_filteringtesttools.testresult.real._StringException: Traceback (most recent call last):
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 741, in wait_until_true
eventlet.sleep(sleep)
File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional-gate/lib/python3.12/site-packages/eventlet/greenthread.py", line 38, in sleep
hub.switch()
File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional-gate/lib/python3.12/site-packages/eventlet/hubs/hub.py", line 310, in switch
return self.greenlet.switch()
^^^^^^^^^^^^^^^^^^^^^^
eventlet.timeout.Timeout: 5 seconds
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/common/test_ovsdb_monitor.py", line 69, in test_interface_monitor_filtering
common_utils.wait_until_true(
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 746, in wait_until_true
raise WaitTimeout(_("Timed out after %d seconds") % timeout)
neutron.common.utils.WaitTimeout: Timed out after 5 seconds
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 178, in func
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/common/test_ovsdb_monitor.py", line 74, in test_interface_monitor_filtering
self.fail('Interface monitor not filtered did not received an '
File "/usr/lib/python3.12/unittest/case.py", line 715, in fail
raise self.failureException(msg)
AssertionError: Interface monitor not filtered did not received an event for ports {'port27103f', 'portb6741f'}
It looks like this test case assumes that inserts for both ports will
arrive at the same call to monitor, though logs show that they arrived
in different process_events calls.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2095034/+subscriptions
References