Bug 1041715

Summary: [RFE][cinder]: Allow per-driver utils configs specification
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/per-driver-config-for-utils-functions
Whiteboard: upstream_milestone_none upstream_status_unknown upstream_definition_obsolete
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 16:57:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 18:47:19 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/per-driver-config-for-utils-functions.

Description:

If we use multi-backend each of backend has its own configuration. In utils functions general configuration is currently used, not the backend one.
We should allow config option to be configurable on a per-driver basis. Drivers should pass config arguments from their own config to utils methods.
For example, we have two backends and these are parameters in the config:

[DEFAULT]
enabled_backends=lvm_big,lvm_small

[lvm_big]
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
volume_dd_size=100M

[lvm_small]
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
volume_dd_size=1M

So, we have two volume groups, one of them can be cleaned  more effectively using 100M fragments and the second one can be cleaned  more effectively using 1M fragments. After implemenation of this blueprint we will be able to set this parameter for each backend separately and let drivers work more effective.

Specification URL (additional information):

None