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.

Viewing Block Storage Quotas

Use the following procedure to view block storage quotas.

  1. Run the openstack project show command to obtain the project ID.

    $ project_id=$(openstack project show -f value -c id PROJECT_NAME)
    
  2. Run the cinder quota-defaults PROJECT_ID command to list the default quotas for a project (tenant):

    $ cinder quota-defaults $project_id
    +-----------+-------+
    |  Property | Value |
    +-----------+-------+
    | gigabytes |  1000 |
    | snapshots |   10  |
    |  volumes  |   10  |
    +-----------+-------+
    
  3. Run the openstack quota show command to view Block Storage service quotas for a project (tenant):

    $ openstack quota show $project_id
    +-----------+-------+
    |  Property | Value |
    +-----------+-------+
    | gigabytes |  1000 |
    | snapshots |   10  |
    |  volumes  |   10  |
    +-----------+-------+
    
  4. Run the cinder quota-usage PROJECT_ID command to show the current usage of a per-project quota:

    $ cinder quota-usage $project_id
    +-----------+--------+----------+-------+
    |    Type   | In_use | Reserved | Limit |
    +-----------+--------+----------+-------+
    | gigabytes |   0    |    0     |  1000 |
    | snapshots |   0    |    0     |   10  |
    |  volumes  |   0    |    0     |   15  |
    +-----------+--------+----------+-------+
    

Editing and Updating Block Storage Service Quotas

Use the following procedure to edit and update block storage quotas:

  1. Run the cinder quota-delete PROJECT_ID command to clear per-project quota limits.

    $ cinder quota-delete PROJECT_ID
    
  2. Run the cinder quota-update --QUOTA_NAME QUOTA_VALUE PROJECT_ID command to update the Block Storage service quotas for an existing project (tenant).

    • QUOTA_NAME is the quota to be updated
    • QUOTA_VALUE is the new value
    • PROJECT_ID is the project ID

       $ cinder quota-update --volumes 15 $project_id
       $ openstack quota show $project_id
       +-----------+-------+
       |  Property | Value |
       +-----------+-------+
       | gigabytes |  1000 |
       | snapshots |   10  |
       |  volumes  |   15  |
       +-----------+-------+
      
  3. Run the cinder quota-delete PROJECT_ID command again to clear per-project quota limits.

    $ cinder quota-delete PROJECT_ID
    

Removing a Service

  1. Run the openstack service list command to determine the binary and host of the service you want to remove.

    $ openstack service list
    +----------------------------------+------------------------+----------------+
    | ID                               | Name                   | Type           |
    +----------------------------------+------------------------+----------------+
    | 13472894febf418a8072f030ef618fe9 | Identity Service       | identity       |
    | 5f9f5f46ff134bb8bdfddb2c56a0fd66 | CloudFormation Service | cloudformation |
    | bb56946a511a47dbb3563582569d4d6c | Orchestration Service  | orchestration  |
    | c7307358298c4d13ad18abf388d5611e | Image Service          | image          |
    | da1fd60b7ad8427baad15fe246616b6f | Compute Service        | compute        |
    | f097c7a836c74d27b636b721dcea261a | Network Service        | network        |
    +----------------------------------+------------------------+----------------+       
    
  2. Run the following command to disable the service:

    $ cinder service-disable HOST_NAME BINARY_NAME
    
  3. Run the following command to remove the service from the database:

    $ cinder manage service remove BINARY_NAME HOST_NAME