9a977cb28c
Change I2d9ab06b485f76550dbbff46f79f40ff4c97d12f in Rocky (and backported through to Pike) added error handling to the resize_instance and finish_resize methods to revert allocations in placement when a failure occurs. This is OK for resize_instance, which runs on the source compute, as long as the instance.host/node values have not yet been changed to the dest host/node before RPC casting to the finish_resize method on the dest compute. It's OK because the instance is still on the source compute and the DB says so, so any attempt to recover the instance via hard reboot or rebuild will be on the source host. This is not OK for finish_resize because if we fail there and revert the allocations, the instance host/node values are already pointing at the dest compute and by reverting the allocations in placement, placement will be incorrectly tracking the instance usage with the old flavor against the source node resource provider rather than the new flavor against the dest node resource provider - where the instance is actually running and the nova DB says the instance lives. This change adds a simple functional regression test to recreate the bug with a multi-host resize. There is already a same-host resize functional test marked here which will need to be fixed as well. Conflicts: nova/tests/functional/test_servers.py nova/virt/fake.py NOTE(mriedem): The test_servers conflict is due to not having change If6aa37d9b6b48791e070799ab026c816fda4441c in Rocky. As a result, the new regression test also had to be modified for the call to assertFlavorMatchesAllocation. The fake module conflict is due to not having change Iefff121640e04abdbb6a4ae546c447f168dc8af9 in Rocky. Change-Id: Ie9e294db7e24d0e3cbe83eee847f0fbfb7478900 Related-Bug: #1825537 (cherry picked from commit |
||
---|---|---|
api-guide/source | ||
api-ref/source | ||
contrib | ||
devstack | ||
doc | ||
etc/nova | ||
gate | ||
nova | ||
placement-api-ref | ||
playbooks/legacy | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MAINTAINERS | ||
README.rst | ||
babel.cfg | ||
bindep.txt | ||
lower-constraints.txt | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tests-py3.txt | ||
tox.ini |
README.rst
Team and repository tags
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: