2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

add more debug information to investigate why operate goconserver frequently will trigger problem

This commit is contained in:
huweihua 2019-03-31 22:28:06 -04:00
parent 530b6c94d1
commit 8cce4d9078
3 changed files with 21 additions and 2 deletions

View File

@ -37,15 +37,24 @@ cmd:cp /xcat-dep*.tar.bz2 /install_xCAT_xcat-dep.tar.bz2
check:rc==0
cmd:ls /go-xcat
check:rc==0
cmd:service goconserver status
cmd:service conserver status
cmd:chmod 777 /go-xcat; /go-xcat --xcat-core=/install_xCAT_xcat-core.tar.bz2 --xcat-dep=/install_xCAT_xcat-dep.tar.bz2 -y install;
check:rc==0
cmd:source "/etc/profile.d/xcat.sh";env;lsxcatd -v
check:rc==0
check:output=~Version
cmd:service goconserver status
cmd:service conserver status
cmd:service xcatd status
check:rc==0
check:output=~running
cmd:rm -rf /install_xCAT_xcat-core.tar.bz2 /install_xCAT_xcat-dep.tar.bz2
cmd:service goconserver stop
cmd:service conserver stop
cmd:sleep 5
cmd:service goconserver status
cmd:service conserver status
end

View File

@ -11,9 +11,13 @@ check:rc==0
cmd:makedns -n
check:rc==0
cmd:service goconserver status
cmd:service conserver status
cmd:if [ -x /usr/bin/goconserver ]; then makegocons $$CN; else makeconservercf $$CN; fi
check:rc==0
cmd:sleep 20
cmd:service goconserver status
cmd:service conserver status
cmd:if [[ "__GETNODEATTR($$CN,arch)__" = "ppc64" ]] && [[ "__GETNODEATTR($$CN,mgt)__" != "ipmi" ]]; then getmacs -D $$CN; fi
check:rc==0
cmd:makedhcp -n
@ -76,7 +80,11 @@ check:rc==0
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
cmd:xdsh $$CN "cat /test.synclist"
check:rc==0
cmd:service goconserver status
cmd:service conserver status
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
cmd:service goconserver status
cmd:service conserver status
cmd:if [[ -f /test.synclist.bak ]] ;then mv -f /test.synclist.bak /test.synclist;else rm -rf /test.synclist;fi
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute synclists=
check:rc==0

View File

@ -99,6 +99,8 @@ description:To regenerate cretials
label:mn_only
#step1:backup: /etc/xcat/ca /etc/xcat/cert
cmd:cp -r /etc/xcat/ca /etc/xcat/cabak;cp -r /etc/xcat/cert /etc/xcat/certbak
cmd: service goconserver status
cmd:service conserver status
#step2:run command and check the output
cmd:xcatconfig -c 2>&1 | tee /tmp/xcatconfig.test
check:rc==0
@ -118,8 +120,8 @@ cmd:rm -rf /tmp/xcatconfig.test
check:rc==0
cmd:rm -rf /etc/xcat/cabak /etc/xcat/certbak
check:rc==0
cmd:if service goconserver status > /dev/null 2>&1; then service goconserver restart; fi
cmd:if service conserver status > /dev/null 2>&1; then service conserver restart ; fi
cmd:if service goconserver status; then echo "----->To restart goconserver"; service goconserver restart; sleep 10; echo "---------------------"; service goconserver status;echo "---------------------"; makegocons $$CN; fi
cmd:if service conserver status; then echo "---->To restart conserver"; service conserver restart;sleep 10;echo "---------------------"; service conserver status;echo "---------------------"; makeconservercf $$CN; fi
cmd:if lsdef service > /dev/null 2>&1; then updatenode service -P servicenode;fi
check:rc==0
cmd:if lsdef service > /dev/null 2>&1; then rpower $$CN stat;fi