Recovering From a Faulty State

Team evoila
18. December 2013
Reading time: 2 min

Hi, I started playing with OpenStack Havana recently and will share what I came accross starting with this post. This time my impatience really fucked things up … damn … 😀 Here is what happend:

I created an instance which was spawned successfully. After a while I was going to shutdown the instance using nova stop. The instance remained in “stopping” Task State for a while until my impatience kicked in and I decided to delete the whole instance (nova delete ). That didn’t make things better 😀 I was waiting for at least an hour until I decided “Ok, this isn’t gonna self-heal magically!” 😀

So here is the solution:

root@controller:~# nova list
+--------------------------------------+----------+--------+------------+-------------+--------------------+
| ID                                   | Name     | Status | Task State | Power State | Networks           |
+--------------------------------------+----------+--------+------------+-------------+--------------------+
| 79a54f68-7a02-493d-ab80-7e3473cf961d | cirros01 | ACTIVE | deleting   | Running     | network01=10.0.0.3 |
+--------------------------------------+----------+--------+------------+-------------+--------------------+
root@controller:~# nova reset-state --active 79a54f68-7a02-493d-ab80-7e3473cf961d
root@controller:~# nova list
+--------------------------------------+----------+--------+------------+-------------+--------------------+
| ID                                   | Name     | Status | Task State | Power State | Networks           |
+--------------------------------------+----------+--------+------------+-------------+--------------------+
| 79a54f68-7a02-493d-ab80-7e3473cf961d | cirros01 | ACTIVE | None       | Running     | network01=10.0.0.3 |
+--------------------------------------+----------+--------+------------+-------------+--------------------+
root@controller:~#

Done! This might be a piece of cake for some of you, though 😉 But maybe not.