Bug 862208 - user cannnot take a vm from pool via restapi
Summary: user cannnot take a vm from pool via restapi
Keywords:
Status: CLOSED DUPLICATE of bug 864438
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-api
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact:
URL:
Whiteboard: virt
Depends On:
Blocks: 864438
TreeView+ depends on / blocked
 
Reported: 2012-10-02 09:49 UTC by Pieter Vogel
Modified: 2014-01-13 00:38 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 864438 (view as bug list)
Environment:
Last Closed: 2012-10-09 13:39:50 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 862791 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 862791

Description Pieter Vogel 2012-10-02 09:49:48 UTC
Description of problem: user cannnot create ticket for a machine from pool


Version-Release number of selected component (if applicable):
component: ovirt-engine-restapi
version: 3.1.0 beta2 

How reproducible: always


Steps to Reproduce:
1. grant user rights on pool
2. use restapi (with userlogin) to see on which pools user has rights. 
2. use restapi to take a vm from pool

  
Actual results: this is not implemented or documented.

Expected results: This should be possible because this is possible in userportal.


Additional info: The restapi is missing the possibility to "take vm" which is usually done in userportal. Now it is not possible to use restapi to connect to a machine from a pool.

Comment 1 Pieter Vogel 2012-10-02 10:05:58 UTC
bug should be in:
Product: Red Hat Enterprise Virtualization Manager
component: ovirt-engine-restapi

But I cann't move this bug.

Comment 2 Michael Pasternak 2012-10-02 10:24:38 UTC
Hi Pieter,

Can you please post request you have used against api and engine log?

Comment 3 Pieter Vogel 2012-10-02 11:41:16 UTC
That is the problem. This is not possible via restapi.

In the userportal a user can click on a pool to get a vm from that pool (take vm)
then the userportal shows a machine from that pool (eg pool-01)
then the user can click on that machine for a spice-connection.

Via restapi we try it as follows:

get as user a list of vm's
This results in a list of vm's the user has rights on. but their is no pool visible. and of course we don't have a possibility to "take a vm" and give user rights on a vm from a pool.


What we are missing in restapi:

1) howto see via restapi that a user has a userrole on a pool
2) take a vm from a pool (if a user didn't already have one)

Comment 4 Itamar Heim 2012-10-03 19:43:21 UTC
indeed.
the rest api was originally developed for admins, and pool 'allocate' wasn't relevant for admins.
now that user api was added, it was basedon the admin api, which didn't have this verb which should be added.

http://lists.ovirt.org/pipermail/engine-devel/2012-October/002572.html

Comment 5 Michael Pasternak 2012-10-09 13:39:50 UTC

*** This bug has been marked as a duplicate of bug 864438 ***


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