"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