Re: [ovirt-users] Cannot set a quota to limit resources for each user

2017-08-06 Thread Yanir Quinn
Hi,
to get a reference for users and roles for a specific quota you can use:

.../ovirt-engine/api/datacenters/{datacenter: id}/quotas/{quota:
id}/permissions


for example:

GET
http://localhost:8080/ovirt-engine/api/datacenters/59746a95-0352-0329-02fd-026f/quotas/a86e8efd-7650-412d-8e3d-5d9729e891d6/permissions

result:






 



 



 
 

Regards,
Yanir Quinn






On Fri, Aug 4, 2017 at 1:01 PM, Staniforth, Paul <
p.stanifo...@leedsbeckett.ac.uk> wrote:

> Hi Soumya,
> You can copy  quotas, what I can't figure out is how
> to set a consumer from the API.
>
> In table 7.263 Attributes Summary at
> https://access.redhat.com/documentation/en-us/red_hat_
> virtualization/4.1/html/rest_api_guide/types#types-quota
>
> it show a users attribute but I only get
>
>  id="7e3f074f-9911-40b8-a8ed-a52f7e933fff">
> testcli
>  rel="permissions"/>
>  rel="quotastoragelimits"/>
>  rel="quotaclusterlimits"/>
> 20
> 80
>  href="/ovirt-engine/api/datacenters/0001-0001-0001-0001-012f"
> id="0001-0001-0001-0001-012f"/>
> 20
> 80
> 
>
> Regards,
>Paul S.
>
> 
> From: users-boun...@ovirt.org  on behalf of
> Soumya Koduri 
> Sent: 03 August 2017 15:16
> To: Artyom Lukianov
> Cc: users
> Subject: Re: [ovirt-users] Cannot set a quota to limit resources for each
>  user
>
> Hi Artyom,
>
> On 08/03/2017 04:07 PM, Artyom Lukianov wrote:
> > Hi Soumya,
> >
> >  1. Yes, you correct a quota is shared among all quota consumers.
> >  2. No, it not possible, the single possibility as you said is to create
> > a separate quota for each user. I believe it was designed to make
> > quota for group of users at first place, but I think it can be a
> > good RFE :)
>
> Thanks for confirming. I shall file a RFE then.
>
> Regards,
> Soumya
>
> >
> > Best Regards
> >
> > On Thu, Aug 3, 2017 at 10:54 AM, Soumya Koduri  > > wrote:
> >
> > Hi,
> >
> > We have a use-case to limit VM resources for each user and were
> > following guidelines specified in the admin guide to set quota and
> > limit resources for each user [section:  16.8. Using Quota to Limit
> > Resources by User]. However looks like that quota is shared by all
> > the users added as consumers.
> >
> > Suppose I have created a quota (say quota1) to limit the storage
> > capacity to 100GB for each user. Once I add user1 and user2 as
> > consumers to that quota, seems like both users combined are entitled
> > to 100GB. Is my understanding correct?
> >
> > Please let me know if there is any way to configure a single quota
> > which could be applied for each user individually (i.e, in the above
> > eg., each user should be limited to 100GB storage capacity).
> >
> > Or is the only way this can be done is by creating separate quota
> > for each user [which seems like tedious process and cannot scale]?
> >
> >
> > Thanks,
> > Soumya
> > ___
> > Users mailing list
> > Users@ovirt.org 
> > http://lists.ovirt.org/mailman/listinfo/users
> > 
> >
> >
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> To view the terms under which this email is distributed, please go to:-
> http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot set a quota to limit resources for each user

2017-08-04 Thread Staniforth, Paul
Hi Soumya,
You can copy  quotas, what I can't figure out is how to set 
a consumer from the API.

In table 7.263 Attributes Summary at
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/rest_api_guide/types#types-quota

it show a users attribute but I only get


testcli



20
80

20
80


Regards,
   Paul S.


From: users-boun...@ovirt.org  on behalf of Soumya 
Koduri 
Sent: 03 August 2017 15:16
To: Artyom Lukianov
Cc: users
Subject: Re: [ovirt-users] Cannot set a quota to limit resources for each   
user

Hi Artyom,

On 08/03/2017 04:07 PM, Artyom Lukianov wrote:
> Hi Soumya,
>
>  1. Yes, you correct a quota is shared among all quota consumers.
>  2. No, it not possible, the single possibility as you said is to create
> a separate quota for each user. I believe it was designed to make
> quota for group of users at first place, but I think it can be a
> good RFE :)

Thanks for confirming. I shall file a RFE then.

Regards,
Soumya

>
> Best Regards
>
> On Thu, Aug 3, 2017 at 10:54 AM, Soumya Koduri  > wrote:
>
> Hi,
>
> We have a use-case to limit VM resources for each user and were
> following guidelines specified in the admin guide to set quota and
> limit resources for each user [section:  16.8. Using Quota to Limit
> Resources by User]. However looks like that quota is shared by all
> the users added as consumers.
>
> Suppose I have created a quota (say quota1) to limit the storage
> capacity to 100GB for each user. Once I add user1 and user2 as
> consumers to that quota, seems like both users combined are entitled
> to 100GB. Is my understanding correct?
>
> Please let me know if there is any way to configure a single quota
> which could be applied for each user individually (i.e, in the above
> eg., each user should be limited to 100GB storage capacity).
>
> Or is the only way this can be done is by creating separate quota
> for each user [which seems like tedious process and cannot scale]?
>
>
> Thanks,
> Soumya
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot set a quota to limit resources for each user

2017-08-03 Thread Soumya Koduri

Hi Artyom,

On 08/03/2017 04:07 PM, Artyom Lukianov wrote:

Hi Soumya,

 1. Yes, you correct a quota is shared among all quota consumers.
 2. No, it not possible, the single possibility as you said is to create
a separate quota for each user. I believe it was designed to make
quota for group of users at first place, but I think it can be a
good RFE :)


Thanks for confirming. I shall file a RFE then.

Regards,
Soumya



Best Regards

On Thu, Aug 3, 2017 at 10:54 AM, Soumya Koduri > wrote:


Hi,

We have a use-case to limit VM resources for each user and were
following guidelines specified in the admin guide to set quota and
limit resources for each user [section:  16.8. Using Quota to Limit
Resources by User]. However looks like that quota is shared by all
the users added as consumers.

Suppose I have created a quota (say quota1) to limit the storage
capacity to 100GB for each user. Once I add user1 and user2 as
consumers to that quota, seems like both users combined are entitled
to 100GB. Is my understanding correct?

Please let me know if there is any way to configure a single quota
which could be applied for each user individually (i.e, in the above
eg., each user should be limited to 100GB storage capacity).

Or is the only way this can be done is by creating separate quota
for each user [which seems like tedious process and cannot scale]?


Thanks,
Soumya
___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot set a quota to limit resources for each user

2017-08-03 Thread Artyom Lukianov
Hi Soumya,

   1. Yes, you correct a quota is shared among all quota consumers.
   2. No, it not possible, the single possibility as you said is to create
   a separate quota for each user. I believe it was designed to make quota for
   group of users at first place, but I think it can be a good RFE :)

Best Regards

On Thu, Aug 3, 2017 at 10:54 AM, Soumya Koduri  wrote:

> Hi,
>
> We have a use-case to limit VM resources for each user and were following
> guidelines specified in the admin guide to set quota and limit resources
> for each user [section:  16.8. Using Quota to Limit Resources by User].
> However looks like that quota is shared by all the users added as consumers.
>
> Suppose I have created a quota (say quota1) to limit the storage capacity
> to 100GB for each user. Once I add user1 and user2 as consumers to that
> quota, seems like both users combined are entitled to 100GB. Is my
> understanding correct?
>
> Please let me know if there is any way to configure a single quota which
> could be applied for each user individually (i.e, in the above eg., each
> user should be limited to 100GB storage capacity).
>
> Or is the only way this can be done is by creating separate quota for each
> user [which seems like tedious process and cannot scale]?
>
>
> Thanks,
> Soumya
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Cannot set a quota to limit resources for each user

2017-08-03 Thread Soumya Koduri

Hi,

We have a use-case to limit VM resources for each user and were 
following guidelines specified in the admin guide to set quota and limit 
resources for each user [section:  16.8. Using Quota to Limit Resources 
by User]. However looks like that quota is shared by all the users added 
as consumers.


Suppose I have created a quota (say quota1) to limit the storage 
capacity to 100GB for each user. Once I add user1 and user2 as consumers 
to that quota, seems like both users combined are entitled to 100GB. Is 
my understanding correct?


Please let me know if there is any way to configure a single quota which 
could be applied for each user individually (i.e, in the above eg., each 
user should be limited to 100GB storage capacity).


Or is the only way this can be done is by creating separate quota for 
each user [which seems like tedious process and cannot scale]?



Thanks,
Soumya
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users