Allocation of an evacuated instance is not cleaned on the source host if instance is not defined on the hypervisor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Balazs Gibizer | ||
Pike |
Fix Released
|
Low
|
Balazs Gibizer | ||
Queens |
Fix Released
|
Medium
|
Elod Illes | ||
Rocky |
Fix Committed
|
Medium
|
Balazs Gibizer | ||
Stein |
Fix Committed
|
Medium
|
Balazs Gibizer |
Bug Description
Nova does not clean up the allocation of an evacuated instance from the recovered source compute host if the instance is not any more defined on the hypervisor.
To reproduce:
* Boot an instance
* Kill the compute host the instance is booted on
* Evacuate the instance
* Recover the original compute host in a way that clears the instance definition from the hypervisor (e.g. redeploy the compute host).
* Check the allocations of the instance in placement API. The allocation against the source compute host is not cleaned up.
The compute manager is supposed to clean up evacuated instances during the compute manager init_host method by calling _destroy_
tags: | added: evacuate |
Changed in nova: | |
assignee: | nobody → Balazs Gibizer (balazs-gibizer) |
Changed in nova: | |
importance: | Undecided → Medium |
Related fix proposed to branch: master /review. openstack. org/512552
Review: https:/