[Bug 1955578] Re: OVN transaction could not be completed due to a race condition
Brian Haley
1955578 at bugs.launchpad.net
Wed Mar 6 22:29:56 UTC 2024
I have tested neutron version 2:16.4.2-0ubuntu6.4~cloud0 from the cloud-
archive:ussuri-proposed repository and can verify the code has this
change, and the failure does not occur. I followed the steps from
Comment #3:
openstack network create test_ap1_net
openstack network create test_ap2_net
openstack network create test_wan_net
openstack subnet create test_ap1_subnet --subnet-range 192.168.210.0/24 --gateway 192.168.210.254 --network test_ap1_net
openstack subnet create test_ap2_subnet --subnet-range 192.168.220.0/24 --gateway 192.168.220.254 --network test_ap2_net
openstack router create test_ap1_rt
openstack router create test_ap2_rt
# Don't know how to wait for router HA being active so... sleep 5 :)
sleep 5
openstack port create test_ap1_internal_port --network test_ap1_net
openstack port create test_ap2_internal_port --network test_ap2_net
openstack port create test_ap1_wan_port --network nova
openstack port create test_ap2_wan_port --network nova
# Here the error can happen
openstack router add port test_ap1_rt test_ap1_wan_port
I did not see any tracebacks in neutron-server.log regarding the OVN
revision number for the port.
** Tags removed: verification-ussuri-needed
** Tags added: verification-ussuri-done
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1955578
Title:
OVN transaction could not be completed due to a race condition
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive ussuri series:
Fix Committed
Status in Ubuntu Cloud Archive victoria series:
Fix Released
Status in neutron:
Fix Released
Status in neutron package in Ubuntu:
Fix Released
Status in neutron source package in Focal:
Fix Released
Bug description:
When executing the test "test_connectivity_through_2_routers" it is highly possible to have
a race condition:
networking_ovn.common.exceptions.RevisionConflict: OVN revision number
for {PORT_ID} (type: ports) is equal or higher than the given
resource. Skipping update.
Bugzilla reference:
https://bugzilla.redhat.com/show_bug.cgi?id=1860448
===== Ubuntu SRU Details =====
[Impact]
See bug description.
[Test Case]
Deploy openstack with OVN. Run the test_connectivity_through_2_routers test from https://github.com/openstack/neutron-tempest-plugin. This could also be tested manually based on what that test does. Ensure the router port status is not set to DOWN at any point.
[Where problems could occur]
The existing bug could still occur if the assumpion that specifying the port type is not correct. Presumably this is not the case, but that is a theoritical potential for where problems could occur. All of these patches have already landed in the corresponding upstream branches.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1955578/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list