Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1333045 - original template field is not exposed to REST API
original template field is not exposed to REST API
Status: CLOSED CURRENTRELEASE
Product: ovirt-engine
Classification: oVirt
Component: RestAPI (Show other bugs)
3.6.5
x86_64 Linux
unspecified Severity unspecified (vote)
: ovirt-4.1.0-alpha
: 4.1.0.2
Assigned To: Marek Libra
sefi litmanovich
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-04 10:49 EDT by enax
Modified: 2017-02-06 23:03 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
A new 'original_template' property has been introduced for the 'vm' REST API resource. This enables the user to get information about the template the virtual machine was based on before cloning.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-02-01 09:35:22 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: ovirt‑4.1+
rule-engine: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 60407 master MERGED Add Original Template Link to the VM 2016-07-12 03:54 EDT
oVirt gerrit 60457 master MERGED restapi: Add Original Template link to Vm 2016-08-22 07:37 EDT

  None (edit)
Description enax 2016-05-04 10:49:59 EDT
Description of problem:

Down there is the last email from Tomas Jelinek, the full thread can be found here: http://lists.ovirt.org/pipermail/users/2016-May/039622.html

the thing is that:
- if you create a VM from a template using the "clone" provisioning the VM is detached from the VM and is considered to be based on Blank
- this is why the VM dialog shows blank and the REST returns blank
- there has been a feature implemented (in 3.5 IIRC) which introduced the concept of "original template" - so we remember also what template it was cloned from (both name and ID)
- it seems this particular field is not exposed to REST API, only to UI
Comment 1 Sandro Bonazzola 2016-12-12 08:54:56 EST
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.
Comment 2 sefi litmanovich 2016-12-19 03:38:13 EST
Verified with ovirt-engine-4.1.0-0.2.master.20161218144454.gitbaa2853.el7.centos.noarch.

original_template attribute in vm API links to the original template where the original vm was created from.
In a vm created from template the link is the same as template attribute.
In cloned vms (tried clone from vm/template/snapshot) template attribute links to Blank template and original_template to the template of the source.

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