Instance task_state remains in 'deleting' state if Compute server is down

Bug #957009 reported by Unmesh Gurjar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Sumant Murke

Bug Description

Scenario: If the Compute server where the instance is running goes down, and a delete request for the instance is received, the instance state remains in 'deleting' state.
Verify the response in the database or dashboard.

Expected Response: The vm_state of instance must be 'error'.
Actual Response: The vm_state remains in the 'active' state and task_state is 'deleting'.

Branch: master

The Nova API must check if the Compute server (hosting the instance) is up, and if it is down, update the vm_state state in database to 'error'.

Tags: compute
Changed in nova:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

I don't understand this expected behavior. Why would an instance be in error if it's running fine?

Revision history for this message
Unmesh Gurjar (unmesh-gurjar) wrote :

I agree that the instance is running fine. However, until the Compute server comes up, the instance will remain in 'deleting' state. A user has no information about the reason the instance is in 'deleting' state for that long (from looking at the dashboard).
I have linked this bug to a blueprint for compute instance clean up service.

Revision history for this message
Mandar Vaze (mandarvaze) wrote :
Revision history for this message
Sean Dague (sdague) wrote :

Any progress so far?

 -your friendly neighborhood bug triager

Changed in nova:
status: New → Confirmed
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
Changed in nova:
assignee: Unmesh Gurjar (unmesh-gurjar) → nobody
melanie witt (melwitt)
tags: added: compute
removed: ntt
robin (robinflx25)
Changed in nova:
assignee: nobody → robin (robinflx25)
robin (robinflx25)
Changed in nova:
assignee: robin (robinflx25) → nobody
Changed in nova:
assignee: nobody → Sumant Murke (sumant-murke)
Revision history for this message
Sumant Murke (sumant-murke) wrote :

I tried to reproduce the scenario and found out that the current behavior of the system is a valid scenario.
When a compute server is down and a delete request is sent the instance is marked for deletion and whenever the compute server is up and running the periodic task deletes the instance.
I feel that this bug is been fixed and is no longer a valid scenario and should be marked as invalid.

Changed in nova:
status: Confirmed → Invalid
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.