nova should allow evacuate for an instance in the Error state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Chris Friesen | ||
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Icehouse |
In Progress
|
Medium
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Seyeong Kim |
Bug Description
[Impact]
* Instances in error state cannot be evacuated.
[Test Case]
* nova evacuate <error_
* nova refuses to evacuate the instance because of its state
[Regression Potential]
* Cherry picked from upstream
- removed unnecessary argument passing
- add allowing ERROR state before evacuating.
* actually, in code, added one parameter, and removed unused one.
so very low regression possibility.
* Tested on juju+maas test env.
* Passed tempest smoke tests locally.
Note: one simple way to put an instance into error state is to directly change its database record, for example "update instances set vm_state='error' where uuid='XXXXXXXX'"
We currently allow reboot/
We should allow "evacuate" as well, since it is essentially a "rebuild" on a different compute node.
This would be useful in a number of cases, in particular if an initial evacuation attempt fails (putting the instance into the Error state).
Related branches
tags: | added: compute |
Changed in nova: | |
assignee: | nobody → Chris Friesen (cbf123) |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
description: | updated |
tags: | added: sts |
Changed in nova (Ubuntu Trusty): | |
assignee: | nobody → Liang Chen (cbjchen) |
status: | New → In Progress |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in nova (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: sts-sru |
Changed in nova (Ubuntu Trusty): | |
status: | In Progress → Incomplete |
description: | updated |
tags: |
added: sts-sru-done removed: sts-sru |
tags: | removed: sts |
@Chris, we may need to consider more, what is the state if we evacuate an error VM to other hosts?
Currently, evacuate only support two states: ACTIVE and STOPPED. If the VM is ACTIVE, after evacuate, its state is still ACTIVE; if the VM is STOPPED, after evacuate, its state is still STOPPED.
For ERROR VM, we cannot decide its state after evacuate, comments?