Troubleshooting
2025.10
Compute
Networking
VMHA
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Delete Orphaned Allocations Using Nova-Manage
Copy Markdown
Open in ChatGPT
Open in Claude
Issue
- When an instance is deleted/migrated/evacuated, sometimes it's corresponding allocation on source host is not deleted from placement and they remain stale.
Resolution
- Query placement API to list all the stale allocations. The below command will list allocations for instances that are either deleted or moved to other compute nodes. Run the below command from any one compute node.
Command
xxxxxxxxxx$ kubectl exec -it deploy/nova_api_osapi -n <NS> -- bash$ nova-manage placement audit --verbose- Verify if the instance exists or is on another compute node.
Command
xxxxxxxxxx$ openstack server list --all-projects --host <Source Host>$ openstack server show -c OS-EXT-SRV-ATTR:host <instance-ID>- Identify the resource provider ID
Command
xxxxxxxxxx$ openstack resource provider list- After validating the allocation is stale and the instance is deleted or moved to other compute node, delete the orphaned allocation using the below command.
Command
xxxxxxxxxx$ kubectl exec -it <nova_api_osapi-pod_name> -n <NS> -- bash$ nova-manage placement audit --verbose --delete <instance-ID>- If there are multiple orphaned allocations, delete them altogether with the below command.
Command
xxxxxxxxxx$ nova-manage placement audit --verbose --delete- After running above we can run a heal allocations for placement to ensure that all placement entries are consistent
Command
xxxxxxxxxx$ nova-manage placement heal_allocations- To validate that there are no more orphaned allocations , please run below command
# nova-manage placement audit
--verbose
Root Cause
- When evacuating an instance if the compute service on the source host is stopped then the records in placement are not deleted automatically.
- As a result,
ostackhostservice cannot communicate with nova-conductor service running on the controller so details are not shared there and it results nova-compute remains in an impression that still holds the instance.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Troubleshooting Host Onboarding Issuesnull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message