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:
parent
e08109fd0a
commit
bde4f43d7b
@ -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
|
15
xCAT-test/autotest/testcase/installation/litefile_sles.csv
Normal file
15
xCAT-test/autotest/testcase/installation/litefile_sles.csv
Normal 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",,
|
|
Loading…
Reference in New Issue
Block a user