← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2095034] [NEW] 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

 

Public bug reported:

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.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: functional-tests gate-failure

** Tags added: functional-tests gate-failure

-- 
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:
  New

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



Follow ups