Solidfire: Deprecate ineffective parameters

The following two parameters of the Solidfire volume driver were
already removed from cinder by [1].

 - sf_allow_template_caching
 - sf_template_account_name

This change deprecate the corresponding parameters so that we can
remove these completely in the next cycle.

[1] fd495d010c11bd527710a491d6260dd8e0e4ee36

Change-Id: I57b775db9b557d43c7abb6975e2237b378e54915
This commit is contained in:
Takashi Kajinami 2022-01-15 23:47:31 +09:00
parent f280723cd0
commit 75d8b7100d
3 changed files with 35 additions and 17 deletions

View File

@ -40,17 +40,6 @@
# (optional) Prefix to use when creating tenant accounts on SolidFire Cluster.
# Defaults to $::os_service_default
#
# [*sf_template_account_name*]
# (optional) Account name on the SolidFire Cluster to use as owner of
# template/cache volumes (created if does not exist)
# Defaults to $::os_service_default
#
# [*sf_allow_template_caching*]
# (optional) Create an internal cache of copy of images when a bootable
# volume is created to eliminate fetch from glance and qemu-
# conversion on subsequent calls.
# Defaults to $::os_service_default
#
# [*sf_api_port*]
# (optional) Port ID to use to connect to SolidFire API.
# Defaults to $::os_service_default
@ -82,6 +71,19 @@
# Example :
# { 'solidfire_backend/param1' => { 'value' => value1 } }
#
# DEPRECATED PARAMETERS
#
# [*sf_template_account_name*]
# (optional) Account name on the SolidFire Cluster to use as owner of
# template/cache volumes (created if does not exist)
# Defaults to undef
#
# [*sf_allow_template_caching*]
# (optional) Create an internal cache of copy of images when a bootable
# volume is created to eliminate fetch from glance and qemu-
# conversion on subsequent calls.
# Defaults to undef
#
define cinder::backend::solidfire(
$san_ip,
$san_login,
@ -92,18 +94,30 @@ define cinder::backend::solidfire(
$sf_emulate_512 = $::os_service_default,
$sf_allow_tenant_qos = $::os_service_default,
$sf_account_prefix = $::os_service_default,
$sf_template_account_name = $::os_service_default,
$sf_allow_template_caching = $::os_service_default,
$sf_api_port = $::os_service_default,
$sf_volume_prefix = $::os_service_default,
$sf_svip = $::os_service_default,
$sf_enable_vag = $::os_service_default,
$manage_volume_type = false,
$extra_options = {},
# DEPRECATED PARAMETERS
$sf_template_account_name = undef,
$sf_allow_template_caching = undef,
) {
include cinder::deps
if $sf_template_account_name != undef {
warning('The sf_template_account_name parameter has been deprecated and has no effect.')
}
if $sf_allow_template_caching != undef {
warning('The sf_allow_template_caching parameter has been deprecated and has no effect.')
}
cinder_config {
"${name}/sf_template_account_name": ensure => absent;
"${name}/sf_allow_template_caching": ensure => absent;
}
cinder_config {
"${name}/volume_backend_name": value => $volume_backend_name;
"${name}/backend_availability_zone": value => $backend_availability_zone;
@ -114,8 +128,6 @@ define cinder::backend::solidfire(
"${name}/sf_emulate_512": value => $sf_emulate_512;
"${name}/sf_allow_tenant_qos": value => $sf_allow_tenant_qos;
"${name}/sf_account_prefix": value => $sf_account_prefix;
"${name}/sf_template_account_name": value => $sf_template_account_name;
"${name}/sf_allow_template_caching": value => $sf_allow_template_caching;
"${name}/sf_api_port": value => $sf_api_port;
"${name}/sf_volume_prefix": value => $sf_volume_prefix;
"${name}/sf_svip": value => $sf_svip;

View File

@ -0,0 +1,8 @@
---
features:
- |
The following parameters of the ``cinder::backend::solidfire`` resource
type have been deprecated and have no effect now.
- ``sf_template_account_name``
- ``sf_allow_template_caching``

View File

@ -19,8 +19,6 @@ describe 'cinder::backend::solidfire' do
:sf_emulate_512 => '<SERVICE DEFAULT>',
:sf_allow_tenant_qos => '<SERVICE DEFAULT>',
:sf_account_prefix => '<SERVICE DEFAULT>',
:sf_template_account_name => '<SERVICE DEFAULT>',
:sf_allow_template_caching => '<SERVICE DEFAULT>',
:sf_api_port => '<SERVICE DEFAULT>',
:sf_volume_prefix => '<SERVICE DEFAULT>',
:sf_svip => '<SERVICE DEFAULT>',