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