Browse Source

Add parameters for multipath connection in cinder store

Adding following 2 parameters for cinder store when multipath usage is enabled in volume connection,
 
 - cinder_enforce_multipath
 - cinder_use_multipath

Depends-On: I17af43fe8cdf437c90453d316b66c3ea9d4f2745
Change-Id: Ic2c86e6a890b58ca7703ea3a3147c8d4ecf13953
(cherry picked from commit 9466c801bc)
(cherry picked from commit 4dca24b628)
(cherry picked from commit 048e9ab1c3)
changes/54/781954/1
PranaliD 3 months ago
committed by Pranali Deore
parent
commit
0108687c43
2 changed files with 16 additions and 0 deletions
  1. +12
    -0
      manifests/profile/base/glance/backend/cinder.pp
  2. +4
    -0
      spec/classes/tripleo_profile_base_glance_backend_cinder_spec.rb

+ 12
- 0
manifests/profile/base/glance/backend/cinder.pp View File

@ -61,6 +61,14 @@
# (Optional) A valid password for the user specified by `cinder_store_user_name'
# Defaults to hiera('glance::backend::cinder::cinder_store_password', undef)
#
# [*cinder_enforce_multipath*]
# (Optional) Set to True when multipathd is enabled
# Defaults to hiera('glance::backend::cinder::cinder_enforce_multipath', undef)
#
# [*cinder_use_multipath*]
# (Optional) Set to True when multipathd is enabled
# Defaults to hiera('glance::backend::cinder::cinder_use_multipath', undef)
#
# [*store_description*]
# (Optional) Provides constructive information about the store backend to
# end users.
@ -83,6 +91,8 @@ class tripleo::profile::base::glance::backend::cinder (
$cinder_store_project_name = hiera('glance::backend::cinder::cinder_store_project_name', undef),
$cinder_store_user_name = hiera('glance::backend::cinder::cinder_store_user_name', undef),
$cinder_store_password = hiera('glance::backend::cinder::cinder_store_password', undef),
$cinder_enforce_multipath = hiera('glance::backend::cinder::cinder_enforce_multipath', undef),
$cinder_use_multipath = hiera('glance::backend::cinder::cinder_use_multipath', undef),
$store_description = hiera('tripleo::profile::base::glance::api::glance_store_description', 'Cinder store'),
$step = Integer(hiera('step')),
) {
@ -107,6 +117,8 @@ class tripleo::profile::base::glance::backend::cinder (
cinder_store_project_name => $cinder_store_project_name,
cinder_store_user_name => $cinder_store_user_name,
cinder_store_password => $cinder_store_password,
cinder_enforce_multipath => $cinder_enforce_multipath,
cinder_use_multipath => $cinder_use_multipath,
store_description => $store_description_real,
}
}


+ 4
- 0
spec/classes/tripleo_profile_base_glance_backend_cinder_spec.rb View File

@ -47,6 +47,8 @@ describe 'tripleo::profile::base::glance::backend::cinder' do
:cinder_store_project_name => 'services',
:cinder_store_user_name => 'glance',
:cinder_store_password => 'glance_password',
:cinder_enforce_multipath => true,
:cinder_use_multipath => true,
:step => 4,
} }
@ -61,6 +63,8 @@ describe 'tripleo::profile::base::glance::backend::cinder' do
:cinder_store_project_name => 'services',
:cinder_store_user_name => 'glance',
:cinder_store_password => 'glance_password',
:cinder_enforce_multipath => true,
:cinder_use_multipath => true,
:store_description => 'Cinder store',
)
end


Loading…
Cancel
Save