diff --git a/xCAT-test/autotest/testcase/installation/linux_statelite_installation b/xCAT-test/autotest/testcase/installation/linux_statelite_installation new file mode 100644 index 000000000..22af81ab9 --- /dev/null +++ b/xCAT-test/autotest/testcase/installation/linux_statelite_installation @@ -0,0 +1,55 @@ +start:Linux_statelite_installation_flat +os:Linux +cmd:rscan __GETNODEATTR($$CN,hcp)__ -w +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:genimage -i __GETNODEATTR($$CN,installnic)__ -n $$NETDRIVER -o __GETNODEATTR($$CN,os)__ -p 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=$$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:liteimg -p compute -a __GETNODEATTR($$CN,arch)__ -o __GETNODEATTR($$CN,os)__ +check:rc==0 +cmd:nodeset $$CN statelite +check:rc==0 +cmd:rnetboot $$CN +check:rc==0 +cmd:sleep 600 +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