Ask Your Question
0

What's the last resort when you really need to delete an instance?

asked 2014-06-09 22:38:54 -0500

Krist gravatar image

I have an instance that is in "ERROR" state. And I can't delete it. I've tried the usual suggestions offered here. I tried

nova reset-state <ID>
nova delete <ID>

nova reset-state --active <ID>
nova delete <ID>

None of this actually worked. The host is not running, and is not defined on any of my compute nodes. It is however using up part of the tenant's quota so I need to get rid of it.

So what is the last resort? How do I remove this instance?

edit retag flag offensive close merge delete

Comments

Can you post the output of nova delete command? Also, can you post the output of the nova compute logs?

Kashyap Kopparam gravatar imageKashyap Kopparam ( 2014-06-09 23:34:29 -0500 )edit

nova delete didn't give any output. After nova delete the output of nova list would show "deleting" under "Task State", but that would then revert back to none, with the host not being deleted.

Krist gravatar imageKrist ( 2014-06-10 00:56:53 -0500 )edit

Weird. You can check compute.log and syslog, maybe some clues there.

Kashyap Kopparam gravatar imageKashyap Kopparam ( 2014-06-10 00:59:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-06-26 15:42:09 -0500

mpetason gravatar image

See what caused it to go into Error state:

nova show {uuid}

You'll get a listing of where the instance is, it's virsh ID, and what error message was received on it.

Look through the compute logs on the compute node where the instance was launched.

grep {uuid} /var/log/nova/compute.log

It's better to know why the instance didn't spawn, and try to fix that.

If resetting the state doesn't fix it, the last resort is to update the Database (which you usually don't want to do) and set it's vm_state to deleted. There are a few other places for cleanup as well, just don't go in and remove the entire line for the instance from the database.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-09 22:38:54 -0500

Seen: 77 times

Last updated: Jun 26 '14