OpenStack Networking (Neutron)
Go to file
Rodolfo Alonso Hernandez e6fb32e27d Fix race condition when creating two routers without HA network
When a HA router is created and the HA is not yet, before creating
the router, the Neutron server creates the HA network and the
corresponding subnet.

The HA network cannot be duplicated (see previous patches related to
this bug). But the subnet, that is created in another database
transaction, cannot be present when the router creation call tries
to create the HA port.

This patch adds a HA subnet check before creating the router and the
HA port. Even if the subnet check fails and the worker tries to
create this subnet, if the process fails with ``InvalidInput``, that
means other worker created the subnet before and the current one
fails because tries to create the same subnet with the same CIDR.
In this case, we dismiss the exception and continue with the router
creation.

Closes-Bug: #2016198

Change-Id: I82225fcc6248bb0fd68959ceb1daabff423d81ff
2023-08-25 08:43:46 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
devstack Remove note about migration from lib/neutron-legacy to lib/neutron 2022-12-20 11:05:05 +01:00
doc Merge "[Docs] Add recommendation about usage of cache in the neutron-metadata-agent" 2023-07-19 14:44:55 +00:00
etc Fix missing oslo.versionedobjects library option 2023-08-08 15:06:02 +09:00
neutron Fix race condition when creating two routers without HA network 2023-08-25 08:43:46 +00:00
playbooks Limit tox version to <4 2022-12-10 20:43:54 +01:00
rally-jobs [ci] Fix several rally task arguments 2020-05-06 14:56:27 +03:00
releasenotes Use the new network HA parameter 2023-08-25 08:43:37 +00:00
roles Switch fullstack/functional fips jobs to 9-stream 2023-07-03 07:46:19 +00:00
tools Merge "gate: bump ovn to the latest LTS release (22.03)" 2023-06-06 18:34:27 +00:00
vagrant/ovn Fix local neutron folder path in ovn/sparse/Vagrantfile 2020-11-03 17:02:34 +01:00
zuul.d Add "openstack-tox-py310-with-sqlalchemy-master" to check queue 2023-08-22 11:15:47 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Ignore reno artefacts (RELEASENOTES.rst and reno.cache) 2023-01-18 04:52:03 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:38:27 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Merge "Fix some new pylint "W" warnings" 2023-08-02 11:03:07 +00:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
CONTRIBUTING.rst [Community goal] Add contributor and PTL guide 2020-03-03 04:43:26 +01:00
HACKING.rst Follow up for replacing assertItemsEqual 2021-06-03 16:04:07 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
README.rst Doc: make the contributor guide more visible 2022-07-14 13:08:56 +02:00
TESTING.rst Amend documentation for fullstack tests 2022-12-08 14:29:34 +01:00
bindep.txt Fix bindep for Debian bookworm 2023-08-21 13:57:00 +00:00
plugin.spec Update url and package name 2023-03-28 06:59:20 +00:00
requirements.txt Use the new network HA parameter 2023-08-25 08:43:37 +00:00
setup.cfg Merge "port-hint-ovs-tx-steering: shim extension" 2023-05-22 12:23:25 +00:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Follow-up: Move linters dependencies to tox.ini 2021-01-07 04:26:07 +09:00
tox.ini [FT] Move ``BaseOVSTestCase`` class to concurrency 1 executor 2023-07-03 18:46:20 +00:00

README.rst

OpenStack Neutron

image

Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).

To learn more about neutron:

If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:

https://docs.openstack.org/neutron/latest/contributor/contributing.html

Get in touch via email. Use [Neutron] in your subject.