start:Linux_cn_with_sn_statelite_installation_flat_x86_64_redhat
os:Linux
cmd:makedns -n
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($$CN,os)__/x86_64/compute
check:rc==0
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,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 /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile.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 rhsn:/
check:rc==0
cmd:nodeset $$CNWITHSN osimage=__GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:rsetboot $$CNWITHSN net
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: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 -p compute -a __GETNODEATTR($$CNWITHSN,arch)__ -o  __GETNODEATTR($$CNWITHSN,os)__ -t ramdisk
check:rc==0
cmd:nodeset $$CNWITHSN osimage=__GETNODEATTR($$CNWITHSN,os)__-__GETNODEATTR($$CNWITHSN,arch)__-statelite-compute
check:rc==0
cmd:rsetboot $$CNWITHSN net
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:rsetboot $$CNWITHSN net
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

