OpenStack Compute (Nova)
Go to file
Bence Romsics f1dc4ec39b Do not untrack resources of a server being unshelved
This patch concerns the time when a VM is being unshelved and the
compute manager set the task_state to spawning, claimed resources of
the VM and then called driver.spawn(). So the instance is in vm_state
SHELVED_OFFLOADED, task_state spawning.

If at this point a new update_available_resource periodic job is
started that collects all the instances assigned to the node to
calculate resource usage. However the calculation assumed that a
VM in SHELVED_OFFLOADED state does not need resource allocation on
the node (probably being removed from the node as it is offloaded)
and deleted the resource claim.

Given all this we ended up with the VM spawned successfully but having
lost the resource claim on the node.

This patch changes what we do in vm_state SHELVED_OFFLOADED, task_state
spawning. We no longer delete the resource claim in this state and
keep tracking the resource in stats.

Change-Id: I8c9944810c09d501a6d3f60f095d9817b756872d
Closes-Bug: #2025480
2023-08-17 10:50:32 +02:00
api-guide/source Merge "Fix link to Cyborg device profiles API" 2022-12-20 15:03:28 +00:00
api-ref/source Add a new policy for cold-migrate with host 2023-06-26 11:34:12 +02:00
devstack Skip UnshelveToHostMultiNodesTest in nova-multi-cell 2022-08-31 16:52:21 +02:00
doc Update contributor guide for 2023.2 Bobcat 2023-08-11 21:34:39 +00:00
etc/nova Add os_vif in nova-config-generator 2022-11-07 16:32:28 +01:00
gate Enable unified limits in the nova-next job 2022-03-04 03:42:14 +00:00
nova Do not untrack resources of a server being unshelved 2023-08-17 10:50:32 +02:00
playbooks Test ceph-multistore with a real image 2022-11-09 11:34:02 -08:00
releasenotes Merge "Add a new policy for cold-migrate with host" 2023-07-21 16:52:51 +00:00
roles [OVN] Adapt the live-migration job scripts to work with OVN 2021-03-15 09:41:03 +00:00
tools CI: fix backport validator for new branch naming 2023-05-11 16:23:53 +02:00
.coveragerc Remove nova/openstack/* from .coveragerc 2016-10-12 16:20:49 -04:00
.gitignore db: Enable auto-generation of API DB migrations 2021-10-18 20:26:18 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:45:52 +00:00
.mailmap Add mailmap entry 2014-05-07 12:14:26 -07:00
.pre-commit-config.yaml pre-commit: Sync hacking version, bump plugins 2022-04-05 13:02:18 +01:00
.stestr.conf Finish stestr migration 2017-11-24 16:51:12 -05:00
.zuul.yaml Merge "Add integrated job to test the Nova RBAC old defaults" 2023-08-01 21:15:52 +00:00
bindep.txt Adapt bindep ubuntu-jammy 2022-05-06 08:51:15 +02:00
CONTRIBUTING.rst [Community goal] Update contributor documentation 2020-03-25 12:01:37 +00:00
HACKING.rst Add a hacking rule for the setDaemon method 2022-11-14 13:04:05 +00:00
LICENSE initial commit 2010-05-27 23:05:26 -07:00
MAINTAINERS Fix broken URLs 2017-09-07 15:42:31 +02:00
mypy-files.txt cpu: interfaces for managing state and governor 2023-02-09 07:04:02 +01:00
README.rst Remove the PowerVM driver 2022-08-02 15:31:19 +02:00
requirements.txt db: Remove legacy migrations 2023-02-01 17:00:03 +00:00
setup.cfg Update gate jobs as per the 2023.1 cycle testing runtime 2022-11-22 13:44:26 -06:00
setup.py Updated from global requirements 2017-03-02 11:50:48 +00:00
test-requirements.txt Remove the PowerVM driver 2022-08-02 15:31:19 +02:00
tox.ini Allow running functional-py311 2023-04-05 08:18:55 -07:00

OpenStack Nova

image

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 and OpenStack Ironic.

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: