On instance build error, instance status should not be changed to SHUTOFF

Bug #810654 reported by Antony Messerli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Titan

Bug Description

If a build error occurs that causes an exception, the state of the VM ends up bein set to shutoff from this action in compute:

2011-07-14 18:15:34,448 INFO nova.compute.manager [-] Found instance 'instance-00000004' in DB but no VM. State=8, so setting state to shutoff.

The state of whether or not the instance is running should be independent of the status of the build of the VM. If the VM goes to error state, it should report back that the instance is now in error state. Changing the state to ShutOff because the instance isn't built yet does not properly reflect the state of the VM. I've also noticed that long running builds will sometimes be set to shut off from build and then they later go active.

Running rev 1271.

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :

Hi Ant,

I think this is caused by the poll_instance_states function in the nova compute manager.

---

Also, This is one of many status transition issues I've noticed. I started a list on the wiki here:

http://wiki.openstack.org/status_transition_issues

My conclusion was that the status columns are a bit overloaded and got the feeling we might actually benefit from a blueprint or something to address some of the status tracking issues across the board. As they seem to be rather widespread I wasn't sure filing tickets on each issue was the way to go about fixing these...

Revision history for this message
Thierry Carrez (ttx) wrote :

Agreed, those need to be looked at from a global POV, approved and then implemented, rather than fixed piece by piece and hoping nobody else "fixes" them their own way in between.

summary: - On instance build error, instance status is changed to SHUTOFF
+ On instance build error, instance status should not be changed to
+ SHUTOFF
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Titan (rackspace-titan)
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-rbp
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-rbp → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.