[FT] Random ``DBReferenceError`` errors in the functional tests

Bug #2121935 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
In Progress
Low
Unassigned

Bug Description

During the execution of the functional tests in the CI, there are random (and frequent) ``oslo_db.exception.DBReferenceError`` exceptions. These errors are not related to the repository code and force to recheck the job again to produce a valid result.

Error example: https://paste.opendev.org/show/b4hHwUGeDGEpDf2N3I7u/

Logs: https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_610/openstack/6101fac330c247fb983fe1cde503cf02/testr_results.html

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/959302

Changed in neutron:
importance: Undecided → Low
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/959302

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/959302
Committed: https://opendev.org/openstack/neutron/commit/7a1a8038f9ea05361bdc9f045c900f02970d922d
Submitter: "Zuul (22348)"
Branch: master

commit 7a1a8038f9ea05361bdc9f045c900f02970d922d
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Sep 3 11:27:08 2025 +0000

    [FT] Capture and dismiss the ``DBReferenceError`` exceptions

    The base testing class now captures the ``DBReferenceError`` exceptions
    and retries the test execution. If the test raises the same exception
    again, the test is skipped. However, it will be necessary to manually
    check the cause of the error.

    Related-Bug: #2121935
    Signed-off-by: Rodolfo Alonso Hernandez <email address hidden>
    Change-Id: I904919fdfd604d1692b8d760978b38eeda26d931

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.