From 369f0509795e29a99a3e13bbd8257e8643bc2014 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 4 May 2021 21:16:14 +0900 Subject: [PATCH] Remove image_cache parameters from nova::compute::libvirt ... because these parameters were deprecated during the Victoria cycle in favor of the new nova::compute::image_cache class[1]. [1] 3811ac99a85d1725ba2d58de99bee6013992e669 Change-Id: Icf0a695ccc107c463fdfbedd29fe662f996d76cb --- manifests/compute/libvirt.pp | 51 ------------------- ...nup-image_cache-opts-ebecdd4a18769dd3.yaml | 9 ++++ 2 files changed, 9 insertions(+), 51 deletions(-) create mode 100644 releasenotes/notes/cleanup-image_cache-opts-ebecdd4a18769dd3.yaml diff --git a/manifests/compute/libvirt.pp b/manifests/compute/libvirt.pp index 3ea14152c..0efd1134a 100644 --- a/manifests/compute/libvirt.pp +++ b/manifests/compute/libvirt.pp @@ -278,28 +278,6 @@ # which you may need to search key words ``VIR_PERF_PARAM_*`` # Defaults to undef # -# [*remove_unused_base_images*] -# (optional) Should unused base images be removed? -# If undef is specified, remove the line in nova.conf -# otherwise, use a boolean to remove or not the base images. -# Defaults to undef -# -# [*remove_unused_resized_minimum_age_seconds*] -# (optional) Unused resized base images younger -# than this will not be removed -# If undef is specified, remove the line in nova.conf -# otherwise, use a integer or a string to define after -# how many seconds it will be removed. -# Defaults to undef -# -# [*remove_unused_original_minimum_age_seconds*] -# (optional) Unused unresized base images younger -# than this will not be removed -# If undef is specified, remove the line in nova.conf -# otherwise, use a integer or a string to define after -# how many seconds it will be removed. -# Defaults to undef -# class nova::compute::libvirt ( $ensure_package = 'present', $virt_type = 'kvm', @@ -353,40 +331,11 @@ class nova::compute::libvirt ( $libvirt_inject_key = undef, $libvirt_inject_partition = undef, $libvirt_enabled_perf_events = undef, - $remove_unused_base_images = undef, - $remove_unused_resized_minimum_age_seconds = undef, - $remove_unused_original_minimum_age_seconds = undef, ) inherits nova::params { include nova::deps include nova::params - if $remove_unused_base_images != undef { - warning('The remove_unused_base_images parameter was deprecated and \ -will be removed in a future release. Use the nova::compute::image_cache class') - } - - if $remove_unused_resized_minimum_age_seconds != undef { - warning('The remove_unused_resized_minimum_age_seconds parameter was deprecated and \ -will be removed in a future release. Use the nova::compute::image_cache class') - } - - if $remove_unused_original_minimum_age_seconds != undef { - warning('The remove_unused_original_minimum_age_seconds parameter was deprecated and \ -will be removed in a future release. Use the nova::compute::image_cache class') - } - - # TODO(tkajinam): Remove this when removing deprecated image cache parameters - include nova::compute::image_cache - - # Cleanup deprecated image cache parameters - nova_config { - 'DEFAULT/remove_unused_base_images': ensure => 'absent'; - 'DEFAULT/remove_unused_original_minimum_age_seconds': ensure => 'absent'; - 'libvirt/remove_unused_resized_minimum_age_seconds': ensure => 'absent'; - } - - if $libvirt_virt_type != undef { warning('The libvirt_virt_type parameter was deprecated and will be removed \ in a future release. Use the virt_type parameter instead') diff --git a/releasenotes/notes/cleanup-image_cache-opts-ebecdd4a18769dd3.yaml b/releasenotes/notes/cleanup-image_cache-opts-ebecdd4a18769dd3.yaml new file mode 100644 index 000000000..b2cd43dde --- /dev/null +++ b/releasenotes/notes/cleanup-image_cache-opts-ebecdd4a18769dd3.yaml @@ -0,0 +1,9 @@ +--- +upgrade: + - | + The following parameters have been removed from + the ``nova::compute::libvirt`` class. + + - ``remove_unused_base_images`` + - ``remove_unused_original_minimum_age_seconds`` + - ``remove_unused_resize_minimum_age_seconds``