Oversubscription in Thin Provisioning
We can adopt the similar mechanism introduced in Cinder:
https:/
Proposed new parameters:
provisioned_
max_over_
thin_provisioni
thick_provision
Existing parameter:
reserved_percentage (reserved_
Generic driver:
Currently reports 'infinite' for total_capacity_gb and free_capacity_gb.
Using Cinder quota API we can get some information:
$ cinder quota-usage 575976ef9ec5488
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 5 | 0 | 1000 |
| backups | 5 | 0 | 10 |
| gigabytes | 9 | 0 | 1000 |
| gigabytes_
| snapshots | 1 | 0 | 10 |
| snapshots_
| volumes | 8 | 0 | 10 |
| volumes_lvmdriver-1 | 8 | 0 | -1 |
+------
$ cinder quota-show 575976ef9ec5488
| Property | Value |
+------
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| gigabytes_
| snapshots | 10 |
| snapshots_
| volumes | 10 |
| volumes_lvmdriver-1 | -1 |
+------
Tenant running the command is "demo" and the id belongs to "demo". Will investigate more on how to report capacity for the generic driver.
get_pools is Admin API so we can't use it.
Link to summit discussion:
https:/
Blueprint information
- Status:
- Complete
- Approver:
- Ben Swartzlander
- Priority:
- Medium
- Drafter:
- Xing Yang
- Direction:
- Approved
- Assignee:
- Xing Yang
- Definition:
- Approved
- Series goal:
- Accepted for liberty
- Implementation:
- Implemented
- Milestone target:
- 1.0.0
- Started by
- Xing Yang
- Completed by
- Ben Swartzlander
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Support for oversubscription in thin provisioning