Bug 1557777 - USB passthrough device cannot be removed
Summary: USB passthrough device cannot be removed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.2.2
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ovirt-4.2.2
: ---
Assignee: Arik
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-18 14:54 UTC by Nisim Simsolo
Modified: 2018-03-29 11:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-29 11:04:02 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine.log (135.18 KB, application/x-xz)
2018-03-18 15:08 UTC, Nisim Simsolo
no flags Details
vdsm.log (419.01 KB, application/x-xz)
2018-03-18 15:08 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 89145 0 None None None 2018-03-19 13:38:22 UTC
oVirt gerrit 89219 0 master MERGED core: fix removal of vm-host device #2 2018-03-20 11:23:14 UTC
oVirt gerrit 89240 0 ovirt-engine-4.2 MERGED core: fix removal of vm-host device 2018-03-20 16:26:37 UTC

Description Nisim Simsolo 2018-03-18 14:54:16 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nisim Simsolo 2018-03-18 15:04:36 UTC
Sorry, I mistakenly opened the bug without entering description.

Description of problem:
While trying to remove USB passthrough device from VM, an engine NPE occurs and the devices failed to be removed:
2018-03-18 16:51:19,731+02 ERROR [org.ovirt.engine.core.bll.hostdev.RemoveVmHostDevicesCommand] (default task-27) [4c2992e6-4627-40ad-b23d-3a2e59b42166] Exception: java.lang.N
ullPointerException

This issue is not relevant for PCI device. 
Refreshing host capabilities is not solving this issue.

Version-Release number of selected component (if applicable):
rhvm-4.2.2.4-0.1.el7
vdsm-4.20.22-1.el7ev.x86_64
libvirt-client-3.9.0-14.el7.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.15.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Attach USB device to VM. Run VM and verify USB device is attached.
2. Power off VM.
3. Try to remove USB device (from Webadmin -> Compute -> VMs -> click VM -> host devices tab)

Actual results:
USB failed to be removed and the next Webadmin error appears: 
Operation Canceled
Error while executing action RemoveVmHostDevices: Internal Engine Error

Expected results:
USB device should be removed.

Additional info:
vdsm.log and engine.log (2018-03-18 17:02:49,795+02 ERROR) attached.

Comment 2 Nisim Simsolo 2018-03-18 15:08:07 UTC
Created attachment 1409507 [details]
engine.log

Comment 3 Nisim Simsolo 2018-03-18 15:08:36 UTC
Created attachment 1409508 [details]
vdsm.log

Comment 4 meital avital 2018-03-26 07:10:35 UTC
Verification version:
rhvm-4.2.2.5-0.1.el7
vdsm-4.20.23-1.el7ev.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.1.x86_64
libvirt-client-3.9.0-14.el7_5.2.x86_64

Verification steps:
1. Attach USB device and PCI device to RHEL VM. Run VM and verify devices are attached and function.
2. Power off VM.
3. Browse Webadmin -> VM -> host devices, select all devices and click "remove device" button.
4. Verify devices removed from VM.
5. Repeat steps 1-4 on Windows BM

Comment 5 Sandro Bonazzola 2018-03-29 11:04:02 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

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


Note You need to log in before you can comment on or make changes to this bug.