From efe618fae3e519fa9b2ef5f4b4bcb8ff8ad0e681 Mon Sep 17 00:00:00 2001 From: Mohammad Issa Date: Wed, 17 Jan 2024 21:15:41 +0000 Subject: [PATCH] IPv4 subcloud failure due to miniboot config systemd unable to bring up OAM bonded VLAN IF due to miniboot cfg. The autoconf and accept_ra sysctl parameters do not exist for IPv4. The accept_redirects does, but in normal operation we only set these for IPv6. Testing: - Build successful - Successfully bring up IPv4 System Controller & Subcloud - Verify that ifcfg- under interfaces.d shows that the sysctl parameters are set to ipv6 - Verify these tests using a miniboot installed IPv4 subcloud Closes-Bug: 2049683 Change-Id: Ib27f86f707796682a3db6641824f9fdbe2f53534 Signed-off-by: Mohammad Issa --- kickstart/files/miniboot.cfg | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kickstart/files/miniboot.cfg b/kickstart/files/miniboot.cfg index 974a7f02..7fdd2f14 100644 --- a/kickstart/files/miniboot.cfg +++ b/kickstart/files/miniboot.cfg @@ -2772,9 +2772,9 @@ function create_network_interface_file() output="${output} gateway $BOOTPARAM_GW\n" fi output="${output} mtu 1500\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/autoconf\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_ra\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_redirects\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/autoconf\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_ra\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_redirects\n" echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname}" else # CONFIGURE FOR VLAN @@ -2785,9 +2785,9 @@ function create_network_interface_file() # 1. Configure device interface: output="auto ${ifname}\n" output="${output}iface ${ifname} ${address_family} manual\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/autoconf\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_ra\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_redirects\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/autoconf\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_ra\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_redirects\n" echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname}" # 2. Configure VLAN interface: @@ -2799,9 +2799,9 @@ function create_network_interface_file() output="${output} gateway ${BOOTPARAM_GW}\n" fi output="${output} mtu 1500\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/autoconf\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/accept_ra\n" - output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/accept_redirects\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/autoconf\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/accept_ra\n" + output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/accept_redirects\n" echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname_vlan}" fi }