Menu

#4739 [fvt]2.10:still have debug info in ubuntu compute node's xcat log without xcatdebugmode set

2.10
closed
yangsong
None
ubuntu
5
2015-07-15
2015-07-10
junxiaw
No

1.download the latest build
2. install xcat
3.nodeset node osimage
rpower node boot
tabdump site |grep xcatdebuge
-------->not set here
From compute node:
cat
/var/log/xcat/xcat.log
+ case $1 in
+ return 0
+ pmatch 7.4.4, '8'
+ case $1 in
+ return 1
++ uname -s
+ '[' Linux = Linux ']'
+ pmatch ubuntu14.04.2 'fedora
'
+ case $1 in
+ return 1
+ pmatch ubuntu14.04.2 'rhels5'
+ case $1 in
+ return 1
+ pmatch ubuntu14.04.2 'rhel6
'
+ case $1 in
+ return 1
+ pmatch ubuntu14.04.2 'rhels6*'
+ case $1 in
-------------->should not have debug info here

Discussion

  • junxiaw

    junxiaw - 2015-07-10

    root@c910f04x27v08:~# cat /etc/*-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.04
    DISTRIB_CODENAME=trusty
    DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
    NAME="Ubuntu"
    VERSION="14.04.2 LTS, Trusty Tahr"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 14.04.2 LTS"
    VERSION_ID="14.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    root@c910f04x27v08:~#

     
  • junxiaw

    junxiaw - 2015-07-10
     
  • yangsong

    yangsong - 2015-07-13

    fixed in 2.10:
    commit 56478bf72ea826bc8238e99e247074ba62ea5f2b
    Author: immarvin yangsbj@cn.ibm.com
    Date: Fri Jul 10 05:34:09 2015 -0400
    modify msgutil to match msgutil_r

    commit 420aec57c36d8e8ccc54dd6aa61dd9186ae622aa
    Author: immarvin yangsbj@cn.ibm.com
    Date: Fri Jul 10 04:23:23 2015 -0400
    try various log method according to the different version of logger

    commit 4074b4f4e72c2b7b0d9466d563f10f506d6e4876
    Author: immarvin yangsbj@cn.ibm.com
    Date: Fri Jul 10 04:20:36 2015 -0400
    try various log method according to the different version of logger

     
  • yangsong

    yangsong - 2015-07-13
    • status: open --> pending
     
  • yangsong

    yangsong - 2015-07-15

    the fix is:

    --- a/xCAT-server/share/xcat/install/scripts/post.ubuntu
    +++ b/xCAT-server/share/xcat/install/scripts/post.ubuntu
    @@ -155,10 +155,15 @@ run_ps () {
      local logfile=\"/var/log/xcat/xcat.log\"
    
      if [ -f \$1 ]; then
    -  msgutil_r \"\$MASTER_IP\" \"info\" "\"\`date\` Running postscript: \$@\"" \"\$logfile\"
    -  bash -x ./\$@ 2>&1 | tee -a \$logfile
    -  ret_local=\${PIPESTATUS[0]}
    -  msgutil_r \"\$MASTER_IP\" \"info\" "\"\`date\` postscript \$@ return with \$ret_local\"" \"\$logfile\"
    +  msgutil_r \"\$MASTER_IP\" \"info\" "\"\`date\` Running postscript: \$*\"" \"\$logfile\"
    +  if [ \"\$XCATDEBUGMODE\" = \"1\" ]; then
    +     bash -x ./\$@ 2>&1 | tee -a \$logfile
    +     ret_local=\${PIPESTATUS[0]}
    +  else
    +     ./\$@ 2>&1 | tee -a \$logfile
    +     ret_local=\${PIPESTATUS[0]}
    +  fi
    +  msgutil_r \"\$MASTER_IP\" \"info\" "\"\`date\` postscript \$* return with \$ret_local\"" \"\$logfile\"
       if [ \"\$ret_local\" -ne \"0\" ]; then
          return_value=\$ret_local
       fi
    

    will be checkin after review

     
  • junxiaw

    junxiaw - 2015-07-15
    • status: pending --> closed