Merge "[admin-guide]Replace the abandoned command with new command.."
This commit is contained in:
@@ -80,7 +80,7 @@ To view and update default quota values
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-class-update --instances 15 default
|
$ openstack quota set --instances 15 default
|
||||||
|
|
||||||
To view quota values for an existing project
|
To view quota values for an existing project
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
@@ -89,7 +89,7 @@ To view quota values for an existing project
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ openstack quota show TENANT_NAME
|
$ openstack quota show PROJECT_NAME
|
||||||
|
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
| Quota | Limit |
|
| Quota | Limit |
|
||||||
@@ -117,20 +117,20 @@ To update quota values for an existing project
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ tenant=$(openstack project show -f value -c id TENANT_NAME)
|
$ project=$(openstack project show -f value -c id PROJECT_NAME)
|
||||||
|
|
||||||
#. Update a particular quota value.
|
#. Update a particular quota value.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-update --QUOTA_NAME QUOTA_VALUE TENANT_ID
|
$ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_OR_CLASS
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-update --floating-ips 20 TENANT_NAME
|
$ openstack quota set --floating-ips 20 PROJECT_OR_CLASS
|
||||||
$ openstack quota show TENANT_NAME
|
$ openstack quota show PROJECT_NAME
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
| Quota | Limit |
|
| Quota | Limit |
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
@@ -152,12 +152,12 @@ To update quota values for an existing project
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
To view a list of options for the :command:`nova quota-update` command,
|
To view a list of options for the :command:`openstack quota set` command,
|
||||||
run:
|
run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova help quota-update
|
$ openstack help quota set
|
||||||
|
|
||||||
View and update Compute quotas for a project user
|
View and update Compute quotas for a project user
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@@ -169,25 +169,25 @@ To view quota values for a project user
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ tenantUser=$(openstack user show -f value -c id USER_NAME)
|
$ projectUser=$(openstack user show -f value -c id USER_NAME)
|
||||||
|
|
||||||
#. Place the user's project ID in a usable variable, as follows:
|
#. Place the user's project ID in a usable variable, as follows:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ tenant=$(openstack project show -f value -c id TENANT_NAME)
|
$ project=$(openstack project show -f value -c id PROJECT_NAME)
|
||||||
|
|
||||||
#. List the currently set quota values for a project user.
|
#. List the currently set quota values for a project user.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-show --user $tenantUser --tenant $tenant
|
$ nova quota-show --user $projectUser --tenant $project
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-show --user $tenantUser --tenant $tenant
|
$ nova quota-show --user $projecUser --tenant $project
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
| Quota | Limit |
|
| Quota | Limit |
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
@@ -214,26 +214,26 @@ To update quota values for a project user
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ tenantUser=$(openstack user show -f value -c id USER_NAME)
|
$ projectUser=$(openstack user show -f value -c id USER_NAME)
|
||||||
|
|
||||||
#. Place the user's project ID in a usable variable, as follows:
|
#. Place the user's project ID in a usable variable, as follows:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ tenant=$(openstack project show -f value -c id TENANT_NAME)
|
$ project=$(openstack project show -f value -c id PROJECT_NAME)
|
||||||
|
|
||||||
#. Update a particular quota value, as follows:
|
#. Update a particular quota value, as follows:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-update --user $tenantUser --QUOTA_NAME QUOTA_VALUE $tenant
|
$ nova quota-update --user $projectUser --QUOTA_NAME QUOTA_VALUE $project
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova quota-update --user $tenantUser --floating-ips 12 $tenant
|
$ nova quota-update --user $projectUser --floating-ips 12 $project
|
||||||
$ nova quota-show --user $tenantUser --tenant $tenant
|
$ nova quota-show --user $projectUser --tenant $project
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
| Quota | Limit |
|
| Quota | Limit |
|
||||||
+-----------------------------+-------+
|
+-----------------------------+-------+
|
||||||
@@ -265,26 +265,34 @@ To update quota values for a project user
|
|||||||
To display the current quota usage for a project user
|
To display the current quota usage for a project user
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
|
||||||
Use :command:`nova absolute-limits` to get a list of the
|
Use :command:`nova limits` to get a list of the
|
||||||
current quota values and the current quota usage:
|
current quota values and the current quota usage:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ nova absolute-limits --tenant TENANT_NAME
|
$ nova limits --tenant PROJET_NAME
|
||||||
|
|
||||||
|
+------+-----+-------+--------+------+----------------+
|
||||||
|
| Verb | URI | Value | Remain | Unit | Next_Available |
|
||||||
|
+------+-----+-------+--------+------+----------------+
|
||||||
|
+------+-----+-------+--------+------+----------------+
|
||||||
|
|
||||||
+--------------------+------+-------+
|
+--------------------+------+-------+
|
||||||
| Name | Used | Max |
|
| Name | Used | Max |
|
||||||
+--------------------+------+-------+
|
+--------------------+------+-------+
|
||||||
| Cores | 0 | 20 |
|
| Cores | 0 | 20 |
|
||||||
| FloatingIps | 0 | 10 |
|
|
||||||
| ImageMeta | - | 128 |
|
|
||||||
| Instances | 0 | 10 |
|
| Instances | 0 | 10 |
|
||||||
| Keypairs | - | 100 |
|
| Keypairs | - | 100 |
|
||||||
| Personality | - | 5 |
|
| Personality | - | 5 |
|
||||||
| Personality Size | - | 10240 |
|
| Personality Size | - | 10240 |
|
||||||
| RAM | 0 | 51200 |
|
| RAM | 0 | 51200 |
|
||||||
| SecurityGroupRules | - | 20 |
|
|
||||||
| SecurityGroups | 0 | 10 |
|
|
||||||
| Server Meta | - | 128 |
|
| Server Meta | - | 128 |
|
||||||
| ServerGroupMembers | - | 10 |
|
| ServerGroupMembers | - | 10 |
|
||||||
| ServerGroups | 0 | 10 |
|
| ServerGroups | 0 | 10 |
|
||||||
+--------------------+------+-------+
|
+--------------------+------+-------+
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The :command:`nova limits` command generates an empty
|
||||||
|
table as a result of the Compute API, which prints an
|
||||||
|
empty list for backward compatibility purposes.
|
||||||
|
Reference in New Issue
Block a user