metal/kickstart
Eric MacDonald c13f94e48b Debian: KS: Fix mgmt vlan support for system node installs
The kickstart is not quering system inventory for the
management vlan if the boot interface name lookup succeeds.

This update modifies the logic to perform the system inventory
vlan query for system node installs even if the boot interface
name lookup succeeds.

LAT does not support pxecontroller address translation in a
chroot environment and post chroot hooks are executed before
post nochroot hooks. Therefore, this update had to move the
entire interface setup kickstart segment to a nochroot hook.

Note: This change does not impact CentOS env.

Test Plan:

PASS: Verify Debian build and Install in vbox and RealHw
PASS: Verify platform.conf is updated with vlan<id> if system
      inventory mgmtvlan query returns a vlan id.
PASS: Verify interface.d interface setup files are correct
      for ipv4 with and without vlan.

Regression:

PASS: Verify system host-reinstall controller-1
PASS: Verify system host-swact controller-0
PASS: Verify system host-lock controller-0
PASS: Verify system host-reinstall controller-0
PASS: Verify system host-unlock controller-0
PASS: Verify platform.conf is updated with management interface
      name if system inventory mgmtvlan query returns nothing.

Depends-On: https://review.opendev.org/c/starlingx/tools/+/852029

Story: 2009968
Task: 45895
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
Change-Id: I24eb5d2b2bcc7d9852fda75a27ef9f07e3b75df4
2022-08-03 15:23:21 +00:00
..
centos relocate /www to /var/www 2021-12-10 16:41:42 -05:00
debian Add miniboot.cfg to enable subcloud add via USB install 2022-07-12 14:15:42 +00:00
files Debian: KS: Fix mgmt vlan support for system node installs 2022-08-03 15:23:21 +00:00
opensuse relocate /www to /var/www 2021-12-10 16:41:42 -05:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:43 -07:00