Bug 1954529

Summary: [OSP 16.2] libvirt.libvirtError: internal error: unable to execute QEMU command 'device_del': Device virtio-disk2 is already in the process of unplug
Product: Red Hat OpenStack Reporter: Lee Yarwood <lyarwood>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: James Parker <jparker>
Severity: high Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: dasmith, dcadzow, eglynn, jhakimra, jparker, kchamart, sbauza, sgordon, smooney, vromanso
Target Milestone: betaKeywords: Patch, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-20.6.1-2.20210429124809.10df176.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:14:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1794216, 1833442    

Description Lee Yarwood 2021-04-28 10:39:13 UTC
Description of problem:

./nova-compute.log:2021-04-27 20:26:23.790 7 ERROR nova.virt.block_device [instance: f48cb536-0414-41c9-b52a-59b20f73fe04]
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server [req-8864621c-a219-47be-ba24-b9e2e238f109 b7c0e5495039469ab3450f1a67149535 e15c224945a04367bc01da5a151675dd - default default] Exception during message handling: libvirt.libvirtError: internal error: unable to execute QEMU command 'device_del': Device virtio-disk2 is already in the process of unplug
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
~~ output omitted ~~
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/eventlet/tpool.py", line 83, in tworker
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server     rv = meth(*args, **kwargs)
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server   File "/usr/lib64/python3.6/site-packages/libvirt.py", line 1534, in detachDeviceFlags
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server     raise libvirtError('virDomainDetachDeviceFlags() failed')
./nova-compute.log:2021-04-27 20:26:23.849 7 ERROR oslo_messaging.rpc.server libvirt.libvirtError: internal error: unable to execute QEMU command 'device_del': Device virtio-disk2 is already in the process of unplug

Version-Release number of selected component (if applicable):
Latest 16.2 build.

How reproducible:
Always.

Steps to Reproduce:
1. Run tempest against env defaulting to the q35 machine type.

Actual results:
Some test failures as devices fail to be detached.

Expected results:
All tests pass.

Additional info:

https://bugs.launchpad.net/nova/+bug/1923206
https://review.opendev.org/q/I0e068043d8267ab91535413d950a3e154c2234f7

Comment 15 errata-xmlrpc 2021-09-15 07:14:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:3483