
Hi, Is it currently possible to define a new resource quota (CPU, memory, storage...) via the ovirt-shell (CLI) in oVirt 3.5.3? I have listed all the available commands but I can't find it under any of them. Thanks. Nicolás

I can't find out how to do the same with the Python SDK, either. There seems to be a 'Quota' object amongst the params, but it doesn't seem to have defined the CPU, memory and disk tresholds parameters. It seems quite confusing to me, AFAIK a Quota object should be assigned to a Datacenter, so I don't know how the Quota object should be built specifying those parameters. Any help with either the CLI or the SDK will be appreciated :-) Thanks. El 18/06/15 a las 14:49, nicolas@devels.es escribió:
Hi,
Is it currently possible to define a new resource quota (CPU, memory, storage...) via the ovirt-shell (CLI) in oVirt 3.5.3? I have listed all the available commands but I can't find it under any of them.
Thanks.
Nicolás _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, cli/sdks are built on top of REST API, but there is no support for quota in 3.5 in REST API. But see[1], should be supported in 3.6. [1] https://bugzilla.redhat.com/show_bug.cgi?id=893927 On 06/18/2015 03:49 PM, nicolas@devels.es wrote:
Hi,
Is it currently possible to define a new resource quota (CPU, memory, storage...) via the ovirt-shell (CLI) in oVirt 3.5.3? I have listed all the available commands but I can't find it under any of them.
Thanks.
Nicolás _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, Since this is not yet implemented, I was wondering whether adding quotas could be accomplished via purely raw SQL sentences. I've done a database dump before and after creating a quota in the oVirt manager and I could see the following changes: 1) An insertion into table 'quota' 2) An insertion into table 'quota_limitation' with field quota_id as a foreign key to the ID of the above row 3) For consumer permissions: a row per user into table 'permissions' Would that suffice in terms of engine consistency to reproduce a quota creation via the oVirt Manager? Thanks. Nicolás El 18/06/15 a las 19:54, Ondra Machacek escribió:
Hi,
cli/sdks are built on top of REST API, but there is no support for quota in 3.5 in REST API. But see[1], should be supported in 3.6.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=893927
On 06/18/2015 03:49 PM, nicolas@devels.es wrote:
Hi,
Is it currently possible to define a new resource quota (CPU, memory, storage...) via the ovirt-shell (CLI) in oVirt 3.5.3? I have listed all the available commands but I can't find it under any of them.
Thanks.
Nicolás _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 23/06/15 22:26, Nicolás wrote:
Hi,
Since this is not yet implemented, I was wondering whether adding quotas could be accomplished via purely raw SQL sentences.
I've done a database dump before and after creating a quota in the oVirt manager and I could see the following changes:
1) An insertion into table 'quota' 2) An insertion into table 'quota_limitation' with field quota_id as a foreign key to the ID of the above row 3) For consumer permissions: a row per user into table 'permissions'
Would that suffice in terms of engine consistency to reproduce a quota creation via the oVirt Manager?
Thanks.
Nicolás
El 18/06/15 a las 19:54, Ondra Machacek escribió:
Hi,
cli/sdks are built on top of REST API, but there is no support for quota in 3.5 in REST API. But see[1], should be supported in 3.6.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=893927
On 06/18/2015 03:49 PM, nicolas@devels.es wrote:
Hi,
Is it currently possible to define a new resource quota (CPU, memory, storage...) via the ovirt-shell (CLI) in oVirt 3.5.3? I have listed all the available commands but I can't find it under any of them.
Thanks.
Nicolás
Hi, I'd advice against manual updates in the DB. The engine has in-memory cache for quota changes which may miss your updates. Doron
participants (4)
-
Doron Fediuck
-
nicolas@devels.es
-
Nicolás
-
Ondra Machacek