Merge "Support image volume cache options"
This commit is contained in:
commit
0db5333328
|
@ -9,13 +9,31 @@
|
|||
# copy-volume-to-image operations.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
class cinder::backend::defaults (
|
||||
$use_multipath_for_image_xfer = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
) {
|
||||
|
||||
include cinder::deps
|
||||
|
||||
cinder_config {
|
||||
'backend_defaults/use_multipath_for_image_xfer': value => $use_multipath_for_image_xfer;
|
||||
'backend_defaults/image_volume_cache_enabled': value => $image_volume_cache_enabled;
|
||||
'backend_defaults/image_volume_cache_max_size_gb': value => $image_volume_cache_max_size_gb;
|
||||
'backend_defaults/image_volume_cache_max_count': value => $image_volume_cache_max_count;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*powerflex_allow_migration_during_rebuild*]
|
||||
# (optional) (Boolean) Allow volume migration during rebuild.
|
||||
# Defaults to $facts['os_service_default']
|
||||
|
@ -104,6 +116,9 @@ define cinder::backend::dellemc_powerflex(
|
|||
$powerflex_storage_pools,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$powerflex_allow_migration_during_rebuild = $facts['os_service_default'],
|
||||
$powerflex_allow_non_padded_volumes = $facts['os_service_default'],
|
||||
$powerflex_max_over_subscription_ratio = $facts['os_service_default'],
|
||||
|
@ -128,6 +143,9 @@ define cinder::backend::dellemc_powerflex(
|
|||
"${name}/powerflex_storage_pools": value => $powerflex_storage_pools;
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/powerflex_allow_migration_during_rebuild": value => $powerflex_allow_migration_during_rebuild;
|
||||
"${name}/powerflex_allow_non_padded_volumes": value => $powerflex_allow_non_padded_volumes;
|
||||
"${name}/powerflex_max_over_subscription_ratio": value => $powerflex_max_over_subscription_ratio;
|
||||
|
|
|
@ -40,6 +40,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -66,6 +78,9 @@ define cinder::backend::dellemc_powermax (
|
|||
Enum['iSCSI', 'FC'] $powermax_storage_protocol = 'iSCSI',
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
Hash $extra_options = {},
|
||||
Boolean $manage_volume_type = false,
|
||||
|
@ -88,6 +103,9 @@ define cinder::backend::dellemc_powermax (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -30,6 +30,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*manage_volume_type*]
|
||||
# (Optional) Whether or not manage Cinder Volume type.
|
||||
# If set to true, a Cinder Volume type will be created
|
||||
|
@ -50,6 +62,9 @@ define cinder::backend::dellemc_powerstore (
|
|||
Enum['iSCSI', 'FC'] $storage_protocol = 'iSCSI',
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
Boolean $manage_volume_type = false,
|
||||
Hash $extra_options = {},
|
||||
) {
|
||||
|
@ -61,6 +76,9 @@ define cinder::backend::dellemc_powerstore (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => "cinder.volume.drivers.${driver}";
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
"${name}/san_login": value => $san_login;
|
||||
|
|
|
@ -30,6 +30,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*dell_sc_api_port*]
|
||||
# (optional) The Enterprise Manager API port.
|
||||
# Defaults to $facts['os_service_default']
|
||||
|
@ -101,6 +113,9 @@ define cinder::backend::dellemc_sc (
|
|||
$target_ip_address = undef,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$dell_sc_api_port = $facts['os_service_default'],
|
||||
$dell_sc_server_folder = 'srv',
|
||||
$dell_sc_verify_cert = $facts['os_service_default'],
|
||||
|
@ -127,6 +142,9 @@ define cinder::backend::dellemc_sc (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
"${name}/san_login": value => $san_login;
|
||||
|
|
|
@ -26,6 +26,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -58,6 +70,9 @@ define cinder::backend::dellemc_unity (
|
|||
$storage_protocol,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$unity_io_ports = $facts['os_service_default'],
|
||||
$unity_storage_pool_names = $facts['os_service_default'],
|
||||
|
@ -71,6 +86,9 @@ define cinder::backend::dellemc_unity (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => "cinder.volume.drivers.${driver}";
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -26,6 +26,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -73,6 +85,9 @@ define cinder::backend::dellemc_xtremio (
|
|||
$xtremio_cluster_name,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$xtremio_array_busy_retry_count = $facts['os_service_default'],
|
||||
$xtremio_array_busy_retry_interval = $facts['os_service_default'],
|
||||
|
@ -93,6 +108,9 @@ define cinder::backend::dellemc_xtremio (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => "cinder.volume.drivers.${driver}";
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -16,6 +16,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -125,6 +137,9 @@ define cinder::backend::emc_vnx (
|
|||
$san_login = 'admin',
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
Hash $extra_options = {},
|
||||
$volume_driver = 'cinder.volume.drivers.dell_emc.vnx.driver.VNXDriver',
|
||||
|
@ -156,6 +171,9 @@ define cinder::backend::emc_vnx (
|
|||
"${name}/storage_vnx_pool_names": value => join(any2array($storage_vnx_pool_names), ',');
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/storage_protocol": value => $storage_protocol;
|
||||
|
|
|
@ -74,6 +74,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*manage_volume_type*]
|
||||
# (Optional) Whether or not manage Cinder Volume type.
|
||||
# If set to true, a Cinder Volume type will be created
|
||||
|
@ -108,6 +120,9 @@ define cinder::backend::gpfs (
|
|||
$nas_private_key = $facts['os_service_default'],
|
||||
$nas_ssh_port = $facts['os_service_default'],
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
Boolean $manage_volume_type = false,
|
||||
Hash $extra_options = {},
|
||||
) {
|
||||
|
@ -136,6 +151,9 @@ define cinder::backend::gpfs (
|
|||
"${name}/nas_private_key": value => $nas_private_key;
|
||||
"${name}/nas_ssh_port": value => $nas_ssh_port;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
}
|
||||
|
||||
if $manage_volume_type {
|
||||
|
|
|
@ -37,6 +37,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -85,6 +97,9 @@ define cinder::backend::hpe3par_iscsi(
|
|||
$hpe3par_iscsi_ips,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$volume_driver = 'cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver',
|
||||
$hpe3par_iscsi_chap_enabled = false,
|
||||
|
@ -104,6 +119,9 @@ define cinder::backend::hpe3par_iscsi(
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/hpe3par_username": value => $hpe3par_username;
|
||||
|
|
|
@ -53,6 +53,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -81,6 +93,9 @@ define cinder::backend::ibm_svf (
|
|||
$storwize_portset = $facts['os_service_default'],
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
Hash $extra_options = {},
|
||||
Boolean $manage_volume_type = false,
|
||||
|
@ -98,6 +113,9 @@ define cinder::backend::ibm_svf (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -17,6 +17,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -57,6 +69,9 @@ define cinder::backend::iscsi (
|
|||
$target_ip_address = $facts['os_service_default'],
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver',
|
||||
$volume_group = $facts['os_service_default'],
|
||||
|
@ -87,6 +102,9 @@ define cinder::backend::iscsi (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/target_ip_address": value => $target_ip_address;
|
||||
|
|
|
@ -27,6 +27,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -176,6 +188,9 @@ define cinder::backend::netapp (
|
|||
$netapp_server_hostname,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$netapp_server_port = $facts['os_service_default'],
|
||||
$netapp_size_multiplier = $facts['os_service_default'],
|
||||
|
@ -218,6 +233,9 @@ and will be removed in a future release.")
|
|||
"${name}/nfs_mount_options": value => $nfs_mount_options;
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => 'cinder.volume.drivers.netapp.common.NetAppDriver';
|
||||
"${name}/netapp_login": value => $netapp_login;
|
||||
|
|
|
@ -23,6 +23,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -73,6 +85,9 @@ define cinder::backend::nexenta (
|
|||
$nexenta_host,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$nexenta_volume = 'cinder',
|
||||
$nexenta_target_prefix = 'iqn:',
|
||||
|
@ -90,6 +105,9 @@ define cinder::backend::nexenta (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/nexenta_user": value => $nexenta_user;
|
||||
"${name}/nexenta_password": value => $nexenta_password, secret => true;
|
||||
|
|
|
@ -15,6 +15,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*nfs_mount_attempts*]
|
||||
# (optional) The number of attempts to mount nfs shares before raising an
|
||||
# error. At least one attempt will be made to mount an nfs share, regardless
|
||||
|
@ -92,6 +104,9 @@ define cinder::backend::nfs (
|
|||
Array[String[1], 1] $nfs_servers,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$nfs_mount_attempts = $facts['os_service_default'],
|
||||
$nfs_mount_options = $facts['os_service_default'],
|
||||
$nfs_sparsed_volumes = $facts['os_service_default'],
|
||||
|
@ -118,8 +133,10 @@ define cinder::backend::nfs (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/volume_driver": value =>
|
||||
'cinder.volume.drivers.nfs.NfsDriver';
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => 'cinder.volume.drivers.nfs.NfsDriver';
|
||||
"${name}/nfs_shares_config": value => $nfs_shares_config;
|
||||
"${name}/nfs_mount_attempts": value => $nfs_mount_attempts;
|
||||
"${name}/nfs_mount_options": value => $nfs_mount_options;
|
||||
|
@ -129,10 +146,8 @@ define cinder::backend::nfs (
|
|||
"${name}/nfs_oversub_ratio": value => $nfs_oversub_ratio;
|
||||
"${name}/nfs_snapshot_support": value => $nfs_snapshot_support;
|
||||
"${name}/nfs_qcow2_volumes": value => $nfs_qcow2_volumes;
|
||||
"${name}/nas_secure_file_operations": value =>
|
||||
$nas_secure_file_operations;
|
||||
"${name}/nas_secure_file_permissions": value =>
|
||||
$nas_secure_file_permissions;
|
||||
"${name}/nas_secure_file_operations": value => $nas_secure_file_operations;
|
||||
"${name}/nas_secure_file_permissions": value => $nas_secure_file_permissions;
|
||||
}
|
||||
|
||||
if $manage_volume_type {
|
||||
|
|
|
@ -38,6 +38,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*volume_driver*]
|
||||
# (Optional) Driver to use for volume creation
|
||||
# Defaults to 'cinder.volume.drivers.lvm.LVMVolumeDriver'.
|
||||
|
@ -68,6 +80,9 @@ define cinder::backend::nvmeof (
|
|||
$nvmet_ns_id = $facts['os_service_default'],
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver',
|
||||
$volume_group = $facts['os_service_default'],
|
||||
$nvmeof_conn_info_version = $facts['os_service_default'],
|
||||
|
@ -88,6 +103,9 @@ define cinder::backend::nvmeof (
|
|||
"${name}/nvmet_ns_id": value => $nvmet_ns_id;
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/volume_group": value => $volume_group;
|
||||
"${name}/nvmeof_conn_info_version": value => $nvmeof_conn_info_version;
|
||||
|
|
|
@ -46,10 +46,17 @@
|
|||
# Defaults to false.
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for the PureStorage
|
||||
# backend.
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to True
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*pure_host_personality*]
|
||||
# (Optional) Determines how the Purity system tunes the protocol used between
|
||||
# the array and the initiator.
|
||||
|
@ -107,6 +114,8 @@ define cinder::backend::pure(
|
|||
$use_multipath_for_image_xfer = true,
|
||||
Boolean $manage_volume_type = false,
|
||||
$image_volume_cache_enabled = true,
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$pure_host_personality = $facts['os_service_default'],
|
||||
$pure_eradicate_on_delete = $facts['os_service_default'],
|
||||
$pure_nvme_transport = $facts['os_service_default'],
|
||||
|
@ -135,6 +144,8 @@ define cinder::backend::pure(
|
|||
"${name}/use_chap_auth": value => $use_chap_auth;
|
||||
"${name}/use_multipath_for_image_xfer": value => $use_multipath_for_image_xfer;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/pure_host_personality": value => $pure_host_personality;
|
||||
"${name}/pure_eradicate_on_delete": value => $pure_eradicate_on_delete;
|
||||
"${name}/pure_nvme_transport": value => $pure_nvme_transport;
|
||||
|
|
|
@ -40,6 +40,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*manage_volume_type*]
|
||||
# (Optional) Whether or not manage Cinder Volume type.
|
||||
# If set to true, a Cinder Volume type will be created
|
||||
|
@ -60,6 +72,9 @@ define cinder::backend::quobyte (
|
|||
$quobyte_mount_point_base = undef,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
Boolean $manage_volume_type = false,
|
||||
) {
|
||||
|
||||
|
@ -68,8 +83,10 @@ define cinder::backend::quobyte (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/volume_driver": value =>
|
||||
'cinder.volume.drivers.quobyte.QuobyteDriver';
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => 'cinder.volume.drivers.quobyte.QuobyteDriver';
|
||||
"${name}/quobyte_volume_url": value => $quobyte_volume_url;
|
||||
"${name}/quobyte_client_cfg": value => $quobyte_client_cfg;
|
||||
"${name}/quobyte_qcow2_volumes": value => $quobyte_qcow2_volumes;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Support for the image volume cache options has been added.
|
|
@ -18,6 +18,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*san_thin_provision*]
|
||||
# (optional) Use thin provisioning for SAN volumes?
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -83,6 +95,9 @@ define cinder::backend::san (
|
|||
$volume_driver,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$san_thin_provision = $facts['os_service_default'],
|
||||
$san_ip = $facts['os_service_default'],
|
||||
$san_login = $facts['os_service_default'],
|
||||
|
@ -104,6 +119,9 @@ define cinder::backend::san (
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/san_thin_provision": value => $san_thin_provision;
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -15,6 +15,18 @@
|
|||
# is used as the default for all backends.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*image_volume_cache_enabled*]
|
||||
# (Optional) Enable Cinder's image cache function for this backend.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_size_gb*]
|
||||
# (Optional) Max size of the image volume cache for this backend in GB.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*image_volume_cache_max_count*]
|
||||
# (Optional) Max number of entries allowed in the image volume cache.
|
||||
# Defaults to $facts['os_service_default'],
|
||||
#
|
||||
# [*reserved_percentage*]
|
||||
# (Optional) The percentage of backend capacity is reserved.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
|
@ -109,6 +121,9 @@ define cinder::backend::solidfire(
|
|||
$san_password,
|
||||
$volume_backend_name = $name,
|
||||
$backend_availability_zone = $facts['os_service_default'],
|
||||
$image_volume_cache_enabled = $facts['os_service_default'],
|
||||
$image_volume_cache_max_size_gb = $facts['os_service_default'],
|
||||
$image_volume_cache_max_count = $facts['os_service_default'],
|
||||
$reserved_percentage = $facts['os_service_default'],
|
||||
$volume_driver = 'cinder.volume.drivers.solidfire.SolidFireDriver',
|
||||
$sf_emulate_512 = $facts['os_service_default'],
|
||||
|
@ -133,6 +148,9 @@ define cinder::backend::solidfire(
|
|||
cinder_config {
|
||||
"${name}/volume_backend_name": value => $volume_backend_name;
|
||||
"${name}/backend_availability_zone": value => $backend_availability_zone;
|
||||
"${name}/image_volume_cache_enabled": value => $image_volume_cache_enabled;
|
||||
"${name}/image_volume_cache_max_size_gb": value => $image_volume_cache_max_size_gb;
|
||||
"${name}/image_volume_cache_max_count": value => $image_volume_cache_max_count;
|
||||
"${name}/reserved_percentage": value => $reserved_percentage;
|
||||
"${name}/volume_driver": value => $volume_driver;
|
||||
"${name}/san_ip": value => $san_ip;
|
||||
|
|
|
@ -4,15 +4,31 @@ describe 'cinder::backend::defaults' do
|
|||
|
||||
shared_examples 'cinder backend defaults' do
|
||||
|
||||
context 'configure cinder with default backend_defaults parameters' do
|
||||
it { is_expected.to contain_cinder_config('backend_defaults/use_multipath_for_image_xfer').with_value('<SERVICE DEFAULT>') }
|
||||
context 'with defaults' do
|
||||
it 'should configure cinder with default backend_defaults parameters' do
|
||||
is_expected.to contain_cinder_config('backend_defaults/use_multipath_for_image_xfer').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
end
|
||||
end
|
||||
|
||||
context 'configure cinder with user defined backend_defaults parameters' do
|
||||
context 'with parameters' do
|
||||
let(:params) do
|
||||
{ :use_multipath_for_image_xfer => true, }
|
||||
{
|
||||
:use_multipath_for_image_xfer => true,
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
}
|
||||
end
|
||||
|
||||
it 'should configure cinder with user defined backend_defaults parameters' do
|
||||
is_expected.to contain_cinder_config('backend_defaults/use_multipath_for_image_xfer').with_value(true)
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_enabled').with_value(true)
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_max_size_gb').with_value(100)
|
||||
is_expected.to contain_cinder_config('backend_defaults/image_volume_cache_max_count').with_value(101)
|
||||
end
|
||||
it { is_expected.to contain_cinder_config('backend_defaults/use_multipath_for_image_xfer').with_value(true) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@ describe 'cinder::backend::dellemc_powerflex' do
|
|||
let :params2 do
|
||||
{
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:powerflex_allow_migration_during_rebuild => 'true',
|
||||
:powerflex_allow_non_padded_volumes => 'false',
|
||||
:powerflex_max_over_subscription_ratio => '6.0',
|
||||
|
|
|
@ -31,6 +31,9 @@ describe 'cinder::backend::dellemc_powermax' do
|
|||
is_expected.to contain_cinder_config("#{title}/powermax_port_groups").with_value('[OS-ISCSI-PG]')
|
||||
is_expected.to contain_cinder_config("#{title}/backend_availability_zone").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/reserved_percentage").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_enabled").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_max_size_gb").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_max_count").with_value('<SERVICE DEFAULT>')
|
||||
|
||||
is_expected.to contain_package('pywbem').with(
|
||||
:ensure => 'installed',
|
||||
|
|
|
@ -17,6 +17,9 @@ describe 'cinder::backend::dellemc_powerstore' do
|
|||
{
|
||||
:powerstore_ports => '<SERVICE DEFAULT>',
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:storage_protocol => 'iSCSI' ,
|
||||
}
|
||||
end
|
||||
|
@ -25,6 +28,9 @@ describe 'cinder::backend::dellemc_powerstore' do
|
|||
{
|
||||
:powerstore_ports => '58:cc:f0:98:49:22:07:02,58:cc:f0:98:49:23:07:02',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:storage_protocol => 'iSCSI' ,
|
||||
}
|
||||
end
|
||||
|
|
|
@ -18,6 +18,9 @@ describe 'cinder::backend::dellemc_sc' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:dell_sc_api_port => '<SERVICE DEFAULT>',
|
||||
:dell_sc_server_folder => 'srv',
|
||||
:dell_sc_verify_cert => '<SERVICE DEFAULT>',
|
||||
|
@ -35,6 +38,9 @@ describe 'cinder::backend::dellemc_sc' do
|
|||
let :custom_params do
|
||||
{
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:dell_sc_api_port => 111,
|
||||
:dell_sc_server_folder => 'other_srv',
|
||||
:dell_sc_verify_cert => true,
|
||||
|
|
|
@ -17,6 +17,9 @@ describe 'cinder::backend::dellemc_unity' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:reserved_percentage => '<SERVICE DEFAULT>',
|
||||
:unity_io_ports => '<SERVICE DEFAULT>',
|
||||
:unity_storage_pool_names => '<SERVICE DEFAULT>',
|
||||
|
@ -26,6 +29,9 @@ describe 'cinder::backend::dellemc_unity' do
|
|||
let :custom_params do
|
||||
{
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:reserved_percentage => 10,
|
||||
:unity_io_ports => '1,42,66',
|
||||
:unity_storage_pool_names => 'pool_1,pool_2',
|
||||
|
|
|
@ -17,6 +17,9 @@ describe 'cinder::backend::dellemc_xtremio' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:reserved_percentage => '<SERVICE DEFAULT>',
|
||||
:xtremio_array_busy_retry_count => '<SERVICE DEFAULT>',
|
||||
:xtremio_array_busy_retry_interval => '<SERVICE DEFAULT>',
|
||||
|
@ -28,6 +31,9 @@ describe 'cinder::backend::dellemc_xtremio' do
|
|||
let :custom_params do
|
||||
{
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:reserved_percentage => 10,
|
||||
:xtremio_array_busy_retry_count => 15,
|
||||
:xtremio_array_busy_retry_interval => 6,
|
||||
|
|
|
@ -37,6 +37,9 @@ describe 'cinder::backend::emc_vnx' do
|
|||
is_expected.to contain_cinder_config('emc/storage_vnx_security_file_dir').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/naviseccli_path').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('emc/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
}
|
||||
end
|
||||
|
@ -59,6 +62,9 @@ describe 'cinder::backend::emc_vnx' do
|
|||
:manage_volume_type => true,
|
||||
:storage_protocol => 'fc',
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:reserved_percentage => 10,
|
||||
})
|
||||
end
|
||||
|
@ -78,6 +84,9 @@ describe 'cinder::backend::emc_vnx' do
|
|||
is_expected.to contain_cinder_config('emc/naviseccli_path').with_value(params[:naviseccli_path])
|
||||
is_expected.to contain_cinder_config('emc/storage_protocol').with_value(params[:storage_protocol])
|
||||
is_expected.to contain_cinder_config('emc/backend_availability_zone').with_value(params[:backend_availability_zone])
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_enabled').with_value(params[:image_volume_cache_enabled])
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_max_size_gb').with_value(params[:image_volume_cache_max_size_gb])
|
||||
is_expected.to contain_cinder_config('emc/image_volume_cache_max_count').with_value(params[:image_volume_cache_max_count])
|
||||
is_expected.to contain_cinder_config('emc/reserved_percentage').with_value(params[:reserved_percentage])
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ describe 'cinder::backend::gpfs' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:gpfs_max_clone_depth => '<SERVICE DEFAULT>',
|
||||
:gpfs_sparse_volumes => '<SERVICE DEFAULT>',
|
||||
:gpfs_storage_pool => '<SERVICE DEFAULT>',
|
||||
|
@ -28,6 +31,9 @@ describe 'cinder::backend::gpfs' do
|
|||
let :custom_params do
|
||||
{
|
||||
:backend_availability_zone => 'my_zone',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:gpfs_max_clone_depth => 1,
|
||||
:gpfs_sparse_volumes => false,
|
||||
:gpfs_storage_pool => 'foo',
|
||||
|
|
|
@ -24,6 +24,9 @@ describe 'cinder::backend::hpe3par_iscsi' do
|
|||
it {
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/volume_driver').with_value('cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/hpe3par_api_url').with_value('https://172.0.0.2:8080/api/v1')
|
||||
is_expected.to contain_cinder_config('hpe3par_iscsi/hpe3par_username').with_value('3paradm')
|
||||
|
|
|
@ -30,6 +30,9 @@ describe 'cinder::backend::ibm_svf' do
|
|||
is_expected.to contain_cinder_config("#{title}/storwize_svc_retain_aux_volume").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/storwize_portset").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/backend_availability_zone").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_enabled").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_max_size_gb").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/image_volume_cache_max_count").with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config("#{title}/reserved_percentage").with_value('<SERVICE DEFAULT>')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,6 +7,9 @@ describe 'cinder::backend::iscsi' do
|
|||
context 'with default params' do
|
||||
it {
|
||||
is_expected.to contain_cinder_config('hippo/volume_backend_name').with_value('hippo')
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hippo/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hippo/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('hippo/volume_driver').with_value('cinder.volume.drivers.lvm.LVMVolumeDriver')
|
||||
|
@ -22,6 +25,9 @@ describe 'cinder::backend::iscsi' do
|
|||
let :params do
|
||||
{
|
||||
:backend_availability_zone => 'nova',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:reserved_percentage => 10,
|
||||
:target_ip_address => '192.0.2.1',
|
||||
:volume_group => 'volumegroup',
|
||||
|
@ -31,6 +37,9 @@ describe 'cinder::backend::iscsi' do
|
|||
end
|
||||
it {
|
||||
is_expected.to contain_cinder_config('hippo/backend_availability_zone').with_value('nova')
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_enabled').with_value(true)
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_max_size_gb').with_value(100)
|
||||
is_expected.to contain_cinder_config('hippo/image_volume_cache_max_count').with_value(101)
|
||||
is_expected.to contain_cinder_config('hippo/reserved_percentage').with_value(10)
|
||||
is_expected.to contain_cinder_config('hippo/target_ip_address').with_value('192.0.2.1')
|
||||
is_expected.to contain_cinder_config('hippo/volume_group').with_value('volumegroup')
|
||||
|
|
|
@ -17,6 +17,9 @@ describe 'cinder::backend::netapp' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:reserved_percentage => '<SERVICE DEFAULT>',
|
||||
:netapp_server_port => '<SERVICE DEFAULT>',
|
||||
:netapp_size_multiplier => '<SERVICE DEFAULT>',
|
||||
|
|
|
@ -24,6 +24,9 @@ describe 'cinder::backend::nexenta' do
|
|||
:nexenta_rest_port => '8457',
|
||||
:volume_driver => 'cinder.volume.drivers.nexenta.iscsi.NexentaISCSIDriver',
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:reserved_percentage => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
|
|
@ -26,6 +26,9 @@ describe 'cinder::backend::nvmeof' do
|
|||
is_expected.to contain_cinder_config('nvme-backend/nvmet_ns_id').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/volume_backend_name').with_value('nvme-backend')
|
||||
is_expected.to contain_cinder_config('nvme-backend/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/volume_driver').with_value('cinder.volume.drivers.lvm.LVMVolumeDriver')
|
||||
is_expected.to contain_cinder_config('nvme-backend/nvmeof_conn_info_version').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('nvme-backend/lvm_share_target').with_value('<SERVICE DEFAULT>')
|
||||
|
|
|
@ -19,12 +19,14 @@ describe 'cinder::backend::pure' do
|
|||
it {
|
||||
is_expected.to contain_cinder_config('pure/volume_driver').with_value('cinder.volume.drivers.pure.PureISCSIDriver')
|
||||
is_expected.to contain_cinder_config('pure/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/san_ip').with_value('127.0.0.2')
|
||||
is_expected.to contain_cinder_config('pure/pure_api_token').with_value('abc123def456ghi789')
|
||||
is_expected.to contain_cinder_config('pure/use_multipath_for_image_xfer').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/use_chap_auth').with_value('false')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/pure_eradicate_on_delete').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/pure_iscsi_cidr').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/pure_iscsi_cidr_list').with_value('<SERVICE DEFAULT>')
|
||||
|
@ -45,6 +47,9 @@ describe 'cinder::backend::pure' do
|
|||
it {
|
||||
is_expected.to contain_cinder_config('pure/volume_driver').with_value('cinder.volume.drivers.pure.PureISCSIDriver')
|
||||
is_expected.to contain_cinder_config('pure/backend_availability_zone').with_value('my_zone')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/reserved_percentage').with_value(10)
|
||||
is_expected.to contain_cinder_config('pure/san_ip').with_value('127.0.0.2')
|
||||
is_expected.to contain_cinder_config('pure/pure_api_token').with_value('abc123def456ghi789')
|
||||
|
@ -64,6 +69,11 @@ describe 'cinder::backend::pure' do
|
|||
|
||||
it {
|
||||
is_expected.to contain_cinder_config('pure/volume_driver').with_value('cinder.volume.drivers.pure.PureFCDriver')
|
||||
is_expected.to contain_cinder_config('pure/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/san_ip').with_value('127.0.0.2')
|
||||
is_expected.to contain_cinder_config('pure/pure_api_token').with_value('abc123def456ghi789')
|
||||
is_expected.to contain_cinder_config('pure/use_multipath_for_image_xfer').with_value('true')
|
||||
|
@ -80,6 +90,11 @@ describe 'cinder::backend::pure' do
|
|||
|
||||
it {
|
||||
is_expected.to contain_cinder_config('pure/volume_driver').with_value('cinder.volume.drivers.pure.PureNVMEDriver')
|
||||
is_expected.to contain_cinder_config('pure/backend_availability_zone').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('true')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/reserved_percentage').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('pure/san_ip').with_value('127.0.0.2')
|
||||
is_expected.to contain_cinder_config('pure/pure_api_token').with_value('abc123def456ghi789')
|
||||
is_expected.to contain_cinder_config('pure/use_multipath_for_image_xfer').with_value('true')
|
||||
|
@ -112,13 +127,19 @@ describe 'cinder::backend::pure' do
|
|||
)}
|
||||
end
|
||||
|
||||
context 'pure volume driver with image_volume_cache_enabled disabled' do
|
||||
context 'pure volume driver with image volume cache options' do
|
||||
let :params do
|
||||
req_params.merge({'image_volume_cache_enabled' => false})
|
||||
req_params.merge({
|
||||
:image_volume_cache_enabled => false,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
})
|
||||
end
|
||||
|
||||
it {
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value('false')
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_enabled').with_value(false)
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_size_gb').with_value(100)
|
||||
is_expected.to contain_cinder_config('pure/image_volume_cache_max_count').with_value(101)
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ describe 'cinder::backend::quobyte' do
|
|||
is_expected.to contain_cinder_config('myquobyte/quobyte_qcow2_volumes').with_value(false)
|
||||
is_expected.to contain_cinder_config('myquobyte/quobyte_sparsed_volumes').with_value(true)
|
||||
is_expected.to contain_cinder_config('myquobyte/backend_availability_zone').with_value('my_zone')
|
||||
is_expected.to contain_cinder_config('myquobyte/image_volume_cache_enabled').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('myquobyte/image_volume_cache_max_size_gb').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('myquobyte/image_volume_cache_max_count').with_value('<SERVICE DEFAULT>')
|
||||
}
|
||||
|
||||
context 'quobyte backend with cinder type' do
|
||||
|
|
|
@ -12,6 +12,9 @@ describe 'cinder::backend::san' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:san_thin_provision => '<SERVICE DEFAULT>',
|
||||
:san_ip => '<SERVICE DEFAULT>',
|
||||
:san_login => '<SERVICE DEFAULT>',
|
||||
|
|
|
@ -16,6 +16,9 @@ describe 'cinder::backend::solidfire' do
|
|||
let :default_params do
|
||||
{
|
||||
:backend_availability_zone => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_enabled => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_size_gb => '<SERVICE DEFAULT>',
|
||||
:image_volume_cache_max_count => '<SERVICE DEFAULT>',
|
||||
:reserved_percentage => '<SERVICE DEFAULT>',
|
||||
:sf_emulate_512 => '<SERVICE DEFAULT>',
|
||||
:sf_allow_tenant_qos => '<SERVICE DEFAULT>',
|
||||
|
@ -36,6 +39,9 @@ describe 'cinder::backend::solidfire' do
|
|||
let :other_params do
|
||||
{
|
||||
:backend_availability_zone => 'az1',
|
||||
:image_volume_cache_enabled => true,
|
||||
:image_volume_cache_max_size_gb => 100,
|
||||
:image_volume_cache_max_count => 101,
|
||||
:reserved_percentage => 10,
|
||||
:sf_emulate_512 => true,
|
||||
:sf_allow_tenant_qos => false,
|
||||
|
|
Loading…
Reference in New Issue