Fix IPv6 resolution during Upgrade
During an upgrade the controller.internal may not be defined because the active controller is running an old release, so the IPv6 DNS resolution fails even if the scenario is IPv6. An additional IPv6 DNS resolution to controller is necessary to cover the upgrade scenario. Tests done: IPv6 AIO-SX fresh install IPv6 AIO-DX fresh install IPv4 AIO-DX upgrade from previous release without story 2010722 to new release that has the story 2010722 (not master) IPv4 STANDARD upgrade from previous release without story 2010722 to new release that has the story 2010722 (not master) IPv6 AIO-DX upgrade from previous release without story 2010722 to new release that has the story 2010722 (not master) IPv6 DC lab upgrade from previous release without story 2010722 to new release that has the story 2010722 (not master) Story: 2010722 Task: 49644 Depends-On: https://review.opendev.org/c/starlingx/config/+/909866 Change-Id: Ic4acc7432f351a65ba951d8ba8790b0ab90e32bc Signed-off-by: Fabiano Correa Mercer <fabiano.correamercer@windriver.com>
This commit is contained in:
parent
880df77a25
commit
c6c308e982
@ -2720,6 +2720,14 @@ else # vlan
|
||||
|
||||
# Check whether to use inet or inet6
|
||||
ipv6_addr=$(dig +short AAAA controller.internal)
|
||||
|
||||
if [[ -z "${ipv6_addr}" ]]
|
||||
then
|
||||
# during an upgrade the controller.internal may not be defined
|
||||
# but the scenario could be IPv6. So try to resolve the controller
|
||||
ipv6_addr=$(dig +short AAAA controller)
|
||||
fi
|
||||
|
||||
if [[ -n "${ipv6_addr}" ]]
|
||||
then
|
||||
boot_address_family=inet6
|
||||
|
Loading…
x
Reference in New Issue
Block a user