Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1247041

Summary: VFIO/hostdev_passthrough: Incorrect error message displayed when attaching host device to running VM.
Product: [Retired] oVirt Reporter: Nisim Simsolo <nsimsolo>
Component: ovirt-engine-webadminAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: high Docs Contact:
Priority: medium    
Version: 3.6CC: bugs, ecohen, gklein, istein, lsurette, mgoldboi, michal.skrivanek, nsimsolo, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: All   
OS: All   
Whiteboard: virt
Fixed In Version: 3.6.0-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 11:20:51 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
error message screenshot none

Description Nisim Simsolo 2015-07-27 08:23:05 UTC
Description of problem:
When attaching host device to a running VM (which is invalid action) an inappropriate message displayed: 
Operation Canceled
Error while executing action:
AMD_win7:
    Cannot ${action} ${type} because the VM is in ${vmStatus} status.

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


How reproducible:
Consistently

Steps to Reproduce:
1. Run VM from webadmin UI.
2. Navigate to virtual machines -> select running VM -> host devices -> click on add device.
3. Attach device to VM from the dialog page opened and click OK.

Actual results:
Action rejected by the UI with an inappropriate message: 
Cannot ${action} ${type} because the VM is in ${vmStatus} status.

Expected results:
Correct ${action} ${type} and ${vmStatus} should appear in the message.
Or maybe action should be blocked by the UI when VM is running since hot-plug/hot-unplug is not supported by this feature yet.

Additional info:
oVirt Engine Version: 3.6.0-0.0.master.20150627185750.git6f063c1.el6
Screenshot attached.

Comment 1 Nisim Simsolo 2015-07-27 08:24:32 UTC
Created attachment 1056500 [details]
error message screenshot

Comment 2 Nisim Simsolo 2015-07-27 08:31:38 UTC
Bug is also relevant for removing host device from running VM.

Comment 3 Nisim Simsolo 2015-09-03 07:31:29 UTC
Fixed.
Verified using: RHEVM 3.6.0-0.12.master.el6

Comment 4 Sandro Bonazzola 2015-11-04 11:20:51 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.