mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 03:00:26 +00:00
modify installation testcases for issue:2834
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
start:SN_setup_case
|
||||
os:Linux
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
|
||||
cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__
|
||||
check:rc==0
|
||||
@@ -22,7 +30,8 @@ cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$SN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$SN;fi
|
||||
check:output=~$$SN
|
||||
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
check:rc==0
|
||||
cmd:chdef -t group -o service profile=service primarynic=mac installnic=mac
|
||||
|
@@ -1,6 +1,13 @@
|
||||
start:reg_linux_diskfull_installation_flat
|
||||
os:Linux
|
||||
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
|
||||
cmd:MINIISO=NUll;if [[ "__GETNODEATTR($$CN,os)__" =~ "ubuntu" ]] && [[ "__GETNODEATTR($$CN,arch)__" =~ "ppc64le" ]];then mkdir /tmp/iso; mount -o loop $$MINIISO /tmp/iso ; mkdir -p /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/install/netboot; cp /tmp/iso/install/initrd.gz /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/install/netboot;umount /tmp/iso; rmdir /tmp/iso; fi
|
||||
check:rc==0
|
||||
@@ -29,6 +36,8 @@ check:rc==0
|
||||
cmd:sleep 10
|
||||
cmd:a=0;while true; do [ $a -eq 100 ] && exit 1;output=$(makedhcp -q $$CN);[ $? -ne 0 ] && exit 1;echo $output|grep $$CN 2>/dev/null && exit 0;a=$[$a+1];sleep 1;done
|
||||
check:rc==0
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
cmd:if [[ -f /tmp/test.synclist ]] ;then mv /tmp/test.synclist /tmp/test.synclist.bak;fi;
|
||||
|
@@ -1,6 +1,13 @@
|
||||
start:reg_linux_diskfull_installation_hierarchy
|
||||
os:Linux
|
||||
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
@@ -24,6 +31,9 @@ cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:a=0;while true; do [ $a -eq 100 ] && exit 1;output=$(makedhcp -q $$CN);[ $? -ne 0 ] && exit 1;echo $output|grep $$CN 2>/dev/null && exit 0;a=$[$a+1];sleep 1;done
|
||||
check:rc==0
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
cmd:if [[ -f /tmp/test.synclist ]] ;then mv /tmp/test.synclist /tmp/test.synclist.bak;fi;
|
||||
|
@@ -1,6 +1,13 @@
|
||||
start:reg_linux_diskless_installation_flat
|
||||
os:Linux
|
||||
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN
|
||||
check:rc==0
|
||||
|
||||
@@ -19,7 +26,8 @@ cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:a=0;while true; do [ $a -eq 100 ] && exit 1;output=$(makedhcp -q $$CN);[ $? -ne 0 ] && exit 1;echo $output|grep $$CN 2>/dev/null && exit 0;a=$[$a+1];sleep 1;done
|
||||
check:rc==0
|
||||
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
|
||||
|
@@ -1,6 +1,13 @@
|
||||
start:reg_linux_diskless_installation_hierarchy
|
||||
os:Linux
|
||||
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
@@ -23,6 +30,8 @@ cmd:service dhcpd restart
|
||||
check:rc==0
|
||||
cmd:a=0;while true; do [ $a -eq 100 ] && exit 1;output=$(makedhcp -q $$CN);[ $? -ne 0 ] && exit 1;echo $output|grep $$CN 2>/dev/null && exit 0;a=$[$a+1];sleep 1;done
|
||||
check:rc==0
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
|
@@ -1,5 +1,13 @@
|
||||
start:reg_linux_statelite_installation_flat
|
||||
os:Linux
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
|
||||
cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN
|
||||
check:rc==0
|
||||
@@ -15,6 +23,8 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
@@ -79,6 +89,13 @@ check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~compute/rootimg on / type nfs
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN cat /test.statelite
|
||||
check:rc==0
|
||||
check:output=~test
|
||||
cmd:xdsh $$CN rm -rf /test.statelite
|
||||
check:rc==0
|
||||
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
|
||||
check:rc==0
|
||||
|
||||
@@ -115,6 +132,13 @@ cmd:ping $$CN -c 3
|
||||
check:rc==0
|
||||
check:output=~64 bytes from $$CN
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN cat /test.statelite
|
||||
check:rc==0
|
||||
check:output=~test
|
||||
cmd:xdsh $$CN rm -rf /test.statelite
|
||||
check:rc==0
|
||||
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
|
||||
|
@@ -1,5 +1,13 @@
|
||||
start:reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
os:Linux
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
@@ -17,6 +25,8 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
@@ -87,6 +97,13 @@ check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~compute/rootimg on / type nfs
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN cat /test.statelite
|
||||
check:rc==0
|
||||
check:output=~test
|
||||
cmd:xdsh $$CN rm -rf /test.statelite
|
||||
check:rc==0
|
||||
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
|
||||
check:rc==0
|
||||
end
|
||||
|
@@ -1,6 +1,13 @@
|
||||
start:reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
os:Linux
|
||||
|
||||
cmd:df
|
||||
check:rc==0
|
||||
cmd:fdisk -l
|
||||
check:rc==0
|
||||
cmd:cat /proc/meminfo
|
||||
check:rc==0
|
||||
cmd:cat /proc/cpuinfo
|
||||
check:rc==0
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
@@ -17,7 +24,8 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
|
||||
cmd:if cat /var/lib/*/dhcpd.leases ;then exit 0 ;else cat /var/lib/*/*/dhcpd.leases;fi
|
||||
check:rc==0
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
cmd:xdsh $$SN df|grep /install;if [ $? -eq 0 ] ;then xdsh $$SN umount /install;fi
|
||||
@@ -90,6 +98,13 @@ check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~rootfs on / type
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN cat /test.statelite
|
||||
check:rc==0
|
||||
check:output=~test
|
||||
cmd:xdsh $$CN rm -rf /test.statelite
|
||||
check:rc==0
|
||||
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
|
||||
end
|
||||
|
Reference in New Issue
Block a user