]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add provisioned_capacity
authorXing Yang <xing.yang@emc.com>
Fri, 16 Jan 2015 17:45:53 +0000 (12:45 -0500)
committerXing Yang <xing.yang@emc.com>
Mon, 26 Jan 2015 05:05:49 +0000 (00:05 -0500)
commit29cc21b3b98aeaafa20cddea1098b575ebc90d49
tree42dbae40f673885728b0c62b675026c1276c873f
parent5f17a953ea2a2ea59da44ea87f038ac9b33150f2
Add provisioned_capacity

This change is needed by the over subscription patch:
https://review.openstack.org/#/c/142171/

This patch makes the following change:
Add 'provisioned_capacity' to Cinder base driver, Cinder reference
driver (LVM), and scheduler host_manager.

provisioned_capacity is the apparent allocated space indicating how
much capacity has been provisioned.

Example: User A created 2x10G volumes in Cinder from backend A, and
user B created 3x10G volumes from backend A directly, without using
Cinder. Assume those are all the volumes provisioned on backend A.
The total provisioned_capacity will be 50G and that is what the driver
should be reporting.

Change-Id: I26035a8b591309a922efa517e50c68eb57ef6d2d
Partial-Implements: blueprint over-subscription-in-thin-provisioning
cinder/brick/local_dev/lvm.py
cinder/scheduler/host_manager.py
cinder/tests/brick/test_brick_lvm.py
cinder/tests/scheduler/test_host_manager.py
cinder/tests/test_volume.py
cinder/volume/driver.py
cinder/volume/drivers/lvm.py