Instance status is not updated when compute machine is disconnected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Status of Instance ( VM ) is not updated when compute machine is disconnected from the set up. Also, deletion of VM is not possible .
Set up :-
2 compute nodes ( Compute-1 and Compute-2)
root@controller:~# nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| aa73d8e6-
| e809191d-
+------
COMPUTE-1 hosting ====== UBUNTU_VM
COMPUTE-2 hosting ====== THIRD_VM
Disconnected COMPUTE-2 from the set up ( power shut down) and then tried to delete THIRD_VM but its showing following error
root@controller:~# nova delete aa73d8e6-
The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-6931f510-
ERROR: Unable to delete any of the specified servers.
I have also restarted the controller machine but there is no change in status.of VM its still showing as deleting.
Have you tried to reset the state of the instance, i.e. nova reset-state [--active] <server>? This will get you back to a usable state to try delete again. But something should be done so that the instance state is left in ERROR state instead of DELETING state.