感谢朋友支持本博客,欢迎共同探讨交流,因为能力和时间有限,错误之处在所难免,欢迎指正。
假设转载。请保留作者信息。
博客地址:http://blog.csdn.net/qq_21398167
原博文地址:http://blog.csdn.net/qq_21398167/article/details/46696123
使用 openstack nova boot 创建的实例,出错以后
查看
root@xxx:~# nova list
+--------------------------------------+----------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------+
| edfde014-e489-413d-93e9-ab861a2dfbdd | precise1 | ERROR | None | NOSTATE | |
| 9dad0e43-cb2c-4863-8765-ee4af5d6704d | precise2 | ERROR | None | NOSTATE | |
+--------------------------------------+----------+--------+------------+-------------+----------+
使用 nova delete 删除错误实例
root@xxx:~# nova delete precise1
The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-86e8e658-a18e-47ee-9447-b953d9497882)
ERROR: Unable to delete any of the specified servers.
出现错误 再次查看 状态一直处于deleteing 状态 存在我的机器中 ,永远删不掉
root@xxx:~# nova list
+--------------------------------------+----------+--------+------------+-------------+----------+|
ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------+|
edfde014-e489-413d-93e9-ab861a2dfbdd | precise1 | ERROR | deleting | NOSTATE | ||
9dad0e43-cb2c-4863-8765-ee4af5d6704d | precise2 | ERROR | None | NOSTATE | |
+--------------------------------------+----------+--------+------------+-------------+----------+
oot@xxx:~#
解决的方法:
# nova reset-state --active 9dad0e43-cb2c-4863-8765-ee4af5d6704d
# nova delete 9dad0e43-cb2c-4863-8765-ee4af5d6704d
假设发现还是无法删除,用nova show 查看该实例属于哪个计算节点 即(
| OS-EXT-SRV-ATTR:host | openstack |
| OS-EXT-SRV-ATTR:hypervisor_hostname | openstack
)
到openstack 那个节点下去运行上面的解决方法,就可以