Delete virtual machine fails
You encounter a problem when you try to delete a virtual machine, and the virtual machine goes into Error state or is not removed from the management host.
ProblemYou try to delete a virtual machine and the operation fails. The virtual machine goes into Error state and the following reason is displayed:
The virtual machine is not removed from PowerVC and the following reason is displayed:
Virtual console connection is still open.
Compute service of <host> is unavailable at this time.
This problem can occur when PowerVC is unable to close an HMC or PowerVM® NovaLink console window or virtual terminal session to the virtual machine during the deletion. The problem can also occur if the Compute (nova) service is down.
To resolve the problem, log on to the HMC or NovaLink and close the console window or virtual terminal session to the virtual machine.
Depending on the error message you see, apply the following resolution
- If your virtual machine is in the error state and the connection to the hypervisor is broken, check the status of the compute service by running the /opt/ibm/powervc/bin/powervc-services nova status command. If the service is inactive, restart the service by running the /etc/init.d/openstack-nova-compute-<host name> start command.
- You can also check whether the Compute (nova) service is restored. Then, try to delete the virtual machine again