Implements blueprint per-user-quotas.
Fixes bug 968175
Based on the original quotas structure.
NOTE:
quota_instances, quota_cores, quota_ram, quota_key_pairs and
quota_security_groups are supported per user.
Add CRUD methods for project user quotas API. DocImpact
- Shows quotas for a user.
GET v2/{tenant_id}/os-quota-sets/{tenant_id}?user_id={user_id}
- Updates quotas for a user.
POST v2/{tenant_id}/os-quota-sets/{tenant_id}?user_id={user_id}
Add commands for project user quotas management.
- Show user quotas:
nova-manage project quota --project <Project name> --user <User name>
- Update/Create user quotas:
nova-manage project quota --project <Project name> --user <User name>
--key <key> --value <value>
Change-Id: I24af1f6bc439d5d740303c6fe176a9bffe754579
16 lines
531 B
XML
16 lines
531 B
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<quota_set id="fake_tenant">
|
|
<cores>20</cores>
|
|
<fixed_ips>-1</fixed_ips>
|
|
<floating_ips>10</floating_ips>
|
|
<injected_file_content_bytes>10240</injected_file_content_bytes>
|
|
<injected_file_path_bytes>255</injected_file_path_bytes>
|
|
<injected_files>5</injected_files>
|
|
<instances>10</instances>
|
|
<key_pairs>100</key_pairs>
|
|
<metadata_items>128</metadata_items>
|
|
<ram>51200</ram>
|
|
<security_group_rules>20</security_group_rules>
|
|
<security_groups>10</security_groups>
|
|
</quota_set>
|