
Only allow one detach/attach at a time with the same pattern instance-port_id in order to avoid race condition when multiple detach/attach are run concurrently. When multiple detach run concurrently on a specific instance-port_id, manager consider many of them as valid because info_cache still contains the port and info_cache is refreshed only once the first request complete. So during this gap of time, while the first request accomplishes the task, all subsequent requests are destined to fail and log a warning [1] in different location of code, depending on the outcome of the first request. The Issue is that all those caught requests finally run a deallocate_port_for_instance which will unbind the port. This may cause a race condition, because a successful attach can pass between those unbind, and be silently unbound, resulting in an infrastructure/DB inconsistency. [1] 'Detaching interface %(mac)s failed because the device is no longer found on the guest.' Closes-Bug: #1892870 Change-Id: Iea5969d0bd16dc9a6f1ba950224b0115e466ce66
OpenStack Nova
OpenStack Nova provides a cloud computing fabric controller, supporting a wide variety of compute technologies, including: libvirt (KVM, Xen, LXC and more), Hyper-V, VMware, XenServer, OpenStack Ironic and PowerVM.
Use the following resources to learn more.
API
To learn how to use Nova's API, consult the documentation available online at:
For more information on OpenStack APIs, SDKs and CLIs in general, refer to:
Operators
To learn how to deploy and configure OpenStack Nova, consult the documentation available online at:
In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. If you obtained the software from a 3rd party operating system vendor, it is often wise to use their own bug tracker for reporting problems. In all other cases use the master OpenStack bug tracker, available at:
Developers
For information on how to contribute to Nova, please see the contents of the CONTRIBUTING.rst.
Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.
Further developer focused documentation is available at:
Other Information
During each Summit and Project Team Gathering, we agree on what the whole community wants to focus on for the upcoming release. The plans for nova can be found at: