Bug 1230775 - Engine should block run of vm with network-used host devices.
Summary: Engine should block run of vm with network-used host devices.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Martin Betak
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-11 14:12 UTC by Martin Betak
Modified: 2016-02-10 12:55 UTC (History)
9 users (show)

Fixed In Version: 3.6.0-12
Clone Of:
Environment:
Last Closed: 2016-02-10 12:55:49 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)
screenshot (110.46 KB, image/png)
2016-02-02 07:28 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 42160 0 master MERGED scheduler: Prevent passthrough of network-used devices Never
oVirt gerrit 45428 0 ovirt-engine-3.6 MERGED scheduler: Prevent passthrough of network-used devices Never

Description Martin Betak 2015-06-11 14:12:58 UTC
Description of problem: 

It is currently possible to run a VM with passed-through device that is used by a VLAN or logical network which can result in loss of connectivity to the host. 

The engine should detect such situations and prevent run of VM where any required host device is occupied for networking purpose.

Comment 1 Michael Burman 2016-01-21 11:14:45 UTC
Hi Martin,

Please explain how to test this report with exact steps, thank you.

Comment 2 Martin Betak 2016-02-01 09:29:26 UTC
Hi Michael,

the simplest scenario to verify this would be to:

1) have a vm pinned to a host
2) attach to VM host device representing host's NIC that is used with the ovirtmgmt network.
3) Try to run this VM
4) VM Run should fail becouse its device is not available (since it is used for ovirtmgmt and dettaching it from host for passthrough purposes would make the host non-responsive)

Hope that helps.

Best regards,

Martin

Comment 3 Michael Burman 2016-02-02 07:27:00 UTC
Hi Martin)

This report was tested with success on 3.6.3-0.1.el6 and can be verified - engine blocking run of VM with host device that has a network attached to him, but the error message is not clear and should be improved -->

"Error while executing action: 

sr-vm3:
Cannot run VM. There is no host that satisfies current scheduling constraints. See below for details:
The host puma22.scl.lab.tlv.redhat.com did not satisfy internal filter HostDevice because some of the required host devices are unavailable.."

The error message should explain that the host devices are unavailable because they are in use by some network/s or something like that. Agree?

Comment 4 Michael Burman 2016-02-02 07:28:56 UTC
Created attachment 1120345 [details]
screenshot

Comment 5 Martin Betak 2016-02-02 10:52:29 UTC
Hi Michael,

You are right the error message deserves much improvement and we are want to improve the error reporting capabilities for the HostDev 2.0 phase scheduled to land in 4.0 - as a part of bigger extension/redesign of the current host dev feature.

Best regards,

Martin

Comment 6 Michael Burman 2016-02-02 11:27:02 UTC
Verified on - 3.6.3-0.1.el6


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