deleting a nova-compute service leaves orphaned records in placement and host mapping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Surya Seetharaman | ||
Ocata |
Fix Released
|
Medium
|
huanhongda | ||
Pike |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Queens |
Confirmed
|
Medium
|
Surya Seetharaman |
Bug Description
Currently when deleting a nova-compute service via the API, we will delete the service and compute_node records in the DB, but the placement resource provider and host mapping records will be orphaned.
The orphaned resource provider records have been found to cause scheduler failures if you re-create the compute node with the same name (but a different UUID). It has been theorized that the stale host mapping records could end up pointing at the wrong cell.
In discussions on IRC (http://
1. delete the RP in placement
2. delete the host mapping
3. delete the service/node
Optionally we could delete the compute node prior to deleting the service to make it explicit and because the ordering is slightly more logical, but this is not a requirement since it will be done implicitly as part of deleting the service.
summary: |
- deleting a nova-compute service leaves orphaned records in placement + deleting a nova-compute service leaves orphaned records in placement and + host mapping |
tags: |
added: api cells placement removed: compute |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in nova: | |
assignee: | nobody → Surya Seetharaman (tssurya) |
Changed in nova: | |
assignee: | Surya Seetharaman (tssurya) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Surya Seetharaman (tssurya) |
Changed in nova: | |
assignee: | Surya Seetharaman (tssurya) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Surya Seetharaman (tssurya) |
The change will also require a release note since nova-api today does not require having the [placement] section of nova.conf configured, but this would require that in order for nova-api to talk to placement-api to delete things.