From 923daaa8badcb7b77ca5fc27bb071d5afaf52cae Mon Sep 17 00:00:00 2001 From: baiyuan Date: Mon, 4 Nov 2013 03:02:31 -0500 Subject: [PATCH] add testcase for cn installation with sn in x86_64 sles vm with kvm --- ...th_sn_diskless_installation_x86_64_sles_vm | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 xCAT-test/autotest/testcase/installation/linux_cn_with_sn_diskless_installation_x86_64_sles_vm diff --git a/xCAT-test/autotest/testcase/installation/linux_cn_with_sn_diskless_installation_x86_64_sles_vm b/xCAT-test/autotest/testcase/installation/linux_cn_with_sn_diskless_installation_x86_64_sles_vm new file mode 100644 index 000000000..b4d4bd1fc --- /dev/null +++ b/xCAT-test/autotest/testcase/installation/linux_cn_with_sn_diskless_installation_x86_64_sles_vm @@ -0,0 +1,50 @@ +start:Linux_cn_with_sn_diskless_installation_flat_x86_sles_vm +os:Linux +cmd:makedns +check:rc==0 +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 __GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-netboot-compute +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 300 +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 300 +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