Bug 1286427

Summary: Network labels : wrong labels link appear on a _label_ resource - confusing to the user on how to remove label via REST API
Product: [oVirt] ovirt-engine Reporter: Ori Ben Sasson <obensass>
Component: BLL.NetworkAssignee: Yevgeny Zaspitsky <yzaspits>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: medium Docs Contact:
Priority: high    
Version: 3.6.1CC: bugs, danken, ylavi
Target Milestone: ovirt-3.6.2Keywords: Regression
Target Release: 3.6.1.2Flags: rule-engine: ovirt-3.6.z+
rule-engine: blocker+
ylavi: planning_ack+
danken: devel_ack+
rule-engine: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:11:48 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 Ori Ben Sasson 2015-11-29 11:28:22 UTC
Description of problem:
It's impossible to remove label from NIC with rest API 
in the following link 10.35.163.37/ovirt-engine/api/hosts/d5447a3d-8c4e-40da-9800-dfdcf24de680/nics/b8b37881-fa63-4ed5-a76d-8a695f8c5fb7/virtualfunctionallowedlabels/label_0 ,i try to delete label and i couldn't. probably because adding virtualfunctionallowedlabels function. 
Manually it's possible to remove label from host NIC

Version-Release number of selected component (if applicable):
rhevm-3.6.1-0.2.el6.noarch

How reproducible:
100

Steps to Reproduce:
1.Attach label to host NIC
2.Remove label from host NIC

Actual results:
Its impossible to remove label from host NIC 

Expected results:
should be possible to remove label from host NIC

Comment 1 Red Hat Bugzilla Rules Engine 2015-11-29 11:56:54 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Yevgeny Zaspitsky 2015-11-29 12:34:37 UTC
1. The bug does not reproduce on my env.
2. On the QA env if we use the right URL 10.35.163.37/ovirt-engine/api/hosts/d5447a3d-8c4e-40da-9800-dfdcf24de680/nics/b8b37881-fa63-4ed5-a76d-8a695f8c5fb7/labels/label_0 (note the difference: "labels" instead of "virtualfunctionallowedlabels") everything works. So the bug is about wrong labels link appears on a NIC resource rather than "It's impossible to remove label from NIC with rest API".

Comment 3 Yevgeny Zaspitsky 2015-11-29 12:44:37 UTC
Correction to my last comment:
The bug is about wrong labels link appears on a _label_ resource.

Comment 4 Ori Ben Sasson 2015-12-29 08:06:43 UTC
Verified on 3.6.2-0.1.el6