<div dir="ltr"><div>Thanks a lot, but I am afraid I am missing something.</div><div>I have a project where the cores quota is 20.</div><div>This project has 2 users: </div><div><br></div><div dir="ltr">[root@controller-01 ~]# openstack user list --project b4a1039f2f7c419596662950d8a1d397<br>+----------------------------------+------------------+<br>| ID                               | Name             |<br>+----------------------------------+------------------+<br>| ab573ba3ea014b778193b6922ffffe6d | <a href="mailto:sgaravat@infn.it">sgaravat@infn.it</a> |<br>| 27ae90b9f42547f094d8c899f23c31c2 | sgaraprj99       |<br>+----------------------------------+------------------+<br></div><div dir="ltr"><br></div><div>and by default each user is given 20 cores as quota [*]:<br></div><div><br></div><div>I can decrease the cores quota for a specific user:</div><div><br></div><div>[root@controller-01 ~]# nova quota-update --user 27ae90b9f42547f094d8c899f23c31c2 --cores 2 b4a1039f2f7c419596662950d8a1d397<br></div><div><br></div><div>and this works: the project keeps having 20 cores but that user can instantiate at most 2 VCPUs<br></div><div><br></div><div><br></div><div>If I try the command you suggested:</div><div><br></div><div> openstack quota set --cores 2 b4a1039f2f7c419596662950d8a1d397<br></div><div><br></div><div>it seems to me that the result is changing the quota (from 20 to 2) for the project, while I would like to keep having 20 cores for the project, and 2 cores for each user of that project</div><div><br></div><div>Thanks, Massimo</div><div><br></div><div><br></div><div><br></div><div><br></div><div>[*]</div><div>[root@controller-01 ~]# nova quota-show --tenant b4a1039f2f7c419596662950d8a1d397<br>+----------------------+-------+<br>| Quota                | Limit |<br>+----------------------+-------+<br>| instances            | 10    |<br>| cores                | 20    |<br>| ram                  | 20480 |<br>| metadata_items       | 128   |<br>| key_pairs            | 100   |<br>| server_groups        | 10    |<br>| server_group_members | 10    |<br>+----------------------+-------+<br>[root@controller-01 ~]# nova quota-show --tenant b4a1039f2f7c419596662950d8a1d397 --user ab573ba3ea014b778193b6922ffffe6d<br>+----------------------+-------+<br>| Quota                | Limit |<br>+----------------------+-------+<br>| instances            | 10    |<br>| cores                | 20    |<br>| ram                  | 20480 |<br>| metadata_items       | 128   |<br>| key_pairs            | 100   |<br>| server_groups        | 10    |<br>| server_group_members | 10    |<br>+----------------------+-------+<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 17, 2020 at 4:23 PM melanie witt <<a href="mailto:melwittt@gmail.com">melwittt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 4/17/20 07:01, Massimo Sgaravatto wrote:<br>
> Hello<br>
> <br>
> As far as I understand by default each project user is given the quota <br>
> of the whole project.<br>
> Is it possible to set a different default quota for users of a certain <br>
> project  ?<br>
> And in general I'd like to be able to define different default values <br>
> for different projects<br>
> <br>
> In:<br>
> <br>
> <a href="https://docs.openstack.org/nova/latest/admin/quotas.html" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/admin/quotas.html</a><br>
> <br>
> it is explained how to update the quota for a specific project user, but <br>
> I can't find how to set the default user quota for a given project<br>
<br>
Hi, the steps for updating quota for a specific project are on the doc <br>
you linked here:<br>
<br>
<a href="https://docs.openstack.org/nova/latest/admin/quotas.html#view-and-update-quota-values-for-a-project-or-class" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/admin/quotas.html#view-and-update-quota-values-for-a-project-or-class</a><br>
<br>
$ openstack quota set --QUOTA QUOTA_VALUE PROJECT<br>
<br>
This will change the default quota for that project, so all existing <br>
users in the project will get that quota and all future users in the <br>
project will get that quota.<br>
<br>
Note that the ability to set specific user quota [1] is planned to be <br>
removed in a future release:<br>
<br>
"User-specific quotas are legacy and will be removed when migration to <br>
unified limits is complete. User-specific quotas were added as a way to <br>
provide two-level hierarchical quotas and this feature is already being <br>
offered in unified limits. For this reason, the below commands have not <br>
and will not be ported to openstackclient."<br>
<br>
Hope that helps.<br>
<br>
-melanie<br>
<br>
[1] <br>
<a href="https://docs.openstack.org/nova/latest/admin/quotas.html#view-and-update-quota-values-for-a-project-user" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/admin/quotas.html#view-and-update-quota-values-for-a-project-user</a><br>
</blockquote></div></div>