Merge "Remove unsupported options from cinder-manage quota command"
This commit is contained in:
commit
7fa35fe17c
@ -59,7 +59,7 @@ allowing a finer control of when and what quotas are fixed.
|
|||||||
|
|
||||||
**Checking if quotas and reservations are correct.**
|
**Checking if quotas and reservations are correct.**
|
||||||
|
|
||||||
``cinder-manage quota check [-h] [--project-id PROJECT_ID] [--use-locks]``
|
``cinder-manage quota check [-h] [--project-id PROJECT_ID]``
|
||||||
|
|
||||||
Accepted arguments are:
|
Accepted arguments are:
|
||||||
|
|
||||||
@ -68,29 +68,19 @@ Accepted arguments are:
|
|||||||
--project-id PROJECT_ID
|
--project-id PROJECT_ID
|
||||||
The ID of the project where we want to sync the quotas
|
The ID of the project where we want to sync the quotas
|
||||||
(defaults to all projects).
|
(defaults to all projects).
|
||||||
--use-locks For precise results tables in the DB need to be
|
|
||||||
locked.
|
|
||||||
|
|
||||||
This command checks quotas and reservations, for a specific project (passing
|
This command checks quotas and reservations, for a specific project (passing
|
||||||
``--project-id``) or for all projects, to see if they are out of sync.
|
``--project-id``) or for all projects, to see if they are out of sync.
|
||||||
|
|
||||||
The check will also look for duplicated entries.
|
The check will also look for duplicated entries.
|
||||||
|
|
||||||
By default it runs in the least accurate mode (where races have a higher
|
|
||||||
chance of happening) to minimize the impact on running cinder services. This
|
|
||||||
means that false errors are more likely to be reported due to race conditions
|
|
||||||
when Cinder services are running.
|
|
||||||
|
|
||||||
Accurate mode is also supported, but it will lock many tables (affecting all
|
|
||||||
tenants) and is not recommended with services that are being used.
|
|
||||||
|
|
||||||
One way to use this action in combination with the sync action is to run the
|
One way to use this action in combination with the sync action is to run the
|
||||||
check for all projects, take note of those that are out of sync, and the sync
|
check for all projects, take note of those that are out of sync, and the sync
|
||||||
them one by one at intervals to allow cinder to operate semi-normally.
|
them one by one at intervals to allow cinder to operate semi-normally.
|
||||||
|
|
||||||
**Fixing quotas and reservations**
|
**Fixing quotas and reservations**
|
||||||
|
|
||||||
``cinder-manage quota sync [-h] [--project-id PROJECT_ID] [--no-locks]``
|
``cinder-manage quota sync [-h] [--project-id PROJECT_ID]``
|
||||||
|
|
||||||
Accepted arguments are:
|
Accepted arguments are:
|
||||||
|
|
||||||
@ -99,19 +89,14 @@ Accepted arguments are:
|
|||||||
--project-id PROJECT_ID
|
--project-id PROJECT_ID
|
||||||
The ID of the project where we want to sync the quotas
|
The ID of the project where we want to sync the quotas
|
||||||
(defaults to all projects).
|
(defaults to all projects).
|
||||||
--no-locks For less precise results, but also less intrusive.
|
|
||||||
|
|
||||||
This command refreshes existing quota usage and reservation count for a
|
This command refreshes existing quota usage and reservation count for a
|
||||||
specific project or for all projects.
|
specific project or for all projects.
|
||||||
|
|
||||||
The refresh will also remove duplicated entries.
|
The refresh will also remove duplicated entries.
|
||||||
|
|
||||||
This operation is best executed when Cinder is not running, as it requires
|
This operation is best executed when Cinder is not running, but it can
|
||||||
locking many tables (affecting all tenants) to make sure that then sync is
|
be run with cinder services running as well.
|
||||||
accurate.
|
|
||||||
|
|
||||||
If accuracy is not our top priority, or we know that a specific project is not
|
|
||||||
in use, we can disable the locking.
|
|
||||||
|
|
||||||
A different transaction is used for each project's quota sync, so an action
|
A different transaction is used for each project's quota sync, so an action
|
||||||
failure will only rollback the current project's changes.
|
failure will only rollback the current project's changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user