Bug 1333409 - Inconsistent behavior when creating VM from template that pinned to hosts via REST and via UI
Summary: Inconsistent behavior when creating VM from template that pinned to hosts via...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 3.6.5.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Jenny Tokar
QA Contact: Artyom
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-05 12:38 UTC by Artyom
Modified: 2017-12-20 10:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 10:55:37 UTC
oVirt Team: SLA
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 78104 0 master MERGED restapi: fixed host pinning when creating vm from template 2017-06-15 09:09:30 UTC

Description Artyom 2016-05-05 12:38:19 UTC
Description of problem:
Inconsistent behavior when creating VM from template that pinned to hosts via REST and via UI

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

How reproducible:
Always

Steps to Reproduce:
1. Create template from VM that pinned to hosts
2. Create VM from template via REST and via UI
POST request:
<vm>
<name>test_vm</name>
<cluster id="clsuter_id"/>
<template id="template_with_pinning_id"/>
</vm>
3.

Actual results:
Create VM via UI: new VM pinned to hosts
Create VM via REST: new VM does not pin to hosts

Expected results:
I wait for consistent behavior, between REST and UI, or does not inherit pinning hosts from the template, or inherit it automatically also when creating VM from the template via REST API.

Additional info:

Comment 1 Juan Hernández 2016-05-05 14:55:14 UTC
May be a side effect of the fact that the backend no longer copies the template attributes itself? Do we need to copy CPU pinning explicitly like we do with other attributes?

Comment 2 Tomas Jelinek 2016-05-06 08:48:22 UTC
I would rather say a regression introduced by the multi-pinning feature where a VM can be pinned to more than one host.

Comment 3 Juan Hernández 2016-05-06 08:50:25 UTC
API or backend?

Comment 4 Tomas Jelinek 2016-05-06 11:41:31 UTC
API - it looks the template up and maps its params to the new VM - it needs to map also this placement policy.

Comment 5 Artyom 2017-09-17 07:34:48 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20170913112412.git2eb3c0a.el7.centos.noarch

Comment 6 Sandro Bonazzola 2017-12-20 10:55:37 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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