add testcase for diskless installation with sn on x86_64 redhat

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
amy0701 2013-03-18 05:51:03 +00:00
parent 858a39687d
commit ba0f3429f7

View File

@ -0,0 +1,63 @@
start:linux_cn_with_sn_diskless_installation_flat_x86_64_redhat
os:Linux
cmd:makedns
check:rc==0
cmd:sleep 10
cmd:service named restart
check:rc==0
cmd:makeconservercf
check:rc==0
cmd:cat /etc/conserver.cf | grep $$CNWITHSN
check:output=~$$CNWITHSN
cmd:sleep 60
cmd:chdef $$CNWITHSN servicenode=$$SN xcatmaster=$$SN
check:rc==0
cmd:makedhcp -n
check:rc==0
cmd:makedhcp -a
check:rc==0
cmd:service dhcpd restart
check:rc==0
cmd:cat /var/lib/dhcpd/dhcpd.leases| grep $$CNWITHSN
check:output=~$$CNWITHSN
cmd:rm -rf /install/netboot/__GETNODEATTR($$CNWITHSN,os)__/x86_64/compute
check:rc==0
cmd:genimage __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-netboot-compute
check:rc==0
cmd:packimage -o __GETNODEATTR($$CNWITHSN,os)__ -p compute -a __GETNODEATTR($$CNWITHSN,arch)__
check:rc==0
cmd:xdsh $$SN df|grep /install;if [ $? -ne 0 ] ;then xdsh $$SN mount $$MN:/install /install;fi
check:rc==0
cmd:nodeset $$CNWITHSN osimage=__GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-netboot-compute
check:rc==0
cmd:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 200
cmd:lsdef -l $$CNWITHSN | grep status
check:output=~booted
cmd:xdsh $$CNWITHSN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:nodeset $$CNWITHSN osimage
check:rc==0
cmd:rsetboot $$CNWITHSN net
check:rc==0
cmd:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 200
cmd:lsdef -l $$CNWITHSN | grep status
check:output=~booted
cmd:xdsh $$CNWITHSN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:nodeset $$CNWITHSN netboot
check:rc==0
cmd:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 200
cmd:lsdef -l $$CNWITHSN | grep status
check:output=~booted
cmd:xdsh $$CNWITHSN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
end