Bug 1832181

Summary: vNIC is added to a running VM while the network is not attached on the host if specifying network filters
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.NetworkAssignee: Dominik Holler <dholler>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: bugs, mgold
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
dholler: devel_ack+
Target Release: 4.4.1.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:26:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Burman 2020-05-06 09:39:01 UTC
Description of problem:
vNIC is added to a running VM while the network is not attached on the host if specifying network filters

Adding a vNIC to a running VM while the network is not attached to the host is restricted and not allowed. This is blocked by the engine.
But, if specifying any parameter or value(no matter which) in the network filter parameters the network is created. 

Version-Release number of selected component (if applicable):
rhvm-4.4.0-0.33.master.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create network without attaching to any host
2. Start a VM
3. Add the network's vNIC profile to the VM's vNIC, set some values in the network parameters:Name:'r' Value:'r' and press OK.
The network filter parameters can be legal or non-legal.

Actual results:
Operation canceled error is shown saying that the network is not attached to the host, but the vNIC added successfully to the running VM.

Expected results:
Operation must be blocked.

Comment 2 Michael Burman 2020-05-06 10:06:35 UTC
The vNIC is added only in the engine. It is not added to the guest.

Comment 3 Michael Burman 2020-06-25 10:42:59 UTC
Verified on - rhvm-4.4.1.5-0.17.el8ev.noarch

Comment 4 Sandro Bonazzola 2020-07-08 08:26:52 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 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.