OpenStack Networking (Neutron)
Go to file
Fernando Royo 98abcb6eac Check subnet overlapping after add router interface
When simultaneous attempts are made to add an interface
to the same router including overlapping networks in cidrs,
both attempts are successful. There is a check to avoid this
overlap but is performed when creating the network interface
and it is done over the ports already attached to the router,
so at this moment the check is not able to detect the
overlapping. Furthermore, the create_port operation over the
ML2 plugin  must be executed in isolated transactions, so
trying to control the execution context or adding additional
steps to the transaction is not feasible.

This patch checks once the RouterPort is created on the
neutron database if there is more than one overlapping port,
triggering in that case the exception that will remove the
the culprit of overlapping.

Note: Added clean of l3_obj.RouterPort to avoid errors on
setUp of test class L3TestCase, pick from [1]. Also added
cfg allow_overlapping_ips to True for fullstack job, this one
had been deprecated and enabled by default in newer releases
but added in order to run the backported tests over this
stable branch.

Conflicts:
       neutron/db/l3_db.py
       neutron/tests/unit/db/test_l3_db.py
(manually cherry picked from commit 1abb77d7a6)

[1] https://review.opendev.org/c/openstack/neutron/+/804846/18/neutron/tests/unit/db/test_l3_db.py#612

Closes-Bug: #1987666
Change-Id: I7cec8b53e72e7abf34012906e6adfecf079525af
(cherry picked from commit 1abb77d7a6)
2022-11-07 19:29:51 +01:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
devstack [OVN] security group logging support (2 of 2) 2021-03-02 10:48:23 -05:00
doc update the nova host aggregates links 2022-10-20 02:13:59 +00:00
etc Add missing options to generated neutron.conf 2021-08-21 08:14:12 +00:00
neutron Check subnet overlapping after add router interface 2022-11-07 19:29:51 +01:00
playbooks Run configure_for_func_testing script after enable fips 2022-03-16 10:02:16 +00:00
rally-jobs [ci] Fix several rally task arguments 2020-05-06 14:56:27 +03:00
releasenotes [OVN] Set the default OVN metadata worker number to 0 2022-10-26 14:36:05 +00:00
roles Add functional and fullstack jobs with FIPS enabled 2022-02-24 14:02:43 +00:00
tools Migration revert plan 2022-09-20 11:07:24 +02:00
vagrant/ovn Fix local neutron folder path in ovn/sparse/Vagrantfile 2020-11-03 17:02:34 +01:00
zuul.d Make irrelevant files for functional/fullstack more accurate 2022-06-06 07:25:39 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Add etc/neutron/*.sample files to be ignored by git 2019-12-12 12:38:24 +01:00
.gitreview Update .gitreview for stable/wallaby 2021-03-26 15:26:38 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Remove "six" library 2020-07-28 16:55:52 +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-08-24 12:02:17 +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 Start README.rst with a better title 2019-11-19 17:42:57 +01:00
TESTING.rst Dropping lower constraints testing (stable Wallaby) 2021-06-07 10:10:32 +02:00
bindep.txt Use python3-devel in bindep for rpm distros 2022-03-28 09:51:26 +00:00
plugin.spec Add OVN migration OSP 16.2 option 2021-01-24 17:18:55 +02:00
requirements.txt [OVN] Sync QoS policies 2022-07-01 08:45:21 +00:00
setup.cfg Script to remove duplicated port bindings 2022-09-30 03:39:40 +02: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 Test: mock out _check_netfilter_for_bridges in unit tests 2022-07-27 09:21:15 +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:

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

To learn how to contribute, please read the CONTRIBUTING.rst file.