add testcase for cn installatiion with sn in x86_64 sles vm with kvm

This commit is contained in:
baiyuan 2013-11-04 03:09:54 -05:00
parent 923daaa8ba
commit b92312d0d2

View File

@ -0,0 +1,88 @@
start:Linux_cn_with_sn_statelite_installation_flat_x86_sels_vm
os:Linux
cmd:makedns
check:rc==0
cmd:service named restart
check:rc==0
cmd:makeconservercf $$CNWITHSN
check:rc==0
cmd:sleep 90
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:rm -rf /install/netboot/__GETNODEATTR($$CNWITHSN,os)__/x86_64/compute
check:rc==0
cmd:chdef -t osimage -o __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute rootfstype=
check:rc==0
cmd:genimage __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:tabrestore /autotest/litefile_sles.csv
check:rc==0
cmd:tabdump litefile
check:rc==0
cmd:mkdir -p /nodedata
cmd:chmod 755 /etc/exports
cmd:cat /etc/exports|grep nodedata; if [ "$?" -ne "0" ]; then echo "/nodedata *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi
check:rc==0
cmd:cd /etc; export exports;cd -
check:rc==0
cmd:service nfs restart
cmd:chtab node=$$CNWITHSN statelite.statemnt="$$MN:/nodedata"
check:rc==0
cmd:chtab priority=4.7 policy.commands=litefile policy.rule=allow
check:rc==0
cmd:chtab priority=4.8 policy.commands=litetree policy.rule=allow
check:rc==0
cmd:liteimg -p compute -a __GETNODEATTR($$CNWITHSN,arch)__ -o __GETNODEATTR($$CNWITHSN,os)__
check:rc==0
cmd:xdsh $$SN df|grep /install;if [ $? -eq 0 ] ;then xdsh $$SN umount /install;fi
check:rc==0
cmd:prsync /install $$SN:/
check:rc==0
cmd:nodeset $$CNWITHSN osimage=__GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 240
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:xdsh $$SN df|grep /install;if [ $? -ne 0 ] ;then xdsh $$SN mount $$MN:/install /install;fi
check:rc==0
cmd:chdef -t osimage -o __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute rootfstype=ramdisk
check:rc==0
cmd:genimage __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:liteimg __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:nodeset $$CNWITHSN osimage=__GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 250
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:rpower $$CNWITHSN reset
check:rc==0
cmd:sleep 250
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