No description
- Python 99.6%
- Shell 0.4%
Concurrent create_port calls on the same subnet could pick and insert the same IP address, causing DBDuplicateEntry failures under parallel instance creation on small pools. NeutronDbSubnet.allocate()/bulk_allocate() now catch that collision and retry with a fresh address (bounded by MAX_ALLOCATE_ATTEMPTS), scoped to a SAVEPOINT so a failed attempt discards only its own work, not the whole create_port transaction. A collision on a specific requested address raises IpAddressAlreadyAllocated instead of retrying with a different one. The SAVEPOINT uses the Core Connection (session.connection().begin_ nested()), not the ORM Session, to avoid expiring unrelated objects already loaded in the same transaction. Adds unit and functional regression tests, including a MySQL-gated class for real concurrent-thread coverage, and a release note. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Change-Id: I4127bd8e37aeaacbc2a6d6a1a94709ef359d7efb |
||
|---|---|---|
| api-ref | ||
| bin | ||
| devstack | ||
| doc | ||
| etc | ||
| neutron | ||
| playbooks | ||
| rally-jobs | ||
| releasenotes | ||
| roles | ||
| tools | ||
| vagrant/ovn | ||
| zuul.d | ||
| .gitignore | ||
| .gitreview | ||
| .mailmap | ||
| .pre-commit-config.yaml | ||
| .pylintrc | ||
| .stestr.conf | ||
| AGENTS.md | ||
| bindep.txt | ||
| CONTRIBUTING.rst | ||
| HACKING.rst | ||
| LICENSE | ||
| pyproject.toml | ||
| README.rst | ||
| requirements.txt | ||
| setup.cfg | ||
| setup.py | ||
| test-requirements.txt | ||
| TESTING.rst | ||
| tox.ini | ||
=================
OpenStack Neutron
=================
.. image:: https://governance.openstack.org/tc/badges/neutron.svg
.. Change things from this point on
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:
* Documentation: https://docs.openstack.org/neutron/latest/
* Features: https://specs.openstack.org/openstack/neutron-specs
* Defects: https://launchpad.net/neutron
* Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
* Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file
`CONTRIBUTING.rst <./CONTRIBUTING.rst>`__ or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via `email <mailto:openstack-discuss@lists.openstack.org>`_. Use
[Neutron] in your subject.