mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
Merge pull request #2896 from tingtli/bug2614
Add test case for issue 2614 : nodeset does not support addkcmdline when netboot=xnba
This commit is contained in:
@ -173,3 +173,27 @@ check:output=~Warning: testnode1: petitboot might be invalid|testnode1 could not
|
||||
cmd:noderm testnode1
|
||||
end
|
||||
|
||||
start:nodeset_addkcmdline
|
||||
description: This case is to verify when netboot=xnba, addkcmdline is correctly supported.
|
||||
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.xcattestbak
|
||||
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.xcattestbak /etc/hosts
|
||||
end
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
start:nodeset_addkcmdline
|
||||
cmd:chdef $$CN addkcmdline=debug
|
||||
check:rc==0
|
||||
cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
|
||||
check:rc==0
|
||||
cmd:find -L /tftpboot -name '*$$CN*' -exec cat {} + | grep debug
|
||||
check:rc==0
|
||||
cmd:chdef $$CN addkcmdline=
|
||||
end
|
Reference in New Issue
Block a user