As pointed out to me by ev0ldave in #openstack the way to fix this is to
figure out exactly what the instance ID is.

$ mysql -u root -p
mysql> USE nova;
mysql> SELECT id, host, hostname FROM instances;
...
mysql> UPDATE instances SET deleted=1, deleted_at="2012-10-10 14:56:30", 
vm_state="deleted" WHERE id = 240;
...
mysql> quit;

$ sudo rm -rf /var/lib/nova/instances/instance-00000240

Solves the issue assuming your bad instance is ID 240. Rinse and repeat
for each instance.

It'd be nice to programatically fix this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1012551

Title:
  Cannot delete instance in ERROR status

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1012551/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to