Anyway to terminate instances stuck in REBUILD or RESIZE state?

Asked by Jay Pipes

Running a set of functional tests in Tempest, I ended up with two stuck server instances -- one in REBUILD and one in RESIZE status. Attempting to terminate them via Horizon results in an error saying I cannot terminate an instance in REBUILD or RESIZE status. How can I remove these server instances?

Thanks,
-jay

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Erdfelt
Solved:
Last query:
Last reply:
Revision history for this message
Jay Pipes (jaypipes) said :
#1

ping.

Revision history for this message
Best Johannes Erdfelt (johannes.erdfelt) said :
#2

If a rebuild or resize failed and it didn't move it to ERROR, then that's a bug. If you can, please open up bugs, hopefully with tracebacks.

To delete these, you will need to set the vm_state of the instance to ERROR in the database.

Revision history for this message
Jay Pipes (jaypipes) said :
#3

Got it. Thanks, Johannes! I'll file bugs when I can repeat the problem.

Cheers!
-jay

Revision history for this message
David Kranz (david-kranz) said :
#4

I had the same problem but am not sure how to do this reset. I looked at /var/lib/nova/nova.sqlite with a sql browser but did not see much in there. Is this the right database? Is there an easy way to set the vm_state?