Bug 977304

Summary: [restapi] Missing permissions link at /vmpools url
Product: Red Hat Enterprise Virtualization Manager Reporter: Ondra Machacek <omachace>
Component: ovirt-engine-restapiAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, iheim, jkt, oramraz, pbenas, pstehlik, Rhev-m-bugs
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.4.0-alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:04:59 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 Ondra Machacek 2013-06-24 09:30:09 UTC
Description of problem:
There is missing <link href="/api/vmpools/{id}/permissions" rel="permissions"/> 
element for vmpools, only at /vmpools url.
It is ok for /vmpools/{vmpool:id}.

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

How reproducible:
always

Steps to Reproduce:
1. Access /vmpools url.

Actual results:
<vmpools>
 <vmpool href="/api/vmpools/{id}" id="{id}">
 <actions>
  <link href="/api/vmpools/{id}/allocatevm" rel="allocatevm"/>
 </actions>
 <name>vmpool</name>
 <description/>
 <size>1</size>
 <cluster href="/api/clusters/{id}" id="{id}"/>
 <template href="/api/templates/{id}" id="{id}"/>
 <prestarted_vms>0</prestarted_vms>
 </vmpool>
</vmpools>

Expected results:
<vmpools>
 <vmpool href="/api/vmpools/{id}" id="{id}">
 <actions>
  <link href="/api/vmpools/{id}/allocatevm" rel="allocatevm"/>
 </actions>
 <name>vmpool</name>
 <description/>
 ** <link href="/api/vmpools/{id}/permissions" rel="permissions"/> **
 <size>1</size>
 <cluster href="/api/clusters/{id}" id="{id}"/>
 <template href="/api/templates/{id}" id="{id}"/>
 <prestarted_vms>0</prestarted_vms>
 </vmpool>
</vmpools>

Comment 2 Sandro Bonazzola 2014-01-14 08:43:23 UTC
ovirt 3.4.0 alpha has been released

Comment 3 Petr Beňas 2014-02-17 11:54:10 UTC
Verified in 3.4.0-0.7.beta2.el6.

<description/>
<link href="/api/vmpools/7404ef17-d2b9-429f-8315-6ad6785ac8c8/permissions" rel="permissions"/>
<size>1</size>

Comment 4 Itamar Heim 2014-06-12 14:04:59 UTC
Closing as part of 3.4.0