Need to rollback persistent domain xml after DeviceDetachFailed exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Fan Zhang |
Bug Description
Description
===========
Volume status rollbacks to "in-use" after a failure to detach a volume due to DeviceDetachFailed, which is fixed in https:/
But the next detaching action will fail because of DeviceNotFound exception.
Steps to reproduce
==================
Attempt to detach a volume while it is mounted and in-use within an instance.
Wait volume status rollbacks to "in-use".
Attempt to detach the volume again.
Expected result
===============
Volume detach succeeds.
Actual result
=============
Volume detach fails and the volume returns to in-use after the second detach.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
Queens-17.0.3
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
N/A
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
Logs & Configs
==============
Logs of second detach after DeviceDetachFailed
2019-10-30 13:17:29.401 2109249 INFO nova.virt.
2019-10-30 13:17:29.407 2109249 DEBUG nova.virt.
2019-10-30 13:17:29.408 2109249 DEBUG nova.virt.
<driver name="qemu" type="raw" cache="
<source protocol="rbd" name="volumes/
<host name="10.
<host name="10.
<host name="10.
<host name="10.
<host name="10.
</source>
<target bus="virtio" dev="vdb"/>
<serial>
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
</disk>
detach_device /usr/lib/
2019-10-30 13:17:29.417 2109249 ERROR nova.virt.
Changed in nova: | |
assignee: | nobody → Fan Zhang (fanzhang) |
Fix proposed to branch: master /review. opendev. org/692370
Review: https:/