nova compute need update instance to "Error" state.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1. nova compute need update instance to "Error" state.
When the VM is deleted on hypervisor directly, but nova compute just try to update it to "power_state=0, vm_state=stopped and status=SHUTOFF".
2. The steps to recreate the issue.
a. launch instance on openstack
b. delete the VM on hypervisor directly
c. but OpenStack nova compute(the function _sync_power_
3. The proposal to this issue:
add self._set_
elif vm_state == vm_states.ACTIVE:
# The only rational power state should be RUNNING
if vm_power_state in (power_
elif vm_state == vm_states.STOPPED:
if vm_power_state not in (power_
Changed in nova: | |
status: | Incomplete → Invalid |
It's obviously not normal operation to delete a VM from outside of nova.
Aside from that, nova's behavior seems reasonable anyway. Once you try to go turn it on, I assume it goes into an Error state?