mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Added post installation checking for host key warnings to testcases
This commit is contained in:
parent
7ba798192a
commit
eafe50964e
@ -74,6 +74,9 @@ check:output=~64 bytes from $$CN
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "cat /test.synclist"
|
||||
check:rc==0
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
# Check node can be rebooted from disk
|
||||
cmd:xdsh $$CN shutdown -r now
|
||||
cmd:sleep 300
|
||||
|
@ -107,6 +107,10 @@ check:rc==0
|
||||
cmd:sitetz=`lsdef -t site -i timezone | awk -F= '{print $2}'`;nodetz=`xdsh $$CN "timedatectl | grep 'Time zone'" | awk -F: '{print $3}' | awk '{print $1}'`; test $sitetz = $nodetz
|
||||
check:rc==0
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
# Check node can be rebooted from disk
|
||||
cmd:xdsh $$CN shutdown -r now
|
||||
|
||||
|
@ -204,6 +204,11 @@ check:rc==0
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "cat /test.synclist"
|
||||
check:rc==0
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
|
||||
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=
|
||||
|
@ -223,4 +223,8 @@ check:rc==0
|
||||
cmd:sitetz=`lsdef -t site -i timezone | awk -F= '{print $2}'`;nodetz=`xdsh $$CN "timedatectl | grep 'Time zone'" | awk -F: '{print $3}' | awk '{print $1}'`; test $sitetz = $nodetz
|
||||
check:rc==0
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
end
|
||||
|
@ -120,6 +120,11 @@ cmd:ping $$CN -c 3
|
||||
check:rc==0
|
||||
check:output=~64 bytes from $$CN
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
cmd:rm -rf /tmp/image;mkdir /tmp/image
|
||||
check:rc==0
|
||||
cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute /tmp/image/image.tgz
|
||||
|
@ -106,6 +106,11 @@ check:output=~$$CN: $$CN
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc!=0
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
|
||||
cmd:output=$(xdsh $$CN ls -al / |grep test.statelite);if [[ $? -eq 0 ]];then xdsh $$CN rm -rf /test.tatelite;fi
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then rm -rf $rootimgdir;fi
|
||||
|
@ -97,6 +97,11 @@ cmd:xdsh $$CN hostname
|
||||
check:rc==0
|
||||
check:output=~$$CN: $$CN
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
|
||||
# Check there are no load host key warnings
|
||||
cmd:xdsh $$CN "grep 'load host key' /var/log/xcat/xcat.log || echo 'No load hostkey warning' >&2"
|
||||
check:output=~No load hostkey warning
|
||||
|
||||
cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconservercf -d $$CN; fi
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
|
||||
check:rc==0
|
||||
|
Loading…
x
Reference in New Issue
Block a user