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-config | Assignee: | Martin Mucha <mmucha> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | GenadiC <gcheresh> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.5 | CC: | 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: |
|
||||||
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. 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 And then what happens if you re-send the exact configuration Setup Networks returns? The network is re-attached? yes rhevm-3.5.0-0.12.beta.el6ev.noarch Verified by mistake. Still have the issue with rhevm-3.5.0-0.12.beta.el6ev.noarch 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 rhevm-3.5.0-0.13.beta.el6ev.noarch oVirt 3.5 has been released and should include the fix for this issue. |
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)