Cannot delete instance in ERROR status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi
I think there is a bug of nova .
The situation is :
When I try to boot a instance first time , it report spawning error , The reason is My compute-node don't support kvm virtuallization , So I use qemu instead , Of course it work well after change . BUT when I try to delete the error instance , It cannot be deleted , stay at deleting .
I found the reason is libvirt cannot find the error instance nova created before , The libvirt raise error when it try to create instance But store instance info into db , . So when we want to delete the error instance , the instance cannot be found by libvirt , So it cannot be destroy of course .
Also found that , the Domain XML in two place .
One is in /var/lib/
The other is in /etc/libvirt/
I found the error instance's domain config xml only exist in /var/lib/
The active instance's xml in both /var/lib/
finally , I have to change the db manually so that this error instance record look like terminated . and it work .
My openstack version :
#nova-manage version
2012.1 (2012.1-
Thank you
summary: |
- cannot delete error instance + Cannot delete instance in ERROR status |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: canonistack |
Changed in nova: | |
status: | Fix Committed → Fix Released |
I'm unable to reproduce the problem. I'm using Ubuntu 12.04 Precuse amd64, I had qemu and kvm installed and devstack on TRUNK. It supports both kvm and qemu, so I did 'apt-get purge kvm' to remove kvm support. I then verified nova.conf has 'libvirt_type=kvm' set, restarted nova-compute. nova boot instance attempt resulted in 'ERROR' when nova list , which I assume is desired. I then set nova.conf 'libvirt_ type=qemu' , restarted nova-compute. I was then able to nova delete vmname as well as nova boot another vm successfully. Therefore, was unable to reproduce the problem.