Menu

#4002 configib replaces sysctl.conf

2.8.4
closed
linux provisioning
8
2014-05-23
2014-02-27
Arif Ali
No

Hi team,

This is now affecting 3 of our new clusters that we are currently building, and would affect any new clusters with xCAT 2.8.3

When the configib script is run, it replaces the /etc/sysctl.conf file rather than appending to it.

The following patch fixes the problem

diff --git a/xCAT/postscripts/configib b/xCAT/postscripts/configib
index f9bdda4..da72155 100755
--- a/xCAT/postscripts/configib
+++ b/xCAT/postscripts/configib
@@ -286,9 +286,9 @@ do

            if [ -f /etc/sysctl.conf ]
            then
-               TMP1=`sed "/net.ipv4.conf.$nic.arp_filter=1/d" /etc/sysctl.conf 2>&1 1>/dev/null`
+               TMP1=`sed "/net.ipv4.conf.$nic.arp_filter=1/d" /etc/sysctl.conf`
               echo "$TMP1" > /etc/sysctl.conf
-               TMP2=`sed "/net.ipv4.conf.$nic.arp_ignore=1/d" /etc/sysctl.conf 2>&1 1>/dev/null`
+               TMP2=`sed "/net.ipv4.conf.$nic.arp_ignore=1/d" /etc/sysctl.conf`
               echo "$TMP2" > /etc/sysctl.conf
                cfg="net.ipv4.conf.$nic.arp_filter=1"
                grep "$cfg" /etc/sysctl.conf 2>&1 1>/dev/null

Discussion

  • Lissa Valletta

    Lissa Valletta - 2014-02-27
    • assigned_to: Guang Cheng Li
     
  • Lissa Valletta

    Lissa Valletta - 2014-02-27

    Guang Cheng could you assign this to someone and get into 2.8.4?

     
  • Guang Cheng Li

    Guang Cheng Li - 2014-02-28
    • status: open --> pending
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-02-28

    This is a straightforward fix, I put the fix into 2.8.4 and 2.9.

    2.8.4:commit a4f87fbb69ac9b44e8f80e43d7aa59e926e20a4f
    2.9:commit c464e3c1d6f541aabe3979efad11dd0794feeaaf

     
  • Arif Ali

    Arif Ali - 2014-02-28

    any ideas on a release date for 2.8.4?

     
  • Guang Cheng Li

    Guang Cheng Li - 2014-02-28

    The current target of 2.8.4 is sometime in June, but it may change slightly.

     
  • Arif Ali

    Arif Ali - 2014-05-23
    • status: pending --> closed