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

Bug 1338522

Summary: REST-API | Missing '/' in HostNIC labels link
Product: [oVirt] ovirt-engine Reporter: Meni Yakove <myakove>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0.0CC: bugs, danken, juan.hernandez, myakove, oliel, stirabos
Target Milestone: ovirt-4.0.0-rcKeywords: Automation, Regression
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
rule-engine: blocker+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
rule-engine: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:42:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meni Yakove 2016-05-22 13:09:10 UTC
Description of problem:
HostNIC labels link in REST is missing '/' before label word
/ovirt-engine/api/hosts/d502ece0-4442-4746-b847-1bfd61427d84/nics/2e28bfff-c03c-43fd-9cc2-45b887ab8893labels"

should be /ovirt-engine/api/hosts/d502ece0-4442-4746-b847-1bfd61427d84/nics/2e28bfff-c03c-43fd-9cc2-45b887ab8893/labels"

Version-Release number of selected component (if applicable):
ovirt-engine-4.0.0-0.0.master.20160521171336.git2e1899b.el7.centos.noarch

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-23 06:11:44 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 Yaniv Lavi 2016-05-23 13:14:26 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 3 Ori Liel 2016-05-25 14:13:35 UTC
Just to make sure, you request: 

  GET .../api/hosts/xxx/nics/

and in the received NIC the link to the Labels sub-collection is malformed, is that correct? 

Looks like the bug is somewhere in here: 

  AbstractBaseHostNicLabelsResource.addLinks()

Comment 4 Meni Yakove 2016-05-27 13:18:43 UTC
yes, missing '/' before the word 'labels'

Comment 5 Dan Kenigsberg 2016-05-29 09:12:47 UTC
Meni, can you state the REST url that presents this bug?

Comment 6 Meni Yakove 2016-05-29 14:29:28 UTC
What do you mean? Just go to /ovirt-engine/api/hosts/<host_id>/nics/<nic_id> and check the label href on clean engine install

Comment 7 Juan Hernández 2016-05-30 10:07:38 UTC
This regression was introduced by the change that renamed "Label" to "NetworkLabel", in order to introduce the new "AffinityLabel" concept. I'm moving to the infra team.

Comment 8 Meni Yakove 2016-06-01 18:08:24 UTC
In the latest nightly I have '/' before labels but when I go to:
network-ge-1.scl.lab.tlv.redhat.com/ovirt-engine/api/hosts/<host_id>/nics/<nic_id>/labels the label href is:
/ovirt-engine/api/hosts/<host_id>/nics/<nic_id>/networklabels/lb1"

In the href 'networklabels' should be 'labels'

Comment 9 Meni Yakove 2016-06-03 15:32:04 UTC
Juan, did you saw my last comment?

Comment 10 Juan Hernández 2016-06-03 15:34:07 UTC
Yes Meni, patch 58595 should address that issue.

Comment 11 Meni Yakove 2016-06-22 15:09:10 UTC
rhevm-4.0.0.5-0.1.el7ev.noarch

Comment 12 Sandro Bonazzola 2016-07-05 07:42:49 UTC
oVirt 4.0.0 has been released, closing current release.