add testcase for sles statelite installation ppc64

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
amy0701 2012-12-20 08:02:06 +00:00
parent e08109fd0a
commit bde4f43d7b
2 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,83 @@
start:Linux_sles_statelite_installation_flat_ppc64
os:Linux
cmd:rm -rf /install/netboot
check:rc==0
cmd:if [ ! -d /install/custom/netboot/sles ]; then mkdir -p /install/custom/netboot/sles; fi
check:rc==0
cmd:if [ ! -e /install/custom/netboot/sles/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/sles/compute.synclist; fi
check:rc==0
cmd:tabrestore /opt/xcat/share/xcat/tools/autotest/testcase/installation/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 nfsserver restart
cmd:chtab node=$$CN 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:makedns -n
check:rc==0
cmd:service named restart
check:rc==0
cmd:makeconservercf $$CN
check:rc==0
cmd:sleep 60
cmd:getmacs $$CN -D
check:rc==0
cmd:makedhcp -n
check:rc==0
cmd:makedhcp -a
check:rc==0
cmd:service dhcpd restart
check:rc==0
cmd:copycds $$ISO
check:rc==0
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ synclists=/install/custom/netboot/sles/compute.synclist
check:rc==0
cmd:genimage -n $$NETDRIVER __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__
check:rc==0
cmd:liteimg __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__
check:rc==0
cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__
check:rc==0
cmd:rnetboot $$CN
check:rc==0
cmd:sleep 400
cmd:lsdef -l $$CN | grep status
check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ rootfstype=ramdisk
check:rc==0
cmd:liteimg __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__
check:rc==0
cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__
check:rc==0
cmd:rnetboot $$CN
check:rc==0
cmd:sleep 400
cmd:lsdef -l $$CN | grep status
check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:nodeset $$CN osimage
check:rc==0
cmd:rnetboot $$CN
check:rc==0
cmd:sleep 400
cmd:lsdef -l $$CN | grep status
check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
end

View File

@ -0,0 +1,15 @@
#image,file,options,comments,disable
"ALL","/etc/lvm/","tmpfs",,
"ALL","/etc/ntp.conf","tmpfs",,
"ALL","/etc/ntp.conf.org","tmpfs",,
"ALL","/etc/resolv.conf","tmpfs",,
"ALL","/etc/ssh/","tmpfs",,
"ALL","/etc/sysconfig/","tmpfs",,
"ALL","/etc/syslog-ng/","tmpfs",,
"ALL","/tmp/","tmpfs",,
"ALL","/var/","tmpfs",,
"ALL","/etc/yp.conf","tmpfs",,
"ALL","/etc/fstab","tmpfs",,
"ALL","/opt/xcat/","tmpfs",,
"ALL","/xcatpost/","tmpfs",,
"ALL","/root/.ssh/","tmpfs",,
1 #image file options comments disable
2 ALL /etc/lvm/ tmpfs
3 ALL /etc/ntp.conf tmpfs
4 ALL /etc/ntp.conf.org tmpfs
5 ALL /etc/resolv.conf tmpfs
6 ALL /etc/ssh/ tmpfs
7 ALL /etc/sysconfig/ tmpfs
8 ALL /etc/syslog-ng/ tmpfs
9 ALL /tmp/ tmpfs
10 ALL /var/ tmpfs
11 ALL /etc/yp.conf tmpfs
12 ALL /etc/fstab tmpfs
13 ALL /opt/xcat/ tmpfs
14 ALL /xcatpost/ tmpfs
15 ALL /root/.ssh/ tmpfs