random failure in octavia.tests.unit.cmd.test_prometheus_proxy.TestPrometheusProxyCMD.test_main

Bug #2039245 reported by Gregory Thiemonge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
New
Undecided
Unassigned

Bug Description

reported by the RDO project on stable/yoga (a59d75ce):

https://trunk.rdoproject.org/centos9-yoga/component/octavia/a5/9d/a59d75cea7fae6f8750741544a1b94b5187ed653_70922990/rpmbuild.log

octavia.tests.unit.cmd.test_prometheus_proxy.TestPrometheusProxyCMD.test_main fails randomly

DEBUG: ==============================
DEBUG: Failed 1 tests - output below:
DEBUG: ==============================
DEBUG: octavia.tests.unit.cmd.test_prometheus_proxy.TestPrometheusProxyCMD.test_main
DEBUG: -----------------------------------------------------------------------------
DEBUG: Captured traceback:
DEBUG: ~~~~~~~~~~~~~~~~~~~
DEBUG: Traceback (most recent call last):
DEBUG: File "/usr/lib64/python3.9/unittest/mock.py", line 1336, in patched
DEBUG: return func(*newargs, **newkeywargs)
DEBUG: File "/builddir/build/BUILD/octavia-10.1.1.dev6/octavia/tests/unit/cmd/test_prometheus_proxy.py", line 169, in test_main
DEBUG: mock_serve_forever.assert_called_once()
DEBUG: File "/usr/lib64/python3.9/unittest/mock.py", line 886, in assert_called_once
DEBUG: raise AssertionError(msg)
DEBUG: AssertionError: Expected 'serve_forever' to have been called once. Called 0 times.

Revision history for this message
Michael Johnson (johnsom) wrote :

This code is gone in newer versions because python 3.8 had the newer approach available.
I'm guessing that something is using the port in this test environment, causing the test failure.

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.