← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2067400] [NEW] neutron.tests.functional.services.trunk.drivers.ovn.test_trunk_driver.TestOVNTrunkDriver.test_subport_delete fails at self.assertCountEqual(ovn_subports_info, neutron_subports_info)

 

Public bug reported:

ft1.3: neutron.tests.functional.services.trunk.drivers.ovn.test_trunk_driver.TestOVNTrunkDriver.test_subport_deletetesttools.testresult.real._StringException: 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/services/trunk/drivers/ovn/test_trunk_driver.py", line 146, in test_subport_delete
    self._verify_trunk_info(new_trunk, has_items=False)
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/services/trunk/drivers/ovn/test_trunk_driver.py", line 96, in _verify_trunk_info
    self.assertCountEqual(ovn_subports_info, neutron_subports_info)
  File "/usr/lib/python3.10/unittest/case.py", line 1206, in assertCountEqual
    self.fail(msg)
  File "/usr/lib/python3.10/unittest/case.py", line 675, in fail
    raise self.failureException(msg)
AssertionError: Element counts were not equal:
First has 1, Second has 0:  {'port_id': '1cca4b8b-01cb-4dd5-a825-e67f9cb1d1be', 'parent_port_id': ['df22fc8d-e0a6-4ac9-a6cc-3ae55e8b9a6b'], 'tag': [1000], 'device_owner': 'trunk:subport', 'revision_number': '2'}

The reason for this bug is that the OVN trunk driver processes subports
deletes as a post commit event. Sometimes, when the test checks if the
subport has been deleted from the OVN NBDB, the event hasn'r been
processed yet by the driver. Solution will be to add a dekay in the test
between the action of deleting the subport and checking in the OVN NBDB

** Affects: neutron
     Importance: Medium
     Assignee: Miguel Lavalle (minsel)
         Status: Confirmed

** Changed in: neutron
       Status: New => Confirmed

** Changed in: neutron
   Importance: Undecided => Medium

** Changed in: neutron
     Assignee: (unassigned) => Miguel Lavalle (minsel)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2067400

Title:
  neutron.tests.functional.services.trunk.drivers.ovn.test_trunk_driver.TestOVNTrunkDriver.test_subport_delete
  fails at  self.assertCountEqual(ovn_subports_info,
  neutron_subports_info)

Status in neutron:
  Confirmed

Bug description:
  ft1.3: neutron.tests.functional.services.trunk.drivers.ovn.test_trunk_driver.TestOVNTrunkDriver.test_subport_deletetesttools.testresult.real._StringException: 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/services/trunk/drivers/ovn/test_trunk_driver.py", line 146, in test_subport_delete
      self._verify_trunk_info(new_trunk, has_items=False)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/services/trunk/drivers/ovn/test_trunk_driver.py", line 96, in _verify_trunk_info
      self.assertCountEqual(ovn_subports_info, neutron_subports_info)
    File "/usr/lib/python3.10/unittest/case.py", line 1206, in assertCountEqual
      self.fail(msg)
    File "/usr/lib/python3.10/unittest/case.py", line 675, in fail
      raise self.failureException(msg)
  AssertionError: Element counts were not equal:
  First has 1, Second has 0:  {'port_id': '1cca4b8b-01cb-4dd5-a825-e67f9cb1d1be', 'parent_port_id': ['df22fc8d-e0a6-4ac9-a6cc-3ae55e8b9a6b'], 'tag': [1000], 'device_owner': 'trunk:subport', 'revision_number': '2'}

  The reason for this bug is that the OVN trunk driver processes
  subports deletes as a post commit event. Sometimes, when the test
  checks if the subport has been deleted from the OVN NBDB, the event
  hasn'r been processed yet by the driver. Solution will be to add a
  dekay in the test between the action of deleting the subport and
  checking in the OVN NBDB

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2067400/+subscriptions



Follow ups