Bug 1301992 - The vm.placement_policy.affinity element isn't populated
Summary: The vm.placement_policy.affinity element isn't populated
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 3.6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-3.6.3
: 3.6.3
Assignee: Juan Hernández
QA Contact: Artyom
URL:
Whiteboard:
Depends On:
Blocks: 1305535
TreeView+ depends on / blocked
 
Reported: 2016-01-26 13:51 UTC by Juan Hernández
Modified: 2016-02-18 11:16 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 11:16:56 UTC
oVirt Team: SLA
Embargoed:
rule-engine: ovirt-3.6.z+
rule-engine: blocker+
mgoldboi: planning_ack+
oourfali: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 52760 0 master MERGED restapi: Populate vm.placement_policy.affinity 2016-01-26 15:41:14 UTC
oVirt gerrit 52761 0 ovirt-engine-3.6 MERGED restapi: Populate vm.placement_policy.affinity 2016-01-26 16:14:21 UTC

Description Juan Hernández 2016-01-26 13:51:49 UTC
The vm.placement_policy.affinity element should be populated, but it isn't.

The expected output is something like this:

  GET /vms/{vm:id}
  <vm>
    ...
    <placement_policy>
      <affinity>migratable|user_migratable|pinned</affinity>
    </placement_policy>
    ...
  </vm>

But the actual output is like this:

  GET /vms/{vm:id}
  <vm>
    ...
    <placement_policy/>
    ...
  </vm>

I think that this regression was introduced in version 3.6.1 of the engine by the following change:

  https://gerrit.ovirt.org/46722
  https://gerrit.ovirt.org/#/c/46722/2/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java

Comment 1 Red Hat Bugzilla Rules Engine 2016-01-26 13:51:51 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 Juan Hernández 2016-01-26 15:16:37 UTC
This bug causes an issue in the ManageIQ oVirt provider:

  [Capablanca] - Refresh relationships fails for oVirt (RHEV) provider
  https://github.com/ManageIQ/manageiq/issues/5741

Comment 3 Artyom 2016-02-01 13:17:24 UTC
Verified on rhevm-restapi-3.6.3-0.1.el6.noarch
output of get
<placement_policy>
<affinity>pinned</affinity>
</placement_policy>


Note You need to log in before you can comment on or make changes to this bug.