Fix management interface installation errors when using VLAN
Summaryβ
CubeCOS installation failure occurs on hosts utilizing bonded network interfaces with VLAN tagging.
Detailsβ
Issues descriptionβ
During CubeCOS installation, configuring a VLAN on the management interface may fail with the following error message:
Policy changes could not be applied. No changes have been made to the system.
Unexpected error.
This issue occurs due to a parsing logic error in the CubeCOS installation script. As a result, installation fails on hosts that use bonded network interfaces with VLAN tagging.
Applicable versionsβ
CubeCOS 3.0.0
This article applies to environments running CubeCOS version 3.0.0.
Resolutionβ
A manual patch has to be applied before CubeCOS installation to allow for CubeCOS hosts to utilize bonded network interfaces with VLAN tagging.
-
Restore CubeCOS to the physical host.
-
Log in as
rootto the CubeCOS host via a physical or virtual console. -
Update the SDK health utility functions
-
Edit the following file
vim /usr/lib/hex_sdk/proj_functions -
Locate the
shared_ip()andmgmt_ip()functions and replace them with the updated logic shown below.shared_ip(){source hex_tuning /etc/settings.txt cubesys.control.viplocal vip=$T_cubesys_control_vipif [[ "$vip" == "" ]] ; thensource hex_tuning /etc/settings.txt cubesys.controller.ipvip=$T_cubesys_controller_vipfiif [[ "$vip" == "" ]] ; thensource hex_tuning /etc/settings.txt cubesys.managementlocal mgmt_if=$T_cubesys_managementsource hex_tuning /etc/settings.txt "net.if.addr.$mgmt_if"- local mgmt_ip_key="T_net_if_addr_${mgmt_if}"+ local mgmt_ip_key="T_net_if_addr_${mgmt_if/./_}"vip=${!mgmt_ip_key}fiecho -n "$vip"}mgmt_ip(){source hex_tuning /etc/settings.txt cubesys.managementlocal mgmt_if=$T_cubesys_managementsource hex_tuning /etc/settings.txt "net.if.addr.$mgmt_if"- local mgmt_ip_key="T_net_if_addr_${mgmt_if}"+ local mgmt_ip_key="T_net_if_addr_${mgmt_if/./_}"echo -n "${!mgmt_ip_key}"}
-
-
Exit the
rootshell session. After saving the file, no service restart is required. Exit the root shell session. -
Continue the installation Proceed with the wizard-based CubeCOS installation process.
This patch ensures that management names containing VLAN notation (e.g. bond0.100) are prased correctly during installation.
Additional informationβ
Related change: source code