Bug 1247041 - VFIO/hostdev_passthrough: Incorrect error message displayed when attaching host device to running VM.
Summary: VFIO/hostdev_passthrough: Incorrect error message displayed when attaching ho...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: 3.6
Hardware: All
OS: All
medium
high
Target Milestone: ---
: 3.6.0
Assignee: Martin Betak
QA Contact: Nisim Simsolo
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-27 08:23 UTC by Nisim Simsolo
Modified: 2016-02-10 19:49 UTC (History)
10 users (show)

Fixed In Version: 3.6.0-10
Clone Of:
Environment:
Last Closed: 2015-11-04 11:20:51 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)
error message screenshot (175.03 KB, image/png)
2015-07-27 08:24 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 44421 0 master MERGED core: Use proper substitution in HostDev commands' canDoActions Never
oVirt gerrit 44628 0 ovirt-engine-3.6 MERGED core: Use proper substitution in HostDev commands' canDoActions Never

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.


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