Deploy OpenStack Problem Rollup (v) Delete a virtual host in--openstack state has not been deleting

Source: Internet
Author: User

"Original article, reproduced please specify the source"

First, I restarted the machine, and then wanted to delete the virtual machine that was not successfully created (VT with no CPU turned on), and the result was that the status was always deleting. Creating a virtual machine in this state also fails.

Second, analysis: In the/var/log/nova/nova-compute.log log found the following information:

---------------------------------------------------------------------------------------------------------

2012-08-13 14:30:45 CRITICAL Nova [-] Instance instance-00000002 could not being found.

---------------------------------------------------------------------------------------------------------

Then it is found that the status of Nova-compute (service Nova-compute status) is stop and the restart cannot succeed.

Third, treatment:

Finally I modified the instance-00000002 deleted in the Nova database to turn it into 1.

Mysql> SELECT * from Instances\g
Mysql> Update instances set deleted=1 where id=2; (Note: Depending on the version deleted, some versions will change to the corresponding ID number.) )

After that, Dashboard's page found that it was deleted.

Restart Nova-compute, create the virtual machine again, and the status is active.

Problem thinking Direction: The operation of virtual machine (create, delete, etc.) must be related to Nova-compute.


----------------------------------------------------------------------------------------------------March 25, 2014 update after following the above actions  , and found that although the instance has been deleted, such as: If you want to manually delete a instance: But in the general situation still appear in the memory, CPU information: such as the WINDOWS7-VM, this instance has done the above operation to delete, but here is still displayed. Then, in order to avoid the interference test, after correctly removing the Testwin, SSH connects to the host. Open the MySQL database and go to the Nova database. Use the show tables command to find the following three tables: Quota_classes #打开发现为空表quota_usages #这里面的内容表示为中的图饼. Quotas #这里面表示的是一些配额的限制值. At this point, view the Quota_usages table select * FROMquota_usages;Change the value of in_use in the table to 0 and then refresh Dashboard to see the normal pie. Delete is complete.

Deploy OpenStack issues Rollup (v) Remove a virtual host in--openstack state has not been deleting

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.