TestNeutronVifPortIDMixin fails ... sometimes

Bug #2024994 reported by Jay Faulkner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ironic
Triaged
Medium
Unassigned

Bug Description

ft1.7: ironic.tests.unit.drivers.modules.network.test_common.TestNeutronVifPortIDMixin.test_port_changed_client_idtesttools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.9/unittest/mock.py", line 1337, in patched
    return func(*newargs, **newkeywargs)
  File "/home/zuul/src/opendev.org/openstack/ironic/ironic/tests/unit/drivers/modules/network/test_common.py", line 1073, in test_port_changed_client_id
    dhcp_update_mock.assert_called_once_with(
  File "/usr/lib/python3.9/unittest/mock.py", line 208, in assert_called_once_with
    return mock.assert_called_once_with(*args, **kwargs)
  File "/usr/lib/python3.9/unittest/mock.py", line 918, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected 'update_port_dhcp_opts' to be called once. Called 0 times.

Happens in CI some small % of the time? Probably 10% or less. We should fix or disable it.

Revision history for this message
Riccardo Pittau (rpittau) wrote :

noticed this happening some times in the Openshift CI too, still with Python 3.9
something odd happening with that version maybe?
disabling them for the time being sounds ok

Revision history for this message
Jay Faulkner (jason-oldos) wrote :

It fails on more than just 3.9, that was just the first example I found.

Changed in ironic:
status: New → Triaged
importance: Undecided → Medium
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.