From 7ca0ee3e6d3f2b99f389cb6deb2dc67927e39258 Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Wed, 8 Jun 2022 10:00:30 +0900 Subject: [PATCH] Doc: Fix way to update default quota value for a new project This commit adds a way to update a default quota value for a new project when ``use_default_quota_class = True`` which is the default setting. With the default setting, the original way which is updating cinder.conf doesn't update the default quota value in the database, and the value in cinder.conf is only used in an initialize phase. So, we need to use CLI to update default quota values in that case. Change-Id: I01114211010817fbc40e959c3db9045958c78d06 --- doc/source/cli/cli-cinder-quotas.rst | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/source/cli/cli-cinder-quotas.rst b/doc/source/cli/cli-cinder-quotas.rst index 6dff0d1073a..4c2ec7435cd 100644 --- a/doc/source/cli/cli-cinder-quotas.rst +++ b/doc/source/cli/cli-cinder-quotas.rst @@ -159,12 +159,29 @@ 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. +#. To update the default quota values for the initial deployment, + update the values of the :guilabel:`quota_*` config options in the + ``/etc/cinder/cinder.conf`` file. For more information, see the :doc:`Block Storage service configuration `. + .. note:: + The values of the :guilabel:`quota_*` config options are only used at + the initial database sync in the initial deployment. If you want to + change a default value for a new project, see the following. + + To update a default value for a new project, set + ``use_default_quota_class = True`` (which is the default setting) in the + :guilabel:`DEFAULT` section of the ``/etc/cinder/cinder.conf`` file, and + run the command as the following. + + .. code-block:: console + + $ openstack quota set --class default --QUOTA_NAME QUOTA_VALUE + + Replace ``QUOTA_NAME`` with the quota that is to be updated, + ``QUOTA_VALUE`` with the required new value. + #. To update Block Storage service quotas for an existing project .. code-block:: console