From 55da9540026effd864ac6f1a16faf79d0a1432dc Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 28 Jul 2020 20:48:02 +0900 Subject: [PATCH] Cleanup deperecated per_user parameters from trove::quota ... because these parameters were deprecated a while ago[1]. [1] 2d5ee453cf2e4ef1092c797ca5ff2368cee7be2c Change-Id: I650e37d54fade3335806a96453e06c87faa4c4ff --- manifests/quota.pp | 49 ++----------------- ...ams_from_trove-quota-19ce39fbd7611db7.yaml | 9 ++++ 2 files changed, 12 insertions(+), 46 deletions(-) create mode 100644 releasenotes/notes/cleanup_deprecated_params_from_trove-quota-19ce39fbd7611db7.yaml diff --git a/manifests/quota.pp b/manifests/quota.pp index 08ff0f73..9d7f4a87 100644 --- a/manifests/quota.pp +++ b/manifests/quota.pp @@ -25,64 +25,21 @@ # (optional) Default driver to use for quota checks. # Defaults to 'trove.quota.quota.DbQuotaDriver'. # -# === DEPRECATED PARAMETERS -# -# [*max_instances_per_user*] -# (optional) DEPRECATED. Default maximum number of instances per tenant. -# Defaults to undef -# -# [*max_volumes_per_user*] -# (optional) DEPRECATED. Default maximum volume capacity (in GB) spanning across -# all Trove volumes per tenant. -# Defaults to undef -# -# [*max_backups_per_user*] -# (optional) DEPRECATED. Default maximum number of backups created by a tenant. -# Defaults to undef -# class trove::quota ( $max_instances_per_tenant = 5, $max_accepted_volume_size = 5, $max_volumes_per_tenant = 20, $max_backups_per_tenant = 50, $quota_driver = 'trove.quota.quota.DbQuotaDriver', - # Deprecated - $max_instances_per_user = undef, - $max_volumes_per_user = undef, - $max_backups_per_user = undef, ) { include trove::deps - if $max_instances_per_user { - warning("max_instances_per_user deprecated, has no effect and will be removed after Newton cycle. \ -Please use max_instances_per_tenant instead.") - $max_instances_per_tenant_real = $max_instances_per_user - } else { - $max_instances_per_tenant_real = $max_instances_per_tenant - } - - if $max_volumes_per_user { - warning("max_volumes_per_user deprecated, has no effect and will be removed after Newton cycle. \ -Please use max_volumes_per_tenant instead.") - $max_volumes_per_tenant_real = $max_volumes_per_user - } else { - $max_volumes_per_tenant_real = $max_volumes_per_tenant - } - - if $max_backups_per_user { - warning("max_backups_per_user deprecated, has no effect and will be removed after Newton cycle. \ -Please use max_backups_per_tenant instead.") - $max_backups_per_tenant_real = $max_backups_per_user - } else { - $max_backups_per_tenant_real = $max_backups_per_tenant - } - trove_config { - 'DEFAULT/max_instances_per_tenant': value => $max_instances_per_tenant_real; + 'DEFAULT/max_instances_per_tenant': value => $max_instances_per_tenant; 'DEFAULT/max_accepted_volume_size': value => $max_accepted_volume_size; - 'DEFAULT/max_volumes_per_tenant': value => $max_volumes_per_tenant_real; - 'DEFAULT/max_backups_per_tenant': value => $max_backups_per_tenant_real; + 'DEFAULT/max_volumes_per_tenant': value => $max_volumes_per_tenant; + 'DEFAULT/max_backups_per_tenant': value => $max_backups_per_tenant; 'DEFAULT/quota_driver': value => $quota_driver; } } diff --git a/releasenotes/notes/cleanup_deprecated_params_from_trove-quota-19ce39fbd7611db7.yaml b/releasenotes/notes/cleanup_deprecated_params_from_trove-quota-19ce39fbd7611db7.yaml new file mode 100644 index 00000000..bd7f3255 --- /dev/null +++ b/releasenotes/notes/cleanup_deprecated_params_from_trove-quota-19ce39fbd7611db7.yaml @@ -0,0 +1,9 @@ +--- +upgrade: + - | + The following deprecated parameters have been removed. The new per_tenant + parameters should be used instead. + + - ``trove::quota::max_instances_per_user`` + - ``trove::quota::max_volumes_per_user`` + - ``trove::quota::max_backups_per_user``