Allocations not deleted on failed resize_instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Claudiu Belu | ||
Ocata |
Won't Fix
|
Medium
|
Unassigned | ||
Pike |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Queens |
Fix Committed
|
Medium
|
Claudiu Belu |
Bug Description
Description
===========
During a resize, an instance's allocations are removed and replaced by 2 sets of allocations instead. If a resize is completed sucessfully, one set of allocations is correctly removed, but in case of a failure, neither set of allocations is removed. Only one set of allocations are removed if the instance is deleted.
This happens because the call self.compute_
Additionally, because not all of the allocations are cleared, the resources on the compute nodes will become "locked" and unusable. At some point, instances will no longer be scheduled to those compute nodes, due to all the resources being "allocated".
[1] https:/
[2] https:/
Steps to reproduce
==================
* Spawn an instance.
* Observe that the table nova_api.
* Cold resize to an invalid flavor (e.g.: smaller disk).
* Observe that the table nova_api.
* Observe that the cold resize failed, and that the instance's task state has been reverted to its original state.
* Observe that the table nova_api.
* Delete the instance.
* Observe even after the instance has been destroyed, there is still 1 set of allocations for the instance.
Expected result
===============
After the cold resize failed, there should be only 1 set of allocations in the nova_api.
Actual result
=============
After the cold resize failed, there are 2 sets of allocations in the nova_api.
Environment
===========
Branch: Queens
Hypervisor: Hyper-V Server 2012 R2 (unrelated)
tags: | added: placement resize |
summary: |
- Allocations not deleted on failed resize + Allocations not deleted on failed resize_instance |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/543971
Review: https:/