2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-21 21:45:31 +00:00

Merge pull request #6196 from hu-weihua/gocons

Add more debug information to investigate why operating goconserver frequently will trigger problem
This commit is contained in:
Bin Xu
2019-04-03 17:02:54 +08:00
committed by GitHub
2 changed files with 37 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

@ -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,32 @@ 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:#!/bin/bash
rc=0
if service goconserver status;then
echo "----->goconserver is working, to restart goconserver and enforce conserver stop"
service goconserver restart
service conserver stop
sleep 5
echo "----->To check the status of goconserver"
if ! service goconserver status; then
rc=1
fi
echo "----->To check the status of conserver"
if service conserver status; then
rc=1
fi
elif service conserver status;then
echo "----->conserver is working, to restart conserver"
service conserver restart
sleep 5
echo "----->To check the status of conserver"
if ! service conserver status; then
rc=1
fi
fi
exit $rc
check:rc==0
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