explicitly set volumes_dir in cinder.conf
Fixes: bug #1269475 Implements: blueprint centos-rhel-for-block On rhel systems, /usr/share/cinder/cinder-dist.conf sets: volumes_dir=/etc/cinder/volumes In order set this back to the default cleanly, we need to explicitly set it in cinder.conf which will take precedence over the setting in cinder-dist.conf Change-Id: Id71efd10b0cbd27b72dfe8ec72c51cde70593b3e
This commit is contained in:
@@ -165,6 +165,7 @@ default['openstack']['block-storage']['cron']['minute'] = '00'
|
|||||||
default['openstack']['block-storage']['cron']['audit_logfile'] = '/var/log/cinder/audit.log'
|
default['openstack']['block-storage']['cron']['audit_logfile'] = '/var/log/cinder/audit.log'
|
||||||
|
|
||||||
default['openstack']['block-storage']['volume']['state_path'] = '/var/lib/cinder'
|
default['openstack']['block-storage']['volume']['state_path'] = '/var/lib/cinder'
|
||||||
|
default['openstack']['block-storage']['volume']['volumes_dir'] = '/var/lib/cinder/volumes'
|
||||||
default['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.lvm.LVMISCSIDriver'
|
default['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.lvm.LVMISCSIDriver'
|
||||||
default['openstack']['block-storage']['volume']['volume_group'] = 'cinder-volumes'
|
default['openstack']['block-storage']['volume']['volume_group'] = 'cinder-volumes'
|
||||||
default['openstack']['block-storage']['volume']['volume_group_size'] = 40
|
default['openstack']['block-storage']['volume']['volume_group_size'] = 40
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ describe "openstack-block-storage::cinder-common" do
|
|||||||
expect(@chef_run).to render_file(@file.name).with_content("rpc_backend=cinder.openstack.common.rpc.impl_kombu")
|
expect(@chef_run).to render_file(@file.name).with_content("rpc_backend=cinder.openstack.common.rpc.impl_kombu")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "has has volumes_dir set" do
|
||||||
|
expect(@chef_run).to render_file(@file.name).with_content("volumes_dir=/var/lib/cinder/volumes")
|
||||||
|
end
|
||||||
|
|
||||||
it "has correct volume.driver set" do
|
it "has correct volume.driver set" do
|
||||||
expect(@chef_run).to render_file(@file.name).with_content("volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver")
|
expect(@chef_run).to render_file(@file.name).with_content("volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ rbd_secret_uuid=<%= node["openstack"]["block-storage"]["rbd_secret_uuid"] %>
|
|||||||
iscsi_helper=<%= node["openstack"]["block-storage"]["volume"]["iscsi_helper"] %>
|
iscsi_helper=<%= node["openstack"]["block-storage"]["volume"]["iscsi_helper"] %>
|
||||||
#### (StrOpt) iscsi target user-land tool to use
|
#### (StrOpt) iscsi target user-land tool to use
|
||||||
|
|
||||||
# volumes_dir=$state_path/volumes
|
volumes_dir=<%= node['openstack']['block-storage']['volume']['volumes_dir'] %>
|
||||||
#### (StrOpt) Volume configuration file storage directory
|
#### (StrOpt) Volume configuration file storage directory
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<%= node["openstack"]["block-storage"]["custom_template_banner"] %>
|
<%= node["openstack"]["block-storage"]["custom_template_banner"] %>
|
||||||
|
|
||||||
<% if %w{redhat centos fedora suse}.include?(node["platform"]) %>
|
<% if %w{redhat centos fedora suse}.include?(node["platform"]) %>
|
||||||
include /var/lib/cinder/volumes/*
|
include <%= node['openstack']['block-storage']['volume']['volumes_dir'] %>/*
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if %w{debian ubuntu}.include?(node["platform"]) %>
|
<% if %w{debian ubuntu}.include?(node["platform"]) %>
|
||||||
include /etc/tgt/conf.d/*.conf
|
include /etc/tgt/conf.d/*.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user