[ovirt-users] Adding a new quota via the ovirt-shell

Doron Fediuck dfediuck at redhat.com
Wed Jun 24 05:27:27 EDT 2015


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 at 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



More information about the Users mailing list