From 6072e2d65a45a0633d64f6ec9d39ec19b7e066ad Mon Sep 17 00:00:00 2001 From: Kaifeng Wang Date: Mon, 6 Jan 2020 19:15:58 +0800 Subject: [PATCH] Remove lldp-timeout support The kernel parameter lldp-timeout was deprecated removed in this patch. Change-Id: I98da49e61d9ed3236cc495d1ab351eba0931473b --- ironic_python_agent/config.py | 3 +-- ironic_python_agent/utils.py | 7 ------- .../notes/remove-lldp-timeout-ea481dbb01a39522.yaml | 6 ++++++ 3 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 releasenotes/notes/remove-lldp-timeout-ea481dbb01a39522.yaml diff --git a/ironic_python_agent/config.py b/ironic_python_agent/config.py index 24d1f5681..27ebfaf83 100644 --- a/ironic_python_agent/config.py +++ b/ironic_python_agent/config.py @@ -139,8 +139,7 @@ cli_opts = [ 'kernel parameter.'), cfg.FloatOpt('lldp_timeout', - default=APARAMS.get('ipa-lldp-timeout', - APARAMS.get('lldp-timeout', 30.0)), + default=APARAMS.get('ipa-lldp-timeout', 30.0), help='The amount of seconds to wait for LLDP packets. ' 'Can be supplied as "ipa-lldp-timeout" ' 'kernel parameter.'), diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py index a897210ec..a8712a6a8 100644 --- a/ironic_python_agent/utils.py +++ b/ironic_python_agent/utils.py @@ -302,13 +302,6 @@ def get_agent_params(): # Cache the parameters so that it can be used later on. _set_cached_params(params) - # Check to see if any deprecated parameters have been used - deprecated_params = {'lldp-timeout': 'ipa-lldp-timeout'} - for old_param, new_param in deprecated_params.items(): - if params.get(old_param) is not None: - LOG.warning("The parameter '%s' has been deprecated. Please " - "use %s instead.", old_param, new_param) - return copy.deepcopy(params) diff --git a/releasenotes/notes/remove-lldp-timeout-ea481dbb01a39522.yaml b/releasenotes/notes/remove-lldp-timeout-ea481dbb01a39522.yaml new file mode 100644 index 000000000..032f8f570 --- /dev/null +++ b/releasenotes/notes/remove-lldp-timeout-ea481dbb01a39522.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + The kernel parameter ``lldp-timeout`` was deprecated during Newton + development cycle and removed, please use ``ipa-lldp-timeout`` + instead.