2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-18 10:31:10 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/runcmdinstaller/cases0
2020-01-27 11:39:18 -05:00

61 lines
2.3 KiB
Plaintext

start:runcmdinstaller_h
description:runcmdinstaller -h
label:others,postscripts
cmd:runcmdinstaller -h
check:rc==0
check:output=~runcmdinstaller <node> <commands>
end
start:runcmdinstaller_command
description:runcmdinstaller
label:others,postscripts
cmd:if [ -x /usr/bin/goconserver ]; then makegocons $$CN; else makeconservercf $$CN; fi
check:rc==0
cmd:chtab key=xcatdebugmode site.value="2"
check:rc==0
cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
check:output=~Provision node\(s\)\: $$CN
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep installing >/dev/null`; do sleep 20; echo "[$a] " $(lsdef $$CN -i status -c); ((a++));if [ $a -gt 30 ];then break;fi done
cmd:lsdef -l $$CN | grep status
cmd:runcmdinstaller $$CN "ls /"
check:rc==0
check:output=~tmp
cmd:chtab key=xcatdebugmode site.value="0"
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
end
start:get_xcat_postscripts_loginfo
description:get xcat post scripts loginfo
label:others,postscripts
cmd:if [ -x /usr/bin/goconserver ]; then makegocons $$CN; else makeconservercf $$CN; fi
check:rc==0
cmd:chtab key=xcatdebugmode site.value="1"
check:rc==0
cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
check:output=~Provision node\(s\)\: $$CN
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 300 ];then break;fi done
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null | grep "Running post-installation scripts"
cmd:rc==0
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null | grep "program: ++"
cmd:rc==0
cmd:chtab key=xcatdebugmode site.value="0"
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
end
start:updatenode_postscripts_loginfo
description:get updatenode postsripts log info
label:others,postscripts
cmd:chtab key=xcatdebugmode site.value="1"
check:rc==0
cmd:chdef $$CN -p postscripts=setupntp
check:rc==0
cmd:updatenode $$CN -P setupntp
check:output=~$$CN: +
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null |grep "trying to download postscripts"
check:rc==0
cmd:chtab key=xcatdebugmode site.value="0"
cmd:chdef $$CN -m postscripts=setupntp
end