2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

This case is to verify bug 2614. To support addkcmdline when netboot=xnba

This commit is contained in:
litingt@cn.ibm.com
2017-04-21 00:21:05 -04:00
parent a271505a38
commit d5e706ec43

View File

@ -173,3 +173,27 @@ check:output=~Warning: testnode1: petitboot might be invalid|testnode1 could not
cmd:noderm testnode1
end
start:nodeset_addkcmdline_bug2614
description: This case is to verify bug 2614. To support addkcmdline when netboot=xnba.
cmd:mkdef -t node -o testnode1 arch=x86_64 cons=kvm groups=kvm ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=kvm monserver=10.1.1.1 nameservers=10.1.1.1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
os=__GETNODEATTR($$CN,os)__
check:rc==0
cmd:cp -f /etc/hosts /etc/hosts.bak
cmd:echo "10.1.1.200 testnode1" >> /etc/hosts
cmd:makedns -n
check:rc==0
cmd:chdef testnode1 netboot=xnba addkcmdline=rd.break=pre-pivot
check:rc==0
cmd: mkdef "__GETNODEATTR($$CN,os)__-x86_64-install-compute" -u profile=compute provmethod=install osvers=__GETNODEATTR($$CN,os)__
check:rc==0
cmd:nodeset testnode1 osimage=__GETNODEATTR($$CN,os)__-x86_64-install-compute
check:rc==0
cmd:grep "rd.break=pre-pivot" /tftpboot/xcat/xnba/nodes/testnode1
check:rc==0
cmd:grep "rd.break=pre-pivot" /tftpboot/xcat/xnba/nodes/testnode1.elilo
check:rc==0
cmd:noderm testnode1
cmd:rmdef -t osimage -o "__GETNODEATTR($$CN,os)__-x86_64-install-compute"
cmd:cp -f /etc/hosts.bak /etc/hosts
end