From 9681fd712d6041f3b71c82d3145d0608bff9436e Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Sun, 10 Nov 2019 22:48:33 +0000 Subject: [PATCH] Bump up ipa-ip-lookup-attempts to 6 To accommodate network setup that takes longer then 30 seconds increase the number of IP lookup attempts. This allows for IPv6 setup that occurs after DHCP has time out. Change-Id: I1351e150a63c6247210ca0cbc8ce0abfe82129cd (cherry picked from commit c4bb6940825519dd62574f932ae3a01f49685e33) --- ironic_python_agent/config.py | 2 +- .../notes/bumpsipalookupattempts-29de7c949aaf6556.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bumpsipalookupattempts-29de7c949aaf6556.yaml diff --git a/ironic_python_agent/config.py b/ironic_python_agent/config.py index 2b65bcfea..9122fb750 100644 --- a/ironic_python_agent/config.py +++ b/ironic_python_agent/config.py @@ -69,7 +69,7 @@ cli_opts = [ cfg.IntOpt('ip_lookup_attempts', min=1, - default=int(APARAMS.get('ipa-ip-lookup-attempts', 3)), + default=int(APARAMS.get('ipa-ip-lookup-attempts', 6)), deprecated_name='ip-lookup-attempts', help='The number of times to try and automatically ' 'determine the agent IPv4 address. ' diff --git a/releasenotes/notes/bumpsipalookupattempts-29de7c949aaf6556.yaml b/releasenotes/notes/bumpsipalookupattempts-29de7c949aaf6556.yaml new file mode 100644 index 000000000..618b71464 --- /dev/null +++ b/releasenotes/notes/bumpsipalookupattempts-29de7c949aaf6556.yaml @@ -0,0 +1,5 @@ +--- +other: + - | + Bumps up ipa-ip-lookup-attempts to 6, adding extra time + for networking to be setup before giving up.