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.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.