mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-29 02:15:34 +00:00 
			
		
		
		
	Merge pull request #5090 from bybai/kdtest
fix linux_diskless_kdump failure
This commit is contained in:
		| @@ -47,7 +47,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -50,7 +50,7 @@ cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-ne | ||||
| check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep failed >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -53,7 +53,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:xdsh $$SN "if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi" | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -59,7 +59,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
| @@ -97,7 +97,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -79,7 +79,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:xdsh $$SN "if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi" | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -73,7 +73,7 @@ check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:xdsh $$SN "if [[ -f /var/lib/dhcp/db/dhcpd.leases ]]; then cat /var/lib/dhcp/db/dhcpd.leases; elif [[ -f /var/lib/dhcpd/dhcpd.leases ]];then cat /var/lib/dhcpd/dhcpd.leases;elif [[ -f /var/lib/dhcp/dhcpd.leases ]];then cat /var/lib/dhcp/dhcpd.leases; fi" | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
|   | ||||
| @@ -35,7 +35,8 @@ check:rc==0 | ||||
|  | ||||
| cmd:if [ ! -d /kdumpdir ]; then mkdir -p /kdumpdir && chmod 777 /kdumpdir; fi | ||||
| cmd:if [ ! -f /etc/exports ] ;then touch /etc/exports;else cp /etc/exports /etc/exports.bak;fi | ||||
| cmd:echo -e "/kdumpdir *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports && exportfs /etc/exports  fi; | ||||
| cmd:cat /etc/exports|grep kdumpdir; if [ "$?" -ne "0" ]; then echo "/kdumpdir *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi | ||||
| cmd:cd /etc; export exports;cd -;service nfs restart | ||||
| cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute dump=nfs://$$MN/kdumpdir | ||||
| check:rc==0 | ||||
|  | ||||
| @@ -55,7 +56,7 @@ cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-ne | ||||
| check:rc==0 | ||||
| check:output=~Provision node\(s\)\: $$CN | ||||
|  | ||||
| cmd:sleep 900 | ||||
| cmd:sleep 300 | ||||
| cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done | ||||
|  | ||||
| cmd:ping $$CN -c 3 | ||||
| @@ -68,9 +69,8 @@ cmd:xdsh $$CN date | ||||
| check:rc==0 | ||||
| check:output=~\d\d:\d\d:\d\d | ||||
|  | ||||
| cmd:xdsh $$CN "echo 1 > /proc/sys/kernel/sysrq" | ||||
| cmd:xdsh $$CN "echo c > /proc/sysrq-trigger" | ||||
| cmd:sleep 600 | ||||
| cmd:xdsh $$CN "setsid 'echo 1 > /proc/sys/kernel/sysrq; echo c > /proc/sysrq-trigger'" | ||||
| cmd:sleep 300 | ||||
|  | ||||
| cmd:vmcorefile=`find /kdumpdir/ -name vmcore`;if [[ -s $vmcorefile ]]; then echo "this file is not empty";else echo "this file is empty"; fi | ||||
| check:output=~not empty | ||||
|   | ||||
		Reference in New Issue
	
	Block a user