Migrate Cinder CLI Quota docs
Another riveting chapter in the Cinder docs migration! This patch brings over the CLI Quota related documentation from openstack-manuals. It includes how to set quotas as well as the Cinder specific documentation. As with the other patches, this is just intended to migrate the content so it is once again accessible. Improvements/changes to the documentation can come with follow-on patches. Change-Id: Id5a41b0ebb59ec8db9a80eb1effb873da65140f6
This commit is contained in:
parent
c0d88bfdae
commit
6b267bf55b
232
doc/source/admin/cli-cinder-quotas.rst
Normal file
232
doc/source/admin/cli-cinder-quotas.rst
Normal file
@ -0,0 +1,232 @@
|
|||||||
|
===================================
|
||||||
|
Manage Block Storage service quotas
|
||||||
|
===================================
|
||||||
|
|
||||||
|
As an administrative user, you can update the OpenStack Block
|
||||||
|
Storage service quotas for a project. You can also update the quota
|
||||||
|
defaults for a new project.
|
||||||
|
|
||||||
|
**Block Storage quotas**
|
||||||
|
|
||||||
|
=================== =============================================
|
||||||
|
Property name Defines the number of
|
||||||
|
=================== =============================================
|
||||||
|
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.
|
||||||
|
|
||||||
|
#. Obtain the project ID:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ project_id=$(openstack project show -f value -c id PROJECT_NAME)
|
||||||
|
|
||||||
|
#. List the default quotas for a project:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack quota show --default $OS_TENANT_ID
|
||||||
|
+-----------------------+-------+
|
||||||
|
| Field | Value |
|
||||||
|
+-----------------------+-------+
|
||||||
|
| backup-gigabytes | 1000 |
|
||||||
|
| backups | 10 |
|
||||||
|
| cores | 20 |
|
||||||
|
| fixed-ips | -1 |
|
||||||
|
| floating-ips | 50 |
|
||||||
|
| gigabytes | 1000 |
|
||||||
|
| gigabytes_lvmdriver-1 | -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 | 10 |
|
||||||
|
| per-volume-gigabytes | -1 |
|
||||||
|
| pools | None |
|
||||||
|
| ports | 50 |
|
||||||
|
| project | None |
|
||||||
|
| project_id | None |
|
||||||
|
| properties | 128 |
|
||||||
|
| ram | 51200 |
|
||||||
|
| rbac_policies | 10 |
|
||||||
|
| routers | 10 |
|
||||||
|
| secgroup-rules | 100 |
|
||||||
|
| secgroups | 10 |
|
||||||
|
| server-group-members | 10 |
|
||||||
|
| server-groups | 10 |
|
||||||
|
| snapshots | 10 |
|
||||||
|
| snapshots_lvmdriver-1 | -1 |
|
||||||
|
| subnet_pools | -1 |
|
||||||
|
| subnets | 10 |
|
||||||
|
| volumes | 10 |
|
||||||
|
| volumes_lvmdriver-1 | -1 |
|
||||||
|
+-----------------------+-------+
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Listing default quotas with the OpenStack command line client will
|
||||||
|
provide all quotas for storage and network services. Previously, the
|
||||||
|
:command:`cinder quota-defaults` command would list only storage
|
||||||
|
quotas. You can use `PROJECT_ID` or `$OS_TENANT_NAME` arguments to
|
||||||
|
show Block Storage service quotas. If the `PROJECT_ID` argument returns
|
||||||
|
errors in locating resources, use `$OS_TENANT_NAME`.
|
||||||
|
|
||||||
|
#. View Block Storage service quotas for a project:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack quota show $OS_TENANT_ID
|
||||||
|
+-----------------------+-------+
|
||||||
|
| Field | Value |
|
||||||
|
+-----------------------+-------+
|
||||||
|
| backup-gigabytes | 1000 |
|
||||||
|
| backups | 10 |
|
||||||
|
| cores | 20 |
|
||||||
|
| fixed-ips | -1 |
|
||||||
|
| floating-ips | 50 |
|
||||||
|
| gigabytes | 1000 |
|
||||||
|
| gigabytes_lvmdriver-1 | -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 | 10 |
|
||||||
|
| per-volume-gigabytes | -1 |
|
||||||
|
| pools | None |
|
||||||
|
| ports | 50 |
|
||||||
|
| project | None |
|
||||||
|
| project_id | None |
|
||||||
|
| properties | 128 |
|
||||||
|
| ram | 51200 |
|
||||||
|
| rbac_policies | 10 |
|
||||||
|
| routers | 10 |
|
||||||
|
| secgroup-rules | 100 |
|
||||||
|
| secgroups | 10 |
|
||||||
|
| server-group-members | 10 |
|
||||||
|
| server-groups | 10 |
|
||||||
|
| snapshots | 10 |
|
||||||
|
| snapshots_lvmdriver-1 | -1 |
|
||||||
|
| subnet_pools | -1 |
|
||||||
|
| subnets | 10 |
|
||||||
|
| volumes | 10 |
|
||||||
|
| volumes_lvmdriver-1 | -1 |
|
||||||
|
+-----------------------+-------+
|
||||||
|
|
||||||
|
|
||||||
|
#. Show the current usage of a per-project quota:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ cinder quota-usage $project_id
|
||||||
|
+-----------------------+--------+----------+-------+
|
||||||
|
| Type | In_use | Reserved | Limit |
|
||||||
|
+-----------------------+--------+----------+-------+
|
||||||
|
| backup_gigabytes | 0 | 0 | 1000 |
|
||||||
|
| backups | 0 | 0 | 10 |
|
||||||
|
| gigabytes | 0 | 0 | 1000 |
|
||||||
|
| gigabytes_lvmdriver-1 | 0 | 0 | -1 |
|
||||||
|
| per_volume_gigabytes | 0 | 0 | -1 |
|
||||||
|
| snapshots | 0 | 0 | 10 |
|
||||||
|
| snapshots_lvmdriver-1 | 0 | 0 | -1 |
|
||||||
|
| volumes | 0 | 0 | 10 |
|
||||||
|
| volumes_lvmdriver-1 | 0 | 0 | -1 |
|
||||||
|
+-----------------------+--------+----------+-------+
|
||||||
|
|
||||||
|
|
||||||
|
Edit and update Block Storage service quotas
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Administrative users can edit and update Block Storage
|
||||||
|
service quotas.
|
||||||
|
|
||||||
|
#. To update a default value for a new project,
|
||||||
|
update the property in the :guilabel:`cinder.quota`
|
||||||
|
section of the ``/etc/cinder/cinder.conf`` file.
|
||||||
|
For more information, see the `Block Storage service
|
||||||
|
<https://docs.openstack.org/ocata/config-reference/block-storage.html>`_
|
||||||
|
in OpenStack Configuration Reference.
|
||||||
|
|
||||||
|
#. To update Block Storage service quotas for an existing project
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_ID
|
||||||
|
|
||||||
|
Replace ``QUOTA_NAME`` with the quota that is to be updated,
|
||||||
|
``QUOTA_VALUE`` with the required new value. Use the :command:`openstack quota show`
|
||||||
|
command with ``PROJECT_ID``, which is the required project ID.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack quota set --volumes 15 $project_id
|
||||||
|
$ openstack quota show $project_id
|
||||||
|
+-----------------------+----------------------------------+
|
||||||
|
| Field | Value |
|
||||||
|
+-----------------------+----------------------------------+
|
||||||
|
| backup-gigabytes | 1000 |
|
||||||
|
| backups | 10 |
|
||||||
|
| cores | 20 |
|
||||||
|
| fixed-ips | -1 |
|
||||||
|
| floating-ips | 29 |
|
||||||
|
| gigabytes | 1000 |
|
||||||
|
| gigabytes_lvmdriver-1 | -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 | 10 |
|
||||||
|
| per-volume-gigabytes | -1 |
|
||||||
|
| pools | None |
|
||||||
|
| ports | 50 |
|
||||||
|
| project | e436339c7f9c476cb3120cf3b9667377 |
|
||||||
|
| project_id | None |
|
||||||
|
| properties | 128 |
|
||||||
|
| ram | 51200 |
|
||||||
|
| rbac_policies | 10 |
|
||||||
|
| routers | 10 |
|
||||||
|
| secgroup-rules | 100 |
|
||||||
|
| secgroups | 10 |
|
||||||
|
| server-group-members | 10 |
|
||||||
|
| server-groups | 10 |
|
||||||
|
| snapshots | 10 |
|
||||||
|
| snapshots_lvmdriver-1 | -1 |
|
||||||
|
| subnet_pools | -1 |
|
||||||
|
| subnets | 10 |
|
||||||
|
| volumes | 15 |
|
||||||
|
| volumes_lvmdriver-1 | -1 |
|
||||||
|
+-----------------------+----------------------------------+
|
||||||
|
|
||||||
|
#. To clear per-project quota limits:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ cinder quota-delete PROJECT_ID
|
61
doc/source/admin/cli-set-quotas.rst
Normal file
61
doc/source/admin/cli-set-quotas.rst
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
.. _manage-quotas:
|
||||||
|
|
||||||
|
=============
|
||||||
|
Manage quotas
|
||||||
|
=============
|
||||||
|
|
||||||
|
To prevent system capacities from being exhausted without
|
||||||
|
notification, you can set up quotas. Quotas are operational
|
||||||
|
limits. 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 project-user level.
|
||||||
|
|
||||||
|
Using the command-line interface, you can manage quotas for
|
||||||
|
the OpenStack Compute service, the OpenStack Block Storage service,
|
||||||
|
and the OpenStack Networking service.
|
||||||
|
|
||||||
|
The cloud operator typically changes default values because a
|
||||||
|
project requires more than ten volumes or 1 TB on a compute
|
||||||
|
node.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To view all projects, run:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack project list
|
||||||
|
+----------------------------------+----------+
|
||||||
|
| ID | Name |
|
||||||
|
+----------------------------------+----------+
|
||||||
|
| e66d97ac1b704897853412fc8450f7b9 | admin |
|
||||||
|
| bf4a37b885fe46bd86e999e50adad1d3 | services |
|
||||||
|
| 21bd1c7c95234fd28f589b60903606fa | tenant01 |
|
||||||
|
| f599c5cd1cba4125ae3d7caed08e288c | tenant02 |
|
||||||
|
+----------------------------------+----------+
|
||||||
|
|
||||||
|
To display all current users for a project, run:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack user list --project PROJECT_NAME
|
||||||
|
+----------------------------------+--------+
|
||||||
|
| ID | Name |
|
||||||
|
+----------------------------------+--------+
|
||||||
|
| ea30aa434ab24a139b0e85125ec8a217 | demo00 |
|
||||||
|
| 4f8113c1d838467cad0c2f337b3dfded | demo01 |
|
||||||
|
+----------------------------------+--------+
|
||||||
|
|
||||||
|
Use :samp:`openstack quota show {PROJECT_NAME}` to list all quotas for a
|
||||||
|
project.
|
||||||
|
|
||||||
|
Use :samp:`openstack quota set {PROJECT_NAME} {--parameters}` to set quota
|
||||||
|
values.
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
cli-set-compute-quotas.rst
|
||||||
|
cli-cinder-quotas.rst
|
||||||
|
cli-networking-advanced-quotas.rst
|
@ -67,6 +67,8 @@ Command Line Interface Documentation
|
|||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
admin/cli-manage-volumes
|
admin/cli-manage-volumes
|
||||||
|
admin/cli-set-quotas
|
||||||
|
admin/cli-cinder-quotas
|
||||||
|
|
||||||
Drivers
|
Drivers
|
||||||
=======
|
=======
|
||||||
|
Loading…
Reference in New Issue
Block a user