From 0be9d0a3c70001517bf2cf8535973bd77064ec96 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 17 Mar 2022 22:06:27 +0900 Subject: [PATCH] Deprecate old interface to define mdev types The mdev_types_device_addresses_mapping parameter is superseded by the mdev_types parameter. Change-Id: I714109bb2bc567a3b748c8528bfa8a40987ef9bb --- manifests/compute/mdev.pp | 4 ++++ ...mdev_types_device_addresses_mapping-ecad870d64b3355d.yaml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/deprecate-mdev_types_device_addresses_mapping-ecad870d64b3355d.yaml diff --git a/manifests/compute/mdev.pp b/manifests/compute/mdev.pp index 869cdedea..e97e3b441 100644 --- a/manifests/compute/mdev.pp +++ b/manifests/compute/mdev.pp @@ -8,6 +8,8 @@ # (Optional) A hash to define the nova::compute::mdev_type resources. # Defaults to {} # +# DEPRECATED PARAMETERS +# # [*mdev_types_device_addresses_mapping*] # (Optional) Map of mdev type(s) the instances can get as key and list of # corresponding device addresses as value. @@ -15,12 +17,14 @@ # class nova::compute::mdev( $mdev_types = {}, + # DEPRECATED PARAMETERS $mdev_types_device_addresses_mapping = undef, ) { include nova::deps validate_legacy(Hash, 'validate_hash', $mdev_types) if $mdev_types_device_addresses_mapping != undef { + warning('mdev_types_device_addresses_mapping is deprecated. Use mdev_types.') validate_legacy(Hash, 'validate_hash', $mdev_types_device_addresses_mapping) } diff --git a/releasenotes/notes/deprecate-mdev_types_device_addresses_mapping-ecad870d64b3355d.yaml b/releasenotes/notes/deprecate-mdev_types_device_addresses_mapping-ecad870d64b3355d.yaml new file mode 100644 index 000000000..fa7ac4b4c --- /dev/null +++ b/releasenotes/notes/deprecate-mdev_types_device_addresses_mapping-ecad870d64b3355d.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + The ``nova::compute::mdev::mdev_types_device_addresses_mapping`` parameter + has been deprecate in favor of the new ``mdev_types`` parameter.