]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Set LVM driver default overprovisioning ratio to 1.0
authorEric Harney <eharney@redhat.com>
Wed, 13 Jan 2016 15:29:50 +0000 (10:29 -0500)
committerEric Harney <eharney@redhat.com>
Tue, 19 Jan 2016 16:15:33 +0000 (16:15 +0000)
commit82dae55232e67f6a593f67f74e642899abc6a2f6
treebb63cd756e08a1703036586318b672aafc855746
parent231b4a4826e5f0d7012cff96e23deec879aa75dc
Set LVM driver default overprovisioning ratio to 1.0

This introduces a config option, 'lvm_max_over_subscription_ratio',
which allows overriding the global max_over_subscription_ratio.

This is needed because the way we handle configuration with
multi-backend does not allow setting a value which will be applied
to each LVM backend without manually setting it in each backend,
and it would be better to default to a safe overprovisioning
ratio for the LVM driver.  It is often used in smaller deployments
and POCs which may not have all of the capacity monitoring
infrastructure used with other drivers, so overprovisioning should
be an opt-in capability rather than opt-out.

Partial-Bug: #1472803
DocImpact: new config option lvm_max_over_subscription_ratio

Change-Id: I5a214462b573d00d26086512821b4f8cc1db4fc3
cinder/tests/unit/test_volume.py
cinder/volume/drivers/lvm.py