3.5. Creating an internal project for the Block Storage service
Some Block Storage features require an internal Block Storage project or tenant, that is also known as the service project, which is called cinder-internal.
The Block Storage service (cinder) uses this project to manage resources that this service creates to ensure that these resources are not counted towards the users' project quota limits. For example: the volumes that are created when images are cached for frequent volume cloning or temporary copies of volumes being migrated.
Since this cinder-internal project is also subject to the default project quotas, you must adjust the volumes quota for this project, which is limited to only 10 volumes, by default. You can either set the limit of the volumes quota to be unlimited (-1) or provide a number, to ensure the effective use of your available volume storage, such as 50. You might also need to change the gigabytes quota that limits the maximum size of the created volumes for this project, in gigabytes, which is set to 1000 by default.
Procedure
Access the remote shell for the
openstackclientpod from your workstation:$ oc rsh -n openstack openstackclientCreate a generic project and user, both named
cinder-internal, as follows:$ openstack project create --enable --description "Block Storage Internal Project" cinder-internal +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Block Storage Internal Project | | domain_id | default | | enabled | True | | id | 670615550a5d4126b22953f76f380397 | | is_domain | False | | name | cinder-internal | | options | {} | | parent_id | default | | tags | [] | +-------------+----------------------------------+ $ openstack user create --project cinder-internal cinder-internal +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | 670615550a5d4126b22953f76f380397 | | domain_id | default | | enabled | True | | id | a6b3576f345346a590f2c8292f5cbd60 | | name | cinder-internal | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+Modify the maximum number of volumes that the Block Storage service can create for this
cinder-internalproject:$ openstack quota set --volumes <maxnum> cinder-internal-
Replace
<maxnum>with the maximum number of volumes that the Block Storage service can create for thiscinder-internalproject.
-
Replace
Optional: Modify the maximum total size of all the volumes that the Block Storage service can create for this
cinder-internalproject:$ openstack quota set --gigabytes <maxgb> cinder-internal-
Replace
<maxgb>with the maximum total size, in gigabytes, of the volumes that the Block Storage service can create for thiscinder-internalproject.
-
Replace
Exit the
openstackclientpod:$ exit