Merge "Add documentation for per share gigabytes quotas"
This commit is contained in:
commit
e01d327d36
@ -1662,6 +1662,20 @@ os-share-type-access:is_public:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
max_version: 2.6
|
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:
|
pool:
|
||||||
description: |
|
description: |
|
||||||
The pool name for the back end.
|
The pool name for the back end.
|
||||||
@ -1799,6 +1813,28 @@ quota_gigabytes_request:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: integer
|
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:
|
quota_project_id:
|
||||||
description: |
|
description: |
|
||||||
The ID of the project the quota pertains to.
|
The ID of the project the quota pertains to.
|
||||||
|
@ -9,6 +9,8 @@ Quota classes can be shown and updated for a project.
|
|||||||
.. important::
|
.. important::
|
||||||
Share replicas and replica gigabytes were added to quota management
|
Share replicas and replica gigabytes were added to quota management
|
||||||
APIs in API version 2.53.
|
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
|
Show quota classes for a project
|
||||||
@ -56,6 +58,7 @@ Response Parameters
|
|||||||
- share_networks: maxTotalShareNetworks
|
- share_networks: maxTotalShareNetworks
|
||||||
- share_replicas: maxTotalShareReplicas
|
- share_replicas: maxTotalShareReplicas
|
||||||
- replica_gigabytes: maxTotalReplicaGigabytes
|
- replica_gigabytes: maxTotalReplicaGigabytes
|
||||||
|
- per_share_gigabytes: perShareGigabytes
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
@ -99,6 +102,7 @@ Request
|
|||||||
- share-networks: maxTotalShareNetworksOptional
|
- share-networks: maxTotalShareNetworksOptional
|
||||||
- share-replicas: maxTotalShareReplicasOptional
|
- share-replicas: maxTotalShareReplicasOptional
|
||||||
- replica-gigabytes: maxTotalReplicaGigabytesOptional
|
- replica-gigabytes: maxTotalReplicaGigabytesOptional
|
||||||
|
- per-share-gigabytes: perShareGigabytesOptional
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
@ -122,6 +126,7 @@ Response Parameters
|
|||||||
- share_networks: maxTotalShareNetworks
|
- share_networks: maxTotalShareNetworks
|
||||||
- share_replicas: maxTotalShareReplicas
|
- share_replicas: maxTotalShareReplicas
|
||||||
- replica_gigabytes: maxTotalReplicaGigabytes
|
- replica_gigabytes: maxTotalReplicaGigabytes
|
||||||
|
- per_share_gigabytes: perShareGigabytes
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
@ -22,6 +22,7 @@ Provides quotas management support.
|
|||||||
- ``share_group_snapshots`` (since API version 2.40)
|
- ``share_group_snapshots`` (since API version 2.40)
|
||||||
- ``share_replicas`` (since API version 2.53)
|
- ``share_replicas`` (since API version 2.53)
|
||||||
- ``replica_gigabytes`` (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
|
Share groups and share group snapshots were added to quota management
|
||||||
APIs in API version 2.40.
|
APIs in API version 2.40.
|
||||||
@ -29,6 +30,9 @@ Provides quotas management support.
|
|||||||
Share replicas and replica gigabytes were added to quota management
|
Share replicas and replica gigabytes were added to quota management
|
||||||
APIs in API version 2.53.
|
APIs in API version 2.53.
|
||||||
|
|
||||||
|
Per share gigabytes was added to quota management APIs in API
|
||||||
|
version 2.62.
|
||||||
|
|
||||||
|
|
||||||
Show default quota set
|
Show default quota set
|
||||||
======================
|
======================
|
||||||
@ -75,6 +79,7 @@ Response parameters
|
|||||||
- share_networks: quota_share_networks_default
|
- share_networks: quota_share_networks_default
|
||||||
- share_replicas: quota_share_replicas
|
- share_replicas: quota_share_replicas
|
||||||
- replica_gigabytes: quota_replica_gigabytes
|
- replica_gigabytes: quota_replica_gigabytes
|
||||||
|
- per_share_gigabytes: quota_per_share_gigabytes
|
||||||
|
|
||||||
Response example
|
Response example
|
||||||
----------------
|
----------------
|
||||||
@ -133,6 +138,7 @@ Response parameters
|
|||||||
- share_group_snapshots: quota_share_group_snapshots
|
- share_group_snapshots: quota_share_group_snapshots
|
||||||
- share_replicas: quota_share_replicas
|
- share_replicas: quota_share_replicas
|
||||||
- replica_gigabytes: quota_replica_gigabytes
|
- replica_gigabytes: quota_replica_gigabytes
|
||||||
|
- per_share_gigabytes: quota_per_share_gigabytes
|
||||||
|
|
||||||
Response example
|
Response example
|
||||||
----------------
|
----------------
|
||||||
@ -193,6 +199,7 @@ Response parameters
|
|||||||
- share_group_snapshots: quota_share_group_snapshots_detail
|
- share_group_snapshots: quota_share_group_snapshots_detail
|
||||||
- share_replicas: quota_share_replicas_detail
|
- share_replicas: quota_share_replicas_detail
|
||||||
- replica_gigabytes: quota_replica_gigabytes_detail
|
- replica_gigabytes: quota_replica_gigabytes_detail
|
||||||
|
- per_share_gigabytes: quota_per_share_gigabytes_detail
|
||||||
|
|
||||||
Response example
|
Response example
|
||||||
----------------
|
----------------
|
||||||
@ -245,6 +252,7 @@ Request
|
|||||||
- share_type: share_type_for_quota
|
- share_type: share_type_for_quota
|
||||||
- share_replicas: quota_share_replicas_request
|
- share_replicas: quota_share_replicas_request
|
||||||
- replica_gigabytes: quota_replica_gigabytes_request
|
- replica_gigabytes: quota_replica_gigabytes_request
|
||||||
|
- per_share_gigabytes: quota_per_share_gigabytes_request
|
||||||
|
|
||||||
Request example
|
Request example
|
||||||
---------------
|
---------------
|
||||||
@ -268,6 +276,7 @@ Response parameters
|
|||||||
- share_group_snapshots: quota_share_group_snapshots
|
- share_group_snapshots: quota_share_group_snapshots
|
||||||
- share_replicas: quota_share_replicas
|
- share_replicas: quota_share_replicas
|
||||||
- replica_gigabytes: quota_replica_gigabytes
|
- replica_gigabytes: quota_replica_gigabytes
|
||||||
|
- per_share_gigabytes: quota_per_share_gigabytes
|
||||||
|
|
||||||
Response example
|
Response example
|
||||||
----------------
|
----------------
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"id": "default",
|
"id": "default",
|
||||||
"share_networks": 10,
|
"share_networks": 10,
|
||||||
"share_replicas": 100,
|
"share_replicas": 100,
|
||||||
"replica_gigabytes": 1000
|
"replica_gigabytes": 1000,
|
||||||
|
"per_share_gigabytes": -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
"shares": 50,
|
"shares": 50,
|
||||||
"share_networks": 10,
|
"share_networks": 10,
|
||||||
"share_replicas": 100,
|
"share_replicas": 100,
|
||||||
"replica_gigabytes": 1000
|
"replica_gigabytes": 1000,
|
||||||
|
"per_share_gigabytes": -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
"reserved": 0},
|
"reserved": 0},
|
||||||
"replica_gigabytes": {"in_use": 0,
|
"replica_gigabytes": {"in_use": 0,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
"reserved": 0}
|
"reserved": 0},
|
||||||
|
"per_share_gigabytes": {"in_use": 0,
|
||||||
|
"limit": -1,
|
||||||
|
"reserved": 0}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"share_groups": 10,
|
"share_groups": 10,
|
||||||
"share_group_snapshots": 10,
|
"share_group_snapshots": 10,
|
||||||
"share_replicas": 100,
|
"share_replicas": 100,
|
||||||
"replica_gigabytes": 1000
|
"replica_gigabytes": 1000,
|
||||||
|
"per_share_gigabytes": -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"snapshot_gigabytes": 999,
|
"snapshot_gigabytes": 999,
|
||||||
"snapshots": 49,
|
"snapshots": 49,
|
||||||
"share_networks": 9,
|
"share_networks": 9,
|
||||||
"share_replicas": 89
|
"share_replicas": 89,
|
||||||
|
"per_share_gigabytes": 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
"share_groups": 12,
|
"share_groups": 12,
|
||||||
"share_group_snapshots": 12,
|
"share_group_snapshots": 12,
|
||||||
"share_replicas": 89,
|
"share_replicas": 89,
|
||||||
"replica_gigabytes": 1000
|
"replica_gigabytes": 1000,
|
||||||
|
"per_share_gigabytes": -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,8 @@ Manage a share
|
|||||||
a ``replication_type`` extra spec while managing a share, manila quota
|
a ``replication_type`` extra spec while managing a share, manila quota
|
||||||
system will reserve and consume resources for two additional quotas:
|
system will reserve and consume resources for two additional quotas:
|
||||||
``share_replicas`` and ``replica_gigabytes``.
|
``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
|
To register the non-managed share in the File System service, run the
|
||||||
:command:`manila manage` command:
|
:command:`manila manage` command:
|
||||||
|
@ -110,6 +110,7 @@ you get the quotas for the specified project.
|
|||||||
+-----------------------+-----------------------------------+
|
+-----------------------+-----------------------------------+
|
||||||
| id | d99c76b43b1743fd822d26ccc915989c |
|
| id | d99c76b43b1743fd822d26ccc915989c |
|
||||||
| gigabytes | 1000 |
|
| gigabytes | 1000 |
|
||||||
|
| per_share_gigabytes | -1 |
|
||||||
| snapshot_gigabytes | 1000 |
|
| snapshot_gigabytes | 1000 |
|
||||||
| snapshots | 50 |
|
| snapshots | 50 |
|
||||||
| shares | 50 |
|
| shares | 50 |
|
||||||
@ -132,6 +133,7 @@ the :command:`manila quota-defaults` command:
|
|||||||
+-----------------------+------------------------------------+
|
+-----------------------+------------------------------------+
|
||||||
| id | 1cc2154937bd40f4815d5f168d372263 |
|
| id | 1cc2154937bd40f4815d5f168d372263 |
|
||||||
| gigabytes | 1000 |
|
| gigabytes | 1000 |
|
||||||
|
| per_share_gigabytes | -1 |
|
||||||
| snapshot_gigabytes | 1000 |
|
| snapshot_gigabytes | 1000 |
|
||||||
| snapshots | 50 |
|
| snapshots | 50 |
|
||||||
| shares | 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
|
Since API version 2.53, the administrator is also able to update quotas
|
||||||
for share replicas and replica gigabytes by specifying ``share_replicas``
|
for share replicas and replica gigabytes by specifying ``share_replicas``
|
||||||
and/or ``replica_gigabytes``.
|
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
|
.. code-block:: console
|
||||||
|
|
||||||
|
@ -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 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
|
You can revise the default quota values with the Shared File Systems
|
||||||
CLI, so the limits placed by quotas are editable by admin users.
|
CLI, so the limits placed by quotas are editable by admin users.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user