Add ability to configure backend availability zones
Add new "backend_availability_zone" parameter to every share
backend. The parameters are optional, and when set they override the
DEFAULT/storage_availability_zone for the corresponding backend.
(to wallaby)
Conflicts:
manifests/backend/dellemc_isilon.pp
manifests/backend/dellemc_vmax.pp
manifests/backend/dellemc_vnx.pp
manifests/backend/flashblade.pp
manifests/backend/lvm.pp
spec/defines/manila_backend_dellemc_isilon_spec.rb
spec/defines/manila_backend_dellemc_vmax_spec.rb
spec/defines/manila_backend_dellemc_vnx_spec.rb
spec/defines/manila_backend_flashblade_spec.rb
spec/defines/manila_backend_lvm_spec.rb
Resolved conflicts mainly caused by the following three changes during
Xena cycle.
- support for flashBlade driver
727562e557
- support for lvm driver
2995df77ad
- deprecation of driver_handles_share_servers
4c365c9064
Change-Id: Ie7af8408fe8cec9349593fd9b4cb5bc7deb565cd
(cherry picked from commit a0610b687e)
This commit is contained in:
committed by
Takashi Kajinami
parent
8c9c2ab305
commit
6d311078f7
@@ -13,6 +13,12 @@
|
||||
# these settings will reside in
|
||||
# Defaults to: $name
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*cephfs_conf_path*]
|
||||
# (optional) Path to cephfs config.
|
||||
# Defaults to: $state_path/ceph.conf
|
||||
@@ -71,6 +77,7 @@
|
||||
define manila::backend::cephfs (
|
||||
$driver_handles_share_servers = false,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$cephfs_conf_path = '$state_path/ceph.conf',
|
||||
$cephfs_auth_id = 'manila',
|
||||
$cephfs_cluster_name = 'ceph',
|
||||
@@ -93,6 +100,7 @@ define manila::backend::cephfs (
|
||||
manila_config {
|
||||
"${name}/driver_handles_share_servers": value => $driver_handles_share_servers;
|
||||
"${name}/share_backend_name": value => $share_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/share_driver": value => $share_driver;
|
||||
"${name}/cephfs_conf_path": value => $cephfs_conf_path;
|
||||
"${name}/cephfs_auth_id": value => $cephfs_auth_id;
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*emc_nas_root_dir*]
|
||||
# (optional) The root directory where shares will be located.
|
||||
# Defaults to None
|
||||
@@ -61,6 +67,7 @@ define manila::backend::dellemc_isilon (
|
||||
$emc_nas_server,
|
||||
$emc_share_backend,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$emc_nas_root_dir = undef,
|
||||
$emc_nas_server_port = 8080,
|
||||
$emc_nas_server_secure = true,
|
||||
@@ -81,6 +88,7 @@ define manila::backend::dellemc_isilon (
|
||||
"${share_backend_name}/emc_nas_password": value => $emc_nas_password, secret => true;
|
||||
"${share_backend_name}/emc_nas_server": value => $emc_nas_server;
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/emc_share_backend": value => $emc_share_backend;
|
||||
"${share_backend_name}/emc_nas_root_dir": value => $emc_nas_root_dir;
|
||||
"${share_backend_name}/emc_nas_server_port": value => $emc_nas_server_port;
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*unity_server_meta_pool*]
|
||||
# (optional) The name of the pool to persist the meta-data of NAS server.
|
||||
# Defaults to None
|
||||
@@ -83,6 +89,7 @@ define manila::backend::dellemc_unity (
|
||||
$emc_nas_server,
|
||||
$emc_share_backend,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$unity_server_meta_pool = undef,
|
||||
$unity_share_data_pools = undef,
|
||||
$unity_ethernet_ports = undef,
|
||||
@@ -106,6 +113,7 @@ define manila::backend::dellemc_unity (
|
||||
"${share_backend_name}/emc_nas_password": value => $emc_nas_password, secret => true;
|
||||
"${share_backend_name}/emc_nas_server": value => $emc_nas_server;
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/emc_share_backend": value => $emc_share_backend;
|
||||
"${share_backend_name}/unity_server_meta_pool": value => $unity_server_meta_pool;
|
||||
"${share_backend_name}/unity_share_data_pools": value => $unity_share_data_pools;
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*vmax_server_container*]
|
||||
# (optional) Name of the Data Mover to serve the share service.
|
||||
# Defaults to None
|
||||
@@ -64,11 +70,12 @@ define manila::backend::dellemc_vmax (
|
||||
$emc_nas_password,
|
||||
$emc_nas_server,
|
||||
$emc_share_backend,
|
||||
$share_backend_name = $name,
|
||||
$vmax_server_container = undef,
|
||||
$vmax_share_data_pools = undef ,
|
||||
$vmax_ethernet_ports = undef,
|
||||
$package_ensure = 'present',
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$vmax_server_container = undef,
|
||||
$vmax_share_data_pools = undef ,
|
||||
$vmax_ethernet_ports = undef,
|
||||
$package_ensure = 'present',
|
||||
) {
|
||||
|
||||
include manila::deps
|
||||
@@ -84,6 +91,7 @@ define manila::backend::dellemc_vmax (
|
||||
"${share_backend_name}/emc_nas_password": value => $emc_nas_password, secret => true;
|
||||
"${share_backend_name}/emc_nas_server": value => $emc_nas_server;
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/emc_share_backend": value => $emc_share_backend;
|
||||
"${share_backend_name}/vmax_server_container": value => $vmax_server_container;
|
||||
"${share_backend_name}/vmax_share_data_pools": value => $vmax_share_data_pools;
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*vnx_server_container*]
|
||||
# (optional) Name of the Data Mover to serve the share service.
|
||||
# Defaults to None
|
||||
@@ -82,6 +88,7 @@ define manila::backend::dellemc_vnx (
|
||||
$emc_nas_server,
|
||||
$emc_share_backend,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$vnx_server_container = undef,
|
||||
$vnx_share_data_pools = undef ,
|
||||
$vnx_ethernet_ports = undef,
|
||||
@@ -105,6 +112,7 @@ define manila::backend::dellemc_vnx (
|
||||
"${share_backend_name}/emc_nas_password": value => $emc_nas_password, secret => true;
|
||||
"${share_backend_name}/emc_nas_server": value => $emc_nas_server;
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/emc_share_backend": value => $emc_share_backend;
|
||||
"${share_backend_name}/vnx_server_container": value => $vnx_server_container;
|
||||
"${share_backend_name}/vnx_share_data_pools": value => $vnx_share_data_pools;
|
||||
|
||||
@@ -11,6 +11,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*smb_template_config_path*]
|
||||
# (optional) Path to smb config.
|
||||
# Defaults to: $state_path/smb.conf
|
||||
@@ -72,6 +78,7 @@
|
||||
define manila::backend::generic (
|
||||
$driver_handles_share_servers,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$smb_template_config_path = '$state_path/smb.conf',
|
||||
$volume_name_template = 'manila-share-%s',
|
||||
$volume_snapshot_name_template = 'manila-snapshot-%s',
|
||||
@@ -95,6 +102,7 @@ define manila::backend::generic (
|
||||
manila_config {
|
||||
"${name}/driver_handles_share_servers": value => $driver_handles_share_servers;
|
||||
"${name}/share_backend_name": value => $share_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/share_driver": value => $share_driver;
|
||||
"${name}/smb_template_config_path": value => $smb_template_config_path;
|
||||
"${name}/volume_name_template": value => $volume_name_template;
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*glusterfs_volumes_config*]
|
||||
# (required) File with the list of Gluster volumes that can be used to
|
||||
# create shares
|
||||
@@ -24,6 +30,7 @@
|
||||
#
|
||||
define manila::backend::glusterfs (
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$glusterfs_volumes_config = '/etc/manila/glusterfs_volumes',
|
||||
$glusterfs_mount_point_base = '$state_path/mnt',
|
||||
) {
|
||||
@@ -33,6 +40,7 @@ define manila::backend::glusterfs (
|
||||
|
||||
manila_config {
|
||||
"${name}/share_backend_name": value => $share_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/share_driver": value => $share_driver;
|
||||
"${name}/glusterfs_volumes_config": value => $glusterfs_volumes_config;
|
||||
"${name}/glusterfs_mount_point_base": value => $glusterfs_mount_point_base;
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*glusterfs_servers*]
|
||||
# (required) List of GlusterFS servers that can be used to create shares.
|
||||
# Each GlusterFS server should be of the form [remoteuser@]<volserver>, and
|
||||
@@ -34,6 +40,7 @@ define manila::backend::glusternative (
|
||||
$glusterfs_servers,
|
||||
$glusterfs_volume_pattern,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$package_ensure = 'present',
|
||||
$glusterfs_path_to_private_key = undef,
|
||||
# DEPRECATED PARAMETERS
|
||||
@@ -53,6 +60,7 @@ define manila::backend::glusternative (
|
||||
|
||||
manila_config {
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/share_driver": value => $share_driver;
|
||||
"${share_backend_name}/glusterfs_servers": value => $glusterfs_servers;
|
||||
"${share_backend_name}/glusterfs_path_to_private_key": value => $glusterfs_path_to_private_key_real;
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
# [*share_backend_name*]
|
||||
# (optional) Backend name in manila.conf where these settings will reside in.
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*package_ensure*]
|
||||
# (optional) Ensure state for package. Defaults to 'present'.
|
||||
#
|
||||
@@ -38,8 +44,9 @@ define manila::backend::glusternfs (
|
||||
$glusterfs_nfs_server_type,
|
||||
$glusterfs_path_to_private_key,
|
||||
$glusterfs_ganesha_server_ip,
|
||||
$share_backend_name = $name,
|
||||
$package_ensure = 'present',
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$package_ensure = 'present',
|
||||
) {
|
||||
|
||||
include manila::deps
|
||||
@@ -49,6 +56,7 @@ define manila::backend::glusternfs (
|
||||
|
||||
manila_config {
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/share_driver": value => $share_driver;
|
||||
"${share_backend_name}/glusterfs_target": value => $glusterfs_target;
|
||||
"${share_backend_name}/glusterfs_mount_point_base": value => $glusterfs_mount_point_base;
|
||||
|
||||
@@ -34,6 +34,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*package_ensure*]
|
||||
# (optional) Ensure state for package. Defaults to 'present'.
|
||||
#
|
||||
@@ -58,6 +64,7 @@ define manila::backend::hitachi_hnas (
|
||||
$hitachi_hnas_file_system_name,
|
||||
$driver_handles_share_servers = false,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$package_ensure = 'present',
|
||||
) {
|
||||
|
||||
@@ -71,6 +78,7 @@ define manila::backend::hitachi_hnas (
|
||||
manila_config {
|
||||
"${share_backend_name}/share_driver": value => $hitachi_share_driver;
|
||||
"${share_backend_name}/driver_handles_share_servers": value => $driver_handles_share_servers;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/hitachi_hnas_username": value => $hitachi_hnas_username;
|
||||
"${share_backend_name}/hitachi_hnas_password": value => $hitachi_hnas_password, secret => true;
|
||||
"${share_backend_name}/hitachi_hnas_ip": value => $hitachi_hnas_ip;
|
||||
|
||||
@@ -25,6 +25,12 @@
|
||||
# (optional) Name of the backend in manila.conf that
|
||||
# these settings will reside in
|
||||
#
|
||||
# [*backend_availability_zone*]
|
||||
# (Optional) Availability zone for this share backend.
|
||||
# If not set, the storage_availability_zone option value
|
||||
# is used as the default for all backends.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*netapp_transport_type*]
|
||||
# (optional) The transport protocol used when communicating with
|
||||
# the storage system or proxy server. Valid values are
|
||||
@@ -113,6 +119,7 @@ define manila::backend::netapp (
|
||||
$netapp_password,
|
||||
$netapp_server_hostname,
|
||||
$share_backend_name = $name,
|
||||
$backend_availability_zone = $::os_service_default,
|
||||
$netapp_transport_type = 'http',
|
||||
$netapp_storage_family = 'ontap_cluster',
|
||||
$netapp_server_port = undef,
|
||||
@@ -150,6 +157,7 @@ define manila::backend::netapp (
|
||||
"${share_backend_name}/netapp_password": value => $netapp_password, secret => true;
|
||||
"${share_backend_name}/netapp_server_hostname": value => $netapp_server_hostname;
|
||||
"${share_backend_name}/share_backend_name": value => $share_backend_name;
|
||||
"${share_backend_name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${share_backend_name}/netapp_transport_type": value => $netapp_transport_type;
|
||||
"${share_backend_name}/netapp_storage_family": value => $netapp_storage_family;
|
||||
"${share_backend_name}/netapp_server_port": value => $netapp_server_port;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add new "backend_availability_zone" parameter to every share
|
||||
backend. The parameters are optional, and when set they override the
|
||||
DEFAULT/storage_availability_zone for the corresponding backend.
|
||||
@@ -8,6 +8,7 @@ describe 'manila::backend::cephfs' do
|
||||
{
|
||||
:driver_handles_share_servers => false,
|
||||
:share_backend_name => 'cephfs',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:cephfs_conf_path => '$state_path/ceph.conf',
|
||||
:cephfs_auth_id => 'manila',
|
||||
:cephfs_cluster_name => 'ceph',
|
||||
@@ -28,6 +29,8 @@ describe 'manila::backend::cephfs' do
|
||||
'manila.share.drivers.cephfs.driver.CephFSDriver')
|
||||
is_expected.to contain_manila_config('cephfs/share_backend_name').with_value(
|
||||
'cephfs')
|
||||
is_expected.to contain_manila_config('cephfs/backend_availability_zone').with_value(
|
||||
'my_zone')
|
||||
is_expected.to contain_manila_config('cephfs/cephfs_conf_path').with_value(
|
||||
'$state_path/ceph.conf')
|
||||
is_expected.to contain_manila_config('cephfs/cephfs_auth_id').with_value(
|
||||
|
||||
@@ -17,8 +17,9 @@ describe 'manila::backend::dellemc_isilon' do
|
||||
|
||||
let :default_params do
|
||||
{
|
||||
:emc_nas_server_port => 8080,
|
||||
:emc_nas_server_secure => true,
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:emc_nas_server_port => 8080,
|
||||
:emc_nas_server_secure => true,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ describe 'manila::backend::dellemc_unity' do
|
||||
:network_plugin_ipv6_enabled => true,
|
||||
:emc_ssl_cert_verify => true,
|
||||
:emc_ssl_cert_path => '/etc/ssl/certs/',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
@@ -28,6 +29,7 @@ describe 'manila::backend::dellemc_unity' do
|
||||
:network_plugin_ipv6_enabled => '<SERVICE DEFAULT>',
|
||||
:emc_ssl_cert_verify => '<SERVICE DEFAULT>',
|
||||
:emc_ssl_cert_path => '<SERVICE DEFAULT>',
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -19,9 +19,10 @@ describe 'manila::backend::dellemc_vmax' do
|
||||
|
||||
let :default_params do
|
||||
{
|
||||
:vmax_server_container => '<SERVICE DEFAULT>',
|
||||
:vmax_share_data_pools => '<SERVICE DEFAULT>',
|
||||
:vmax_ethernet_ports => '<SERVICE DEFAULT>',
|
||||
:vmax_server_container => '<SERVICE DEFAULT>',
|
||||
:vmax_share_data_pools => '<SERVICE DEFAULT>',
|
||||
:vmax_ethernet_ports => '<SERVICE DEFAULT>',
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ describe 'manila::backend::dellemc_vnx' do
|
||||
:network_plugin_ipv6_enabled => '<SERVICE DEFAULT>',
|
||||
:emc_ssl_cert_verify => '<SERVICE DEFAULT>',
|
||||
:emc_ssl_cert_path => '<SERVICE DEFAULT>',
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -16,10 +16,12 @@ describe 'manila::backend::generic' do
|
||||
:service_instance_smb_config_path => '$share_mount_path/smb.conf',
|
||||
:share_volume_fstype => 'ext4',
|
||||
:cinder_volume_type => 'gold',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
shared_examples 'manila::backend::generic' do
|
||||
|
||||
context 'generic share driver' do
|
||||
it 'configures generic share driver' do
|
||||
is_expected.to contain_manila_config('hippo/share_backend_name').with(
|
||||
|
||||
@@ -9,6 +9,7 @@ describe 'manila::backend::glusterfs' do
|
||||
{
|
||||
:glusterfs_volumes_config => '/etc/manila/glusterfs_volumes',
|
||||
:glusterfs_mount_point_base => '$state_path/mnt',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
@@ -21,6 +22,8 @@ describe 'manila::backend::glusterfs' do
|
||||
'/etc/manila/glusterfs_volumes')
|
||||
is_expected.to contain_manila_config('mygluster/glusterfs_mount_point_base').with_value(
|
||||
'$state_path/mnt')
|
||||
is_expected.to contain_manila_config('mygluster/backend_availability_zone').with_value(
|
||||
'my_zone')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ describe 'manila::backend::glusternative' do
|
||||
:glusterfs_servers => 'remoteuser@volserver',
|
||||
:glusterfs_path_to_private_key => '/etc/glusterfs/glusterfs.pem',
|
||||
:glusterfs_volume_pattern => 'manila-share-volume-\d+$',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ describe 'manila::backend::glusternfs' do
|
||||
:glusterfs_nfs_server_type => 'gluster',
|
||||
:glusterfs_path_to_private_key => '/etc/glusterfs/glusterfs.pem',
|
||||
:glusterfs_ganesha_server_ip => '127.0.0.1',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ describe 'manila::backend::hitachi_hnas' do
|
||||
:hitachi_hnas_evs_id => '1',
|
||||
:hitachi_hnas_evs_ip => ' 172.24.53.1',
|
||||
:hitachi_hnas_file_system_name => 'FS-Manila',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ describe 'manila::backend::netapp' do
|
||||
let :params do
|
||||
{
|
||||
:driver_handles_share_servers => true,
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:netapp_login => 'netapp',
|
||||
:netapp_password => 'password',
|
||||
:netapp_server_hostname => '127.0.0.2',
|
||||
@@ -19,6 +20,7 @@ describe 'manila::backend::netapp' do
|
||||
|
||||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:netapp_transport_type => 'http',
|
||||
:netapp_storage_family => 'ontap_cluster',
|
||||
:netapp_volume_name_template => 'share_%(share_id)s',
|
||||
|
||||
Reference in New Issue
Block a user