VM stuck in unshelving

Bug #2043486 reported by Ian Kumlien
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

VM:s stuck in unshelving has no way forward.

They are stuck in limbo and require database hacks to workaround.

There has to be something a admin can try to restart or reset the unshelve process.

(running on openstack yoga, installed via kolla-ansible)

Revision history for this message
Artom Lifshitz (notartom) wrote :

I agree that the reset state API [1] is too limited for cases like you describe, as it can only set the instance to ACTIVE or ERROR.

However, to continue beyond that point we need more information about what happened. Did the instance fail to unshelve and is already in ERROR? Is it stuck in the 'unshelving' task state? In what state is the libvirt domain (I'm assuming the libvirt driver is in use), if one even exists? This mode of failure can be complex, and a simple solution like just resetting state back to SHELVED_OFFLOADED is probably not enough.

I suspect there's a feature request here, but we really need more information about what happened. Triaging this as Incomplete for now.

[1] https://docs.openstack.org/api-ref/compute/#reset-server-state-os-resetstate-action

Changed in nova:
status: New → Incomplete
Revision history for this message
Ian Kumlien (pomac) wrote :

it is stuck in unshelving state, so no machine is assigned and there is no indication of it running on any machine... so checking any local state is kinda impossible...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
Revision history for this message
Ian Kumlien (pomac) wrote :

And yet another vm stuck in "shelved" that will have to be binned due to broken state...

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.