volume is in "in use" state when a vmware instance boot from volume is failed

Bug #1774137 reported by zhaodan7597
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Undecided
Unassigned

Bug Description

when creating a vmware instance from a volume is failed, vm goes to error state, the volume is in "in use" state, and after deleting the vm, the state of the volume is still in "in use" so it can't been deleted.

Tags: vmware
summary: - volume is in "in use" state when vm boot from volume is failed
+ volume is in "in use" state when a vmware instance boot from volume is
+ failed
Changed in nova:
assignee: nobody → zhaodan7597 (zhaodan7597)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by zhaodan7597 (<email address hidden>) on branch: master
Review: https://review.openstack.org/571112

Revision history for this message
Matt Riedemann (mriedem) wrote :

Do you have a stacktrace of the failure? Is the not found error happening when deleting the server and the ComputeManager is trying to detach the volume here?

https://github.com/openstack/nova/blob/6bf11e1dc14afad78b11d980c2544a3dc41579ff/nova/compute/manager.py#L2563

tags: added: vmware
Revision history for this message
zhaodan7597 (zhaodan7597) wrote :

The not found error happening after the server building failed, not in deleteing.
After building failed, it will rollback resources, and destroy this instance. In nova/virt/vmwareapi/driver.py , code goes to destroy() -->_detach_instance_volumes()-->self._vmops.power_off(), then the power_off() will raise a not found exception.

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/626095

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by zhaodan7597 (<email address hidden>) on branch: master
Review: https://review.openstack.org/626095

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.opendev.org/571112

Revision history for this message
Matt Riedemann (mriedem) wrote :

I abandoned the patch, there was a -1 from a core on it for a long time. It looks like addressing that comment would be trivial though if someone wants the patch restored so they can update it.

Changed in nova:
assignee: zhaodan7597 (zhaodan7597) → nobody
status: In Progress → Triaged
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.