Use FQDN for MGMT network in kickstart

With the introduction of FQDN for MGMT network feature, the DNS lookup
of 'controller' resolves to 'controller.internal'.
The kickstart script uses the DNS lookup of controller to determine
whether the system is using a IPv6 or IPv4 which results in a string
instead of IP address or 0 return code. This causes a problem in
installing nodes in IPv4 when the management interface is configured
over vlan.

The fix is to use the FQDN controller.internal.

Test plan:
PASS: Install IPv4 AIO-DX with mgmt vlan
PASS: Install IPv6 AIO-DX with mgmt vlan

Story: 2010722
Task: 48682
Closes-Bug: 2042953

Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
Change-Id: I5377587c8bc8c62a62f03123cabef7366df3dd94
This commit is contained in:
Teresa Ho 2023-11-08 10:31:13 -05:00
parent 79d8644b1e
commit e616a4495d
1 changed files with 1 additions and 1 deletions

View File

@ -2610,7 +2610,7 @@ else # vlan
ilog "Configuring vlan: mgmt_iface=vlan$mgmt_vlan"
# Check whether to use inet or inet6
ipv6_addr=$(dig +short AAAA controller)
ipv6_addr=$(dig +short AAAA controller.internal)
if [[ -n "$ipv6_addr" ]]
then
mgmt_address_family=inet6