Bug 1276380

Summary: NPE while running a VM with passthrough devices
Product: [oVirt] ovirt-engine Reporter: Michal Skrivanek <michal.skrivanek>
Component: BLL.VirtAssignee: Martin Betak <mbetak>
Status: CLOSED DUPLICATE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: bugs
Target Milestone: ovirt-3.6.2Flags: michal.skrivanek: ovirt-3.6.z?
michal.skrivanek: ovirt-4.0.0?
michal.skrivanek: planning_ack?
michal.skrivanek: devel_ack?
michal.skrivanek: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-24 11:41:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Michal Skrivanek 2015-10-29 14:53:56 UTC
Created attachment 1087581 [details]
engine.log

I was playing with UI and found an issue when removing assigned devices. NPE in the log and weird behavior

Time: 2015-10-24 09:05:02,871
I had a VM with several devices assigned and only one host (not properly configured for passthrough) and tried to Run it

Time: 2015-10-24 09:06:05,921 and around:
Then I tried to remove the devices (not all at once, in 3 steps) and during the removal of the last one I received an empty result, device disappeared from the UI but apparently remained in backend - after switching tabs the device was still there

Comment 1 Michal Skrivanek 2015-10-29 15:11:36 UTC
seems it left the VM in some inconsistent state as it can't be run ever again even when all devices are removed and engine is restarted

Comment 2 Martin Betak 2015-11-24 11:41:55 UTC
The issue of failing to run the VM has already been fixed in 3.6. Marking as duplicate.

The '[]' in devices removed may appear in cases when you issue the remove commands too quickly and the device has already been removed as a result of previous bulk command. In that case the second operation is NO-OP thus resulting in "empty list of devices has been removed" message.

*** This bug has been marked as a duplicate of bug 1256238 ***