Add documentation for per share gigabytes quotas

Update documentation to fit into the new manila quota key:
- `per_share_gigabytes`

This cherry-pick is required only to update the admin and config
docs - api ref is always served from the latest branch

Closes-Bug: #1918959
Change-Id: If0bbac2d153348f26f5b60cba3eb492926aa53c5
(cherry picked from commit df3382d960)
This commit is contained in:
kpdev 2021-04-10 07:15:26 +02:00 committed by Goutham Pacha Ravi
parent 8324864885
commit 274073fcdc
12 changed files with 73 additions and 6 deletions

View File

@ -1620,6 +1620,20 @@ os-share-type-access:is_public:
required: false
type: boolean
max_version: 2.6
perShareGigabytes:
description: |
The number of gigabytes per share allowed in a project.
in: body
required: true
type: integer
min_version: 2.62
perShareGigabytesOptional:
description: |
The number of gigabytes per share allowed in a project.
in: body
required: false
type: integer
min_version: 2.62
pool:
description: |
The pool name for the back end.
@ -1748,6 +1762,28 @@ quota_gigabytes_request:
in: body
required: false
type: integer
quota_per_share_gigabytes:
description: |
The number of gigabytes per share allowed for each project.
in: body
required: true
min_version: 2.62
type: integer
quota_per_share_gigabytes_detail:
description: |
The limit, in_use, reserved number of per share gigabytes
for each project.
in: body
min_version: 2.62
required: true
type: object
quota_per_share_gigabytes_request:
description: |
The number of gigabytes per share allowed for each project.
in: body
min_version: 2.62
required: false
type: integer
quota_project_id:
description: |
The ID of the project the quota pertains to.

View File

@ -9,6 +9,8 @@ Quota classes can be shown and updated for a project.
.. important::
Share replicas and replica gigabytes were added to quota management
APIs in API version 2.53.
Per share gigabytes was added to quota management APIs in API
version 2.62.
Show quota classes for a project
@ -56,6 +58,7 @@ Response Parameters
- share_networks: maxTotalShareNetworks
- share_replicas: maxTotalShareReplicas
- replica_gigabytes: maxTotalReplicaGigabytes
- per_share_gigabytes: perShareGigabytes
Response Example
----------------
@ -99,6 +102,7 @@ Request
- share-networks: maxTotalShareNetworksOptional
- share-replicas: maxTotalShareReplicasOptional
- replica-gigabytes: maxTotalReplicaGigabytesOptional
- per-share-gigabytes: perShareGigabytesOptional
Request Example
---------------
@ -122,6 +126,7 @@ Response Parameters
- share_networks: maxTotalShareNetworks
- share_replicas: maxTotalShareReplicas
- replica_gigabytes: maxTotalReplicaGigabytes
- per_share_gigabytes: perShareGigabytes
Response Example
----------------

View File

@ -22,6 +22,7 @@ Provides quotas management support.
- ``share_group_snapshots`` (since API version 2.40)
- ``share_replicas`` (since API version 2.53)
- ``replica_gigabytes`` (since API version 2.53)
- ``per_share_gigabytes`` (since API version 2.62)
Share groups and share group snapshots were added to quota management
APIs in API version 2.40.
@ -29,6 +30,9 @@ Provides quotas management support.
Share replicas and replica gigabytes were added to quota management
APIs in API version 2.53.
Per share gigabytes was added to quota management APIs in API
version 2.62.
Show default quota set
======================
@ -75,6 +79,7 @@ Response parameters
- share_networks: quota_share_networks_default
- share_replicas: quota_share_replicas
- replica_gigabytes: quota_replica_gigabytes
- per_share_gigabytes: quota_per_share_gigabytes
Response example
----------------
@ -133,6 +138,7 @@ Response parameters
- share_group_snapshots: quota_share_group_snapshots
- share_replicas: quota_share_replicas
- replica_gigabytes: quota_replica_gigabytes
- per_share_gigabytes: quota_per_share_gigabytes
Response example
----------------
@ -193,6 +199,7 @@ Response parameters
- share_group_snapshots: quota_share_group_snapshots_detail
- share_replicas: quota_share_replicas_detail
- replica_gigabytes: quota_replica_gigabytes_detail
- per_share_gigabytes: quota_per_share_gigabytes_detail
Response example
----------------
@ -245,6 +252,7 @@ Request
- share_type: share_type_for_quota
- share_replicas: quota_share_replicas_request
- replica_gigabytes: quota_replica_gigabytes_request
- per_share_gigabytes: quota_per_share_gigabytes_request
Request example
---------------
@ -268,6 +276,7 @@ Response parameters
- share_group_snapshots: quota_share_group_snapshots
- share_replicas: quota_share_replicas
- replica_gigabytes: quota_replica_gigabytes
- per_share_gigabytes: quota_per_share_gigabytes
Response example
----------------

View File

@ -9,6 +9,7 @@
"id": "default",
"share_networks": 10,
"share_replicas": 100,
"replica_gigabytes": 1000
"replica_gigabytes": 1000,
"per_share_gigabytes": -1
}
}

View File

@ -8,6 +8,7 @@
"shares": 50,
"share_networks": 10,
"share_replicas": 100,
"replica_gigabytes": 1000
"replica_gigabytes": 1000,
"per_share_gigabytes": -1
}
}

View File

@ -27,6 +27,10 @@
"reserved": 0},
"replica_gigabytes": {"in_use": 0,
"limit": 1000,
"reserved": 0}
"reserved": 0},
"per_share_gigabytes": {"in_use": 0,
"limit": -1,
"reserved": 0}
}
}

View File

@ -9,6 +9,7 @@
"share_groups": 10,
"share_group_snapshots": 10,
"share_replicas": 100,
"replica_gigabytes": 1000
"replica_gigabytes": 1000,
"per_share_gigabytes": -1
}
}

View File

@ -3,6 +3,7 @@
"snapshot_gigabytes": 999,
"snapshots": 49,
"share_networks": 9,
"share_replicas": 89
"share_replicas": 89,
"per_share_gigabytes": 5
}
}

View File

@ -8,6 +8,7 @@
"share_groups": 12,
"share_group_snapshots": 12,
"share_replicas": 89,
"replica_gigabytes": 1000
"replica_gigabytes": 1000,
"per_share_gigabytes": -1
}
}

View File

@ -60,6 +60,8 @@ Manage a share
a ``replication_type`` extra spec while managing a share, manila quota
system will reserve and consume resources for two additional quotas:
``share_replicas`` and ``replica_gigabytes``.
From API version 2.62, manila quota system will validate size of the
share against ``per_share_gigabytes`` quota.
To register the non-managed share in the File System service, run the
:command:`manila manage` command:

View File

@ -110,6 +110,7 @@ you get the quotas for the specified project.
+-----------------------+-----------------------------------+
| id | d99c76b43b1743fd822d26ccc915989c |
| gigabytes | 1000 |
| per_share_gigabytes | -1 |
| snapshot_gigabytes | 1000 |
| snapshots | 50 |
| shares | 50 |
@ -132,6 +133,7 @@ the :command:`manila quota-defaults` command:
+-----------------------+------------------------------------+
| id | 1cc2154937bd40f4815d5f168d372263 |
| gigabytes | 1000 |
| per_share_gigabytes | -1 |
| snapshot_gigabytes | 1000 |
| snapshots | 50 |
| shares | 50 |
@ -152,6 +154,8 @@ arguments. It is possible to update the ``shares``, ``snapshots``,
Since API version 2.53, the administrator is also able to update quotas
for share replicas and replica gigabytes by specifying ``share_replicas``
and/or ``replica_gigabytes``.
Since API version 2.62, the administrator is also able to update quotas
for per share gigabytes by specifying ``per_share_gigabytes``
.. code-block:: console

View File

@ -74,6 +74,8 @@ The Shared File Systems service contains the following components:
- The number of gigabytes that can be provisioned for share replicas.
- The number of gigabytes that can be provisioned for each share.
You can revise the default quota values with the Shared File Systems
CLI, so the limits placed by quotas are editable by admin users.