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

Bug 1575596

Summary: /vm/affinitylabels should return the same as /affinitylabels
Product: [oVirt] ovirt-engine Reporter: Lucie Leistnerova <lleistne>
Component: RestAPIAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.3CC: bugs, lsvaty, mperina
Target Milestone: ovirt-4.2.4Keywords: Automation
Target Release: ---Flags: rule-engine: ovirt-4.2+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:45:44 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 Lucie Leistnerova 2018-05-07 12:11:25 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. add affinity label to some vm
2. run for the specific vm:
curl -k -u admin@internal:123456 -H "Prefer: persistent-auth" https://engine/ovirt-engine/api/vms/<vm_id>/affinitylabels


Actual results: affinity_label without links to vms and hosts

    <affinity_label href="/ovirt-engine/api/affinitylabels/9a443202-2349-40a2-bff6-320d569aeb26" id="9a443202-2349-40a2-bff6-320d569aeb26">
        <name>test</name>
        <read_only>false</read_only>
    </affinity_label>

Expected results: the same as in main affinitylabels result

curl -k -u admin@internal:123456 -H "Prefer: persistent-auth" https://engine/ovirt-engine/api/affinitylabels

    <affinity_label href="/ovirt-engine/api/affinitylabels/9a443202-2349-40a2-bff6-320d569aeb26" id="9a443202-2349-40a2-bff6-320d569aeb26">
        <name>test</name>
        <link href="/ovirt-engine/api/affinitylabels/9a443202-2349-40a2-bff6-320d569aeb26/hosts" rel="hosts"/>
        <link href="/ovirt-engine/api/affinitylabels/9a443202-2349-40a2-bff6-320d569aeb26/vms" rel="vms"/>
        <read_only>false</read_only>
    </affinity_label>

Comment 1 Lucie Leistnerova 2018-05-07 12:14:00 UTC
I'm sorry, I accidentally submit it too early.


Description of problem:
Element affinity_label is not the same from specific vm as the one in main affinitylabels result.

Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.2.3.5-0.1.el7.noarch

How reproducible: always

Comment 2 Lucie Leistnerova 2018-06-01 07:52:29 UTC
Elements <affinity_label> are the same now.

verified in ovirt-engine-restapi-4.2.4.1-0.1.el7.noarch

Comment 3 Sandro Bonazzola 2018-06-26 08:45:44 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

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