Setting Project Quotas

Setting up operational limits (quotas) can help prevent system capacities from being exhausted without notification. For example, the number of gigabytes allowed for each project can be controlled so that cloud resources are optimized. Quotas can be enforced at both the project and the tenant-user level.

Using the CLI, you can manage quotas for the Metacloud Compute service, Block Storage service, and Networking service.

Note
Default values can be changed when a tenant requires more than ten volumes or 1 TB on a compute node.

To view all projects:

 $ openstack project list
 +--------------+----------+
 | ID           | Name     |
 +--------------+----------+
 | <project_id> | admin    |
 | <project_id> | services |
 | <project_id> | tenant01 |
 | <project_id> | tenant02 |
 +--------------+----------+

To display all current users for a project:

 $ openstack user list --project <PROJECT_NAME>
 +---------------+--------+
 | ID            | Name   |
 +---------------+--------+
 | <user_id>     | demo00 |
 | <user_id>     | demo01 |
 +---------------+--------+

To list all quotas for a project:

$ openstack quota show <PROJECT_NAME>
+-----------------------------+----------------------------------+
| Field                       | Value                            |
+-----------------------------+----------------------------------+
| backup-gigabytes            | 1000                             |
| backups                     | 10                               |
| cores                       | 20                               |
| fixed-ips                   | -1                               |
| floating-ips                | 10                               |
| gigabytes                   | 1000                             |
| gigabytes_ceph              | -1                               |
| gigabytes_test-priv-voltype | -1                               |
| gigabytes_test-voltype      | -1                               |
| health_monitors             | None                             |
| injected-file-size          | 10240                            |
| injected-files              | 5                                |
| injected-path-size          | 255                              |
| instances                   | 10                               |
| key-pairs                   | 100                              |
| l7_policies                 | None                             |
| listeners                   | None                             |
| load_balancers              | None                             |
| location                    | None                             |
| name                        | None                             |
| networks                    | 5                                |
| per-volume-gigabytes        | -1                               |
| pools                       | None                             |
| ports                       | -1                               |
| project                     | <project_id>                     |
| project_id                  | None                             |
| properties                  | 128                              |
| ram                         | 51200                            |
| rbac_policies               | 10                               |
| routers                     | 5                                |
| secgroup-rules              | 35                               |
| secgroups                   | 20                               |
| server-group-members        | 10                               |
| server-groups               | 10                               |
| snapshots                   | 10                               |
| snapshots_ceph              | -1                               |
| snapshots_test-priv-voltype | -1                               |
| snapshots_test-voltype      | -1                               |
| subnet_pools                | -1                               |
| subnets                     | 5                                |
| volumes                     | 10                               |
| volumes_ceph                | -1                               |
| volumes_test-priv-voltype   | -1                               |
| volumes_test-voltype        | -1                               |
+-----------------------------+----------------------------------+

To set quota values for a project:

Add quota value parameters for the project, for exampple:

$ openstack quota set <PROJECT_NAME> --networks <NETWORK_ID> --ports <PORT_ID> --subnet <SUBNET_ID>