Makes consistent use of variable in the user admin guide.

Closes-Bug: 1532251
Change-Id: I3e96be3fbc49463ed7d1bd5820a877b51a691c2d
This commit is contained in:
pingle 2016-01-19 12:54:50 -06:00
parent 21da3a43ee
commit 0adb876756

View File

@ -8,43 +8,38 @@ defaults for a new project.
**Block Storage quotas**
=================== ===========================================
=================== =============================================
Property name Defines the number of
=================== ===========================================
gigabytes Volume gigabytes allowed for each tenant.
snapshots Volume snapshots allowed for each tenant.
volumes Volumes allowed for each tenant.
=================== ===========================================
=================== =============================================
gigabytes Volume gigabytes allowed for each project.
snapshots Volume snapshots allowed for each project.
volumes Volumes allowed for each project.
=================== =============================================
View Block Storage quotas
~~~~~~~~~~~~~~~~~~~~~~~~~
Administrative users can view Block Storage service quotas.
#. List the default quotas for all projects:
.. code-block:: console
$ cinder quota-defaults TENANT_ID
+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+
#. View Block Storage service quotas for a project.
.. code-block:: console
$ cinder quota-show TENANT_NAME
#. Obtain the project ID.
For example:
.. code-block:: console
$ cinder quota-show tenant01
$ project_id=$(openstack project show -f value -c id PROJECT_NAME)
#. List the default quotas for a project (tenant):
.. code-block:: console
$ cinder quota-defaults PROJECT_ID
For example:
.. code-block:: console
$ cinder quota-defaults $project_id
+-----------+-------+
| Property | Value |
+-----------+-------+
@ -53,11 +48,36 @@ Administrative users can view Block Storage service quotas.
| volumes | 10 |
+-----------+-------+
#. Show the current usage of a per-tenant quota:
#. View Block Storage service quotas for a project (tenant):
.. code-block:: console
$ cinder quota-usage tenantID
$ cinder quota-show PROJECT_ID
For example:
.. code-block:: console
$ cinder quota-show $project_id
+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+
#. Show the current usage of a per-project quota:
.. code-block:: console
$ cinder quota-usage PROJECT_ID
For example:
.. code-block:: console
$ cinder quota-usage $project_id
+-----------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+-----------+--------+----------+-------+
@ -72,11 +92,12 @@ Edit and update Block Storage service quotas
Administrative users can edit and update Block Storage
service quotas.
#. Clear per-tenant quota limits.
#. Clear per-project quota limits.
.. code-block:: console
$ cinder quota-delete tenantID
$ cinder quota-delete PROJECT_ID
#. To update a default value for a new project,
update the property in the :guilabel:`cinder.quota`
@ -84,25 +105,20 @@ service quotas.
For more information, see the `Block Storage
Configuration Reference <http://docs.openstack.org/liberty/config-reference/content/ch_configuring-openstack-block-storage.html>`_.
#. To update Block Storage service quotas, place
the tenant ID in a variable.
#. To update Block Storage service quotas for an existing project (tenant)
.. code-block:: console
$ tenant=$(openstack project show -f value -c id tenantName)
$ cinder quota-update --QUOTA_NAME QUOTA_VALUE PROJECT_ID
#. Update a particular quota value.
.. code-block:: console
$ cinder quota-update --quotaName NewValue tenantID
Replace QUOTA_NAME with the quota that is to be updated; NEW_VALUE with the required new value and PROJECT_ID with required project ID
For example:
.. code-block:: console
$ cinder quota-update --volumes 15 $tenant
$ cinder quota-show tenant01
$ cinder quota-update --volumes 15 $project_id
$ cinder quota-show $project_id
+-----------+-------+
| Property | Value |
+-----------+-------+
@ -111,11 +127,12 @@ service quotas.
| volumes | 15 |
+-----------+-------+
#. Clear per-tenant quota limits.
#. Clear per-project quota limits.
.. code-block:: console
$ cinder quota-delete tenantID
$ cinder quota-delete PROJECT_ID
Remove a service
~~~~~~~~~~~~~~~~
@ -136,10 +153,10 @@ Remove a service
.. code-block:: console
$ cinder service-disable <host> <binary>
$ cinder service-disable HOST_NAME BINARY_NAME
#. Remove the service from the database.
.. code-block:: console
$ cinder-manage service remove <binary> <host>
$ cinder-manage service remove BINARY_NAME HOST_NAME