Instance remains in deleting state if libvirt down during deletion

Bug #966087 reported by Unmesh Gurjar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Stanislav Pugachev

Bug Description

Scenario: While terminating an instance, if the libvirt process goes down just before the 'destroy' method gets called from virt.libvirt.connection module, instance remains in 'deleting' state.

Expected Behavior: Compute must handle the exception and update the instance vm_state='error'
Actual Result: The instance remains in the following state: vm_state='active', task_state='deleting', power_state=1.

Compute manager must handle the libvirt exception and set the instance to error state in this scenario.

Tags: ntt
Changed in nova:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/27551

Changed in nova:
assignee: Unmesh Gurjar (unmesh-gurjar) → Stanislav Pugachev (spugache)
status: Confirmed → In Progress
Revision history for this message
Yun Mao (yunmao) wrote :

If the intention is to delete the instance, I'm not sure setting the VM state to Error is the best if we could retry deleting later somehow, say via periodic tasks.

Joe Gordon (jogo)
Changed in nova:
status: In Progress → Incomplete
Revision history for this message
Sean Dague (sdague) wrote :

Long incomplete bug. Please reopen if still useful.

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