Bug 849396

Summary: RESTAPI: Template resource has link to non existent /tags sub-collection
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Pasternak <mpastern>
Component: ovirt-engine-restapiAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Libosvar <jlibosva>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: anande, bazulay, dyasny, ecohen, iheim, jlibosva, mpastern, oramraz, Rhev-m-bugs, rhodain, sgrinber, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: si16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:59:28 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 Michael Pasternak 2012-08-19 06:30:20 UTC
Description of problem:

RESTAPI: Template resource has link to non existent /tags sub-collection

Comment 1 Anand Nande 2012-08-19 07:14:06 UTC
Same is true with non-existent: Snapshots and Statistics sub-collections.

Comment 2 Itamar Heim 2012-08-19 12:08:54 UTC
(In reply to comment #1)
> Same is true with non-existent: Snapshots and Statistics sub-collections.

template shouldn't have snapshots?

Comment 3 Michael Pasternak 2012-08-20 06:34:30 UTC
yes, because all snapshots are merged during template creation.

Comment 7 Ori Liel 2012-08-26 13:12:26 UTC
More info - 

Error only for single template: 
  
  GET .../api/templates/xxx

(Redundant links don't appear for collection level): 
  
  GET .../api/templates

Comment 8 Ori Liel 2012-08-26 13:45:24 UTC
patch posted: 

http://gerrit.ovirt.org/#/c/7471/

Comment 9 Simon Grinberg 2012-08-27 09:34:29 UTC
Just to be clear: we remain for the time being with: "disks", "nics", "cdroms", "permissions" which are the only valid sub-collections for templates.

If a customer requests other sub-collections then please open an RFE for that and attach the ticket there. 

Anand, your RFE sounds as a Valid one
Roman, Please inform your customers that snapshots are irrelevant for Template, same as run time statistics. The existence of these links is the bug that got resolved in this BZ.

Comment 10 Ori Liel 2012-08-27 12:04:07 UTC
merged upstream, commit b8fd345dc79b841a4e82330e377fd8adb7e5ed19

Comment 12 Anand Nande 2012-08-27 15:11:07 UTC
Simon,

Thanks, raised an RFE : https://bugzilla.redhat.com/show_bug.cgi?id=852086

Comment 13 Jakub Libosvar 2012-10-02 14:58:54 UTC
Verified rhevm-restapi-3.1.0-18.el6ev.noarch