Rebuild instance is stuck in rebuilding state when hosting Compute is powered off
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Akhil Gudise |
Bug Description
Description
===========
When the instance X's hosting Compute H is down, ry to rebuild instance is stuck is "REBUILD" status forever.
Steps to reproduce
==================
* Create instance X on Compute H
* Power off Compute H
* Rebuild instance X (with same image)
$ openstack server rebuild X
Expected result
===============
The instance X should fails to rebuild on the same host with proper error message.
Actual result
=============
The instance is in "REBUILD" state forever.
Environment
===========
1. Queens release used.
$ rpm -qa | grep nova-compute
openstack-
2. KVM hypervisor
qemu-
libvirt-
2. LVM used as storage backend on Compute host.
lvm2-2.02.177-4
3. Which networking type did you use?
Neutron with OpenVSwitch
Changed in nova: | |
assignee: | nobody → Akhil Gudise (akhil-g) |
I can reproduce the reported behavior on recent master in a devstack. I also waited after the compute service stop until the nova controller detected that the compute is down. Still rebuild is accepted and the the instance is stuck in REBUILD state even after I started the compute service back up.
A possible workaround is to use nova reset-state --active to push the state of the server back to ACTIVE state.
When the compute is started up it logged an ERROR for the stuck instance so this is definitely bug.[1]
[1] http:// paste.openstack .org/show/ 793758/