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

Bug 1134380

Summary: It's possible to remove labeled network from Host NIC with setupNetwork command through rest API
Product: [Retired] oVirt Reporter: GenadiC <gcheresh>
Component: ovirt-engine-configAssignee: Martin Mucha <mmucha>
Status: CLOSED CURRENTRELEASE QA Contact: GenadiC <gcheresh>
Severity: high Docs Contact:
Priority: medium    
Version: 3.5CC: bugs, ecohen, gcheresh, gklein, iheim, lvernia, myakove, rbalakri, s.kieske, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: ovirt-3.5.0_rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:25:07 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:
Attachments:
Description Flags
engine and vdsm logs none

Description GenadiC 2014-08-27 12:27:43 UTC
Created attachment 931437 [details]
engine and vdsm logs

Description of problem:
You can remove network from the Host interface (having the same label) with setupNetworks command using rest API

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


How reproducible:
Always

Steps to Reproduce:
1. Attach label 'aaa' to the VLAN network
2. Attach the same label to the Host interface
3. When the network is attached to the Host (as a result of 1 and 2) run setupNetwork command to detach (using restAPI)

Actual results:
An action succeeds and you have network detached from the interface, though they have the same label

Expected results:
SetupNetwork actioin should fail for such case

Additional info:
I was using our automation script to test it - Network labels job test case 7)

Comment 1 Lior Vernia 2014-08-27 13:20:17 UTC
Please attach the code of your script - I suspect as part of the Setup Networks command you're sending, you might be removing the label from the host NIC.

Comment 2 GenadiC 2014-08-27 13:41:32 UTC
No, I am not removing the label.
after setupNetwork command I have a network and a nic with the same label, but not attached, so script is ok

Comment 3 Lior Vernia 2014-08-27 14:23:58 UTC
And then what happens if you re-send the exact configuration Setup Networks returns? The network is re-attached?

Comment 4 GenadiC 2014-08-28 04:43:59 UTC
yes

Comment 5 Meni Yakove 2014-09-15 08:55:33 UTC
rhevm-3.5.0-0.12.beta.el6ev.noarch

Comment 6 Meni Yakove 2014-09-18 16:54:51 UTC
Verified by mistake.
Still have the issue with rhevm-3.5.0-0.12.beta.el6ev.noarch

Comment 7 Sven Kieske 2014-09-19 07:41:07 UTC
you should try to verify in ovirt-3.5.0_rc2 as I guess this is newer than
rhevm-3.5.0-0.12.beta.el6ev.noarch

Comment 8 Meni Yakove 2014-09-28 07:05:13 UTC
rhevm-3.5.0-0.13.beta.el6ev.noarch

Comment 9 Sandro Bonazzola 2014-10-17 12:25:07 UTC
oVirt 3.5 has been released and should include the fix for this issue.