Openstack Nova: Unpause after host reboot fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Unassigned | ||
Havana |
Fix Released
|
High
|
Unassigned |
Bug Description
Description of problem:
Unpauseing an instance fails if host has rebooted.
Version-Release number of selected component (if applicable):
RHEL: release 6.5 (Santiago)
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
How reproducible:
Every time
Steps to Reproduce:
1. Boot an instance
2. Pause that instance
3. Reboot host
4. Unpause instance
Actual results:
can't unpause instance stuck in status paused, power state - shutdown
Expected results:
Instance should unpause, return to running state
Additional info:
virsh list -all --managed-save
ID is missing from paused instance "-" (pausecirros), state -> shut off.
[root@orange-vdse ~(keystone_admin)]# virsh list --all --managed-save
Id Name State
-------
1 instance-00000003 running
2 instance-00000002 running
- instance-00000001 shut off
[root@orange-vdse ~(keystone_admin)]# nova list (notice nova status paused)
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| ebe310c2-
| 3ef89feb-
| 8bcae041-
+------
Testing without rebooting host, ID/state ("1"/paused) instance (cirros) are ok and it unpauses ok.
[root@orange-vdse ~(keystone_admin)]# virsh list --all --managed-save
Id Name State
-------
1 instance-00000003 paused
2 instance-00000002 running
- instance-00000001 shut off
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| ebe310c2-
| 3ef89feb-
| 8bcae041-
+------
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → Xavier Queralt (xqueralt) |
tags: | added: libvirt |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → icehouse-rc1 |
tags: | added: icehouse-rc-potential |
Changed in nova: | |
importance: | Medium → High |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-rc1 → 2014.1 |
The instance cannot be unpaused after reboot because it is in the shutdown power state and libvirt expects it to be in the managedsave state.
There is the resume_ guests_ state_on_ host_boot flag in nova that instructs nova to restore the instance's state after booting. This is only done for instances that where running before shutting down, other states are ignored.