← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1988604] Re: Test case neutron.tests.unit.objects.test_quota.ReservationDbObjectTestCase.test_delete_expired failing in periodic job openstack-tox-py39-with-oslo-master

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/855703
Committed: https://opendev.org/openstack/neutron/commit/9eddb132b2f1828cb36c6b5409b64ec54c2cc7ac
Submitter: "Zuul (22348)"
Branch:    master

commit 9eddb132b2f1828cb36c6b5409b64ec54c2cc7ac
Author: Miguel Lavalle <mlavalle@xxxxxxxxxx>
Date:   Fri Sep 2 17:10:11 2022 -0500

    Fix openstack-tox-py39-with-oslo-master job
    
    DB writer and reader contexts are added to test case [0] to make sure
    updates are commited to DB before testing if objects have been deleted.
    
    [0] neutron.tests.unit.objects.test_quota.ReservationDbObjectTestCase.test_delete_expired
    
    Change-Id: I7d3b940db867d97712b6d9de90920dca7c3c23eb
    Closes-Bug: #1988604


** 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/1988604

Title:
  Test case
  neutron.tests.unit.objects.test_quota.ReservationDbObjectTestCase.test_delete_expired
  failing in periodic job openstack-tox-py39-with-oslo-master

Status in neutron:
  Fix Released

Bug description:
  Test case neutron.tests.unit.objects.test_quota.ReservationDbObjectTestCase.test_delete_expired failing in periodic job openstack-tox-py39-with-oslo-master: https://zuul.opendev.org/t/openstack/builds?job_name=openstack-tox-py39-with-oslo-master&project=openstack%2Fneutron&skip=0. It doesn't fail all the time, but has failed several times over the past few days. This is the traceback:
          
  ft1.4: neutron.tests.unit.objects.test_quota.ReservationDbObjectTestCase.test_delete_expiredtesttools.testresult.real._StringException: Traceback (most recent call last):
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
      return f(self, *args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/objects/test_quota.py", line 72, in test_delete_expired
      self.assertEqual([], objs)
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py39/lib/python3.9/site-packages/testtools/testcase.py", line 393, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py39/lib/python3.9/site-packages/testtools/testcase.py", line 480, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: !=:
  reference = []
  actual    = [Reservation(expiration=2015-03-31T14:30:00Z,id=7b11ded2-9612-4f6c-8774-a19456fbe9ff,project_id=<?>,resource_deltas=[]),
   Reservation(expiration=2016-03-31T14:30:00Z,id=d35a8cb9-9dc1-46fe-af6d-b5b507d25d5d,project_id=<?>,resource_deltas=[])]

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



References