When using OpenStack, there are times when you are prompted to create a virtual machine or delete a virtual machine that cannot be successfully created or deleted.
This problem is due to OpenStack's message backlog, which OpenStack Nova computer cannot consume.
This can be done by resetting the virtual machine state, setting the virtual machine to the active state, deleting the virtual machine, and restarting the Nova computer service.
The steps are as follows:
1.SSH Landing OpenStack Management platform.
2. Load source Sources:
SOURCE Keystonerc
3. List the tenants of all OpenStack compute nodes:
Nova List--all-tenants
4. Locate the corresponding virtual machine and its ID, and set it to the active state with the ID:
Nova Reset-state e5e47fe0-e226-47bd-9b27-9ff3259c4301--active
5. After successful activation, view all tenant status again and the virtual machine becomes active state.
Nova List--all-tenants
6. Delete this virtual machine with the corresponding virtual machine ID:
Nova Delete e5e47fe0-e226-47bd-9b27-9ff3259c4301
7. Once again, view the tenant status of the node node, the virtual machine above has been deleted and does not exist:
Nova List--all-tenants
8. SSH login Delete the virtual machine node and restart the Nova computer service:
SSH 192.168.5.233
Systemctl Restart Openstack-nova-compute.service
How to troubleshoot an issue in which OpenStack has been in a deleting or creating state when creating a virtual machine or deleting a VM.