Add default_volume_type to cinder.conf file
This patch adds option default_volume_type to cinder.conf file depending on the cinder backend implemented. This is a recommended configuration and workarounds bug https://bugs.launchpad.net/cinder/+bug/1610073. Change-Id: I032e19e45130819a23e88268fdaead067f1ac5bf
This commit is contained in:
parent
ee9a605224
commit
434269a0e8
@ -3,6 +3,16 @@ class packstack::cinder ()
|
|||||||
create_resources(packstack::firewall, hiera('FIREWALL_CINDER_RULES', {}))
|
create_resources(packstack::firewall, hiera('FIREWALL_CINDER_RULES', {}))
|
||||||
create_resources(packstack::firewall, hiera('FIREWALL_CINDER_API_RULES', {}))
|
create_resources(packstack::firewall, hiera('FIREWALL_CINDER_API_RULES', {}))
|
||||||
|
|
||||||
|
case hiera('CONFIG_CINDER_BACKEND') {
|
||||||
|
'lvm': { $default_volume_type = 'iscsi' }
|
||||||
|
'gluster': { $default_volume_type = 'glusterfs' }
|
||||||
|
'nfs': { $default_volume_type = 'nfs' }
|
||||||
|
'vmdk': { $default_volume_type = 'vmdk' }
|
||||||
|
'netapp': { $default_volume_type = 'netapp' }
|
||||||
|
'solidfire': { $default_volume_type = 'solidfire' }
|
||||||
|
default: { $default_volume_type = 'iscsi' }
|
||||||
|
}
|
||||||
|
|
||||||
cinder_config {
|
cinder_config {
|
||||||
'DEFAULT/glance_host': value => hiera('CONFIG_STORAGE_HOST_URL');
|
'DEFAULT/glance_host': value => hiera('CONFIG_STORAGE_HOST_URL');
|
||||||
}
|
}
|
||||||
@ -25,6 +35,7 @@ class packstack::cinder ()
|
|||||||
nova_catalog_info => 'compute:nova:publicURL',
|
nova_catalog_info => 'compute:nova:publicURL',
|
||||||
nova_catalog_admin_info => 'compute:nova:adminURL',
|
nova_catalog_admin_info => 'compute:nova:adminURL',
|
||||||
service_workers => hiera('CONFIG_SERVICE_WORKERS'),
|
service_workers => hiera('CONFIG_SERVICE_WORKERS'),
|
||||||
|
default_volume_type => $default_volume_type,
|
||||||
}
|
}
|
||||||
|
|
||||||
class { '::cinder::scheduler': }
|
class { '::cinder::scheduler': }
|
||||||
|
Loading…
Reference in New Issue
Block a user