Managing Block Storage Service Quotas

As an administrator, you can update the Metacloud Block Storage service quotas for a project.

You can manage the following Block storage properties:

Property Name Definition
gigabytes Volume gigabytes allowed for each project.
snapshots Volume snapshots allowed for each project.
volumes Volumes allowed for each project.

To view Block Storage quotas:

  1. Obtain the project ID.

    $ project_id=$(openstack project show -f value -c id <PROJECT_NAME>)
    
  2. List the default quotas for a project (tenant):

    $ cinder quota-defaults <PROJECT_ID>
    +-----------------------------+-------+
    | Property                    | Value |
    +-----------------------------+-------+
    | backup_gigabytes            | 1000  |
    | backups                     | 10    |
    | gigabytes                   | 1000  |
    | gigabytes_ceph              | -1    |
    | gigabytes_test-priv-voltype | -1    |
    | gigabytes_test-voltype      | -1    |
    | per_volume_gigabytes        | -1    |
    | snapshots                   | 10    |
    | snapshots_ceph              | -1    |
    | snapshots_test-priv-voltype | -1    |
    | snapshots_test-voltype      | -1    |
    | volumes                     | 10    |
    | volumes_ceph                | -1    |
    | volumes_test-priv-voltype   | -1    |
    | volumes_test-voltype        | -1    |
    +-----------------------------+-------+
    
  3. View Block Storage service quotas for a project (tenant):

     $ openstack quota show <PROJECT_ID>
    +-----------------------------+----------------------------------+
    | 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                               |
    +-----------------------------+----------------------------------+
    
  4. View the current usage of a per-project quota:

    $ cinder quota-usage <PROJECT_ID>
    +-----------------------------+--------+----------+-------+
    | Type                        | In_use | Reserved | Limit |
    +-----------------------------+--------+----------+-------+
    | backup_gigabytes            | 0      | 0        | 1000  |
    | backups                     | 0      | 0        | 10    |
    | gigabytes                   | 184    | 0        | 1000  |
    | gigabytes_ceph              | 184    | 0        | -1    |
    | gigabytes_test-priv-voltype | 0      | 0        | -1    |
    | gigabytes_test-voltype      | 0      | 0        | -1    |
    | per_volume_gigabytes        | 0      | 0        | -1    |
    | snapshots                   | 5      | 0        | 10    |
    | snapshots_ceph              | 5      | 0        | -1    |
    | snapshots_test-priv-voltype | 0      | 0        | -1    |
    | snapshots_test-voltype      | 0      | 0        | -1    |
    | volumes                     | 7      | 0        | 10    |
    | volumes_ceph                | 7      | 0        | -1    |
    | volumes_test-priv-voltype   | 0      | 0        | -1    |
    | volumes_test-voltype        | 0      | 0        | -1    |
    +-----------------------------+--------+----------+-------+
    

To edit and update block storage quotas:

  1. Clear the per-project quota limits.

    $ cinder quota-delete <PROJECT_ID>
    
  2. Update the Block Storage service quotas for an existing project (tenant).

    $ cinder quota-update --volumes <NEW_QUOTA_VALUE> <PROJECT_ID>
    $ openstack quota show <PROJECT_ID>
    +-----------------------------+----------------------------------+
    | 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                               |
    +-----------------------------+----------------------------------+
    
    
  3. Run cinder quota-delete <PROJECT_ID> again to clear per-project quota limits.

To remove a service:

  1. Determine the binary name and host of the service to remove.

    $ openstack service list
    +--------------+------------------------+----------------+
    | ID           | Name                   | Type           |
    +--------------+------------------------+----------------+
    | <service_id> | Identity Service       | identity       |
    | <service_id> | CloudFormation Service | cloudformation |
    | <service_id> | Orchestration Service  | orchestration  |
    | <service_id> | Image Service          | image          |
    | <service_id> | Compute Service        | compute        |
    | <service_id> | Network Service        | network        |
    +--------------+------------------------+----------------+
    
  2. Disable the service:

    $ cinder service-disable <HOST_NAME> <BINARY_NAME>
    
  3. Remove the service from the database:

    $ cinder manage service remove <BINARY_NAME> <HOST_NAME>