Merge pull request #266 from enovance/bug/265/leseb
cinder: fix create a volume from an image
This commit is contained in:
@@ -21,6 +21,7 @@ class cloud::volume::controller(
|
|||||||
$ks_cinder_password = $os_params::ks_cinder_password,
|
$ks_cinder_password = $os_params::ks_cinder_password,
|
||||||
$ks_keystone_internal_host = $os_params::ks_keystone_internal_host,
|
$ks_keystone_internal_host = $os_params::ks_keystone_internal_host,
|
||||||
$ks_glance_internal_host = $os_params::ks_glance_internal_host,
|
$ks_glance_internal_host = $os_params::ks_glance_internal_host,
|
||||||
|
$ks_glance_api_internal_port = $os_params::ks_glance_api_internal_port,
|
||||||
$api_eth = $os_params::api_eth,
|
$api_eth = $os_params::api_eth,
|
||||||
# TODO(EmilienM) Disabled for now: http://git.io/kfTmcA
|
# TODO(EmilienM) Disabled for now: http://git.io/kfTmcA
|
||||||
# $backup_ceph_pool = $os_params::cinder_rbd_backup_pool,
|
# $backup_ceph_pool = $os_params::cinder_rbd_backup_pool,
|
||||||
@@ -52,7 +53,7 @@ class cloud::volume::controller(
|
|||||||
# }
|
# }
|
||||||
# Replaced by:
|
# Replaced by:
|
||||||
cinder_config {
|
cinder_config {
|
||||||
'DEFAULT/glance_api_servers': value => $ks_glance_internal_host;
|
'DEFAULT/glance_api_servers': value => "${ks_glance_internal_host}:${ks_glance_api_internal_port}";
|
||||||
'DEFAULT/glance_request_timeout': value => '10';
|
'DEFAULT/glance_request_timeout': value => '10';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ describe 'cloud::volume::controller' do
|
|||||||
:ks_cinder_internal_port => '8776',
|
:ks_cinder_internal_port => '8776',
|
||||||
:ks_keystone_internal_host => '10.0.0.1',
|
:ks_keystone_internal_host => '10.0.0.1',
|
||||||
:ks_glance_internal_host => '10.0.0.1',
|
:ks_glance_internal_host => '10.0.0.1',
|
||||||
|
:ks_glance_api_internal_port => '9292',
|
||||||
# TODO(EmilienM) Disabled for now: http://git.io/kfTmcA
|
# TODO(EmilienM) Disabled for now: http://git.io/kfTmcA
|
||||||
#:backup_ceph_user => 'cinder',
|
#:backup_ceph_user => 'cinder',
|
||||||
#:backup_ceph_pool => 'ceph_backup_cinder',
|
#:backup_ceph_pool => 'ceph_backup_cinder',
|
||||||
@@ -82,7 +83,7 @@ describe 'cloud::volume::controller' do
|
|||||||
# end
|
# end
|
||||||
# Replaced by:
|
# Replaced by:
|
||||||
it 'configure cinder glance backend' do
|
it 'configure cinder glance backend' do
|
||||||
should contain_cinder_config('DEFAULT/glance_api_servers').with('value' => '10.0.0.1')
|
should contain_cinder_config('DEFAULT/glance_api_servers').with('value' => '10.0.0.1:9292')
|
||||||
should contain_cinder_config('DEFAULT/glance_request_timeout').with('value' => '10')
|
should contain_cinder_config('DEFAULT/glance_request_timeout').with('value' => '10')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user