From d5e706ec438dd1ba72a5319ef30f7ed7886c6349 Mon Sep 17 00:00:00 2001 From: "litingt@cn.ibm.com" Date: Fri, 21 Apr 2017 00:21:05 -0400 Subject: [PATCH] This case is to verify bug 2614. To support addkcmdline when netboot=xnba --- xCAT-test/autotest/testcase/nodeset/cases0 | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/xCAT-test/autotest/testcase/nodeset/cases0 b/xCAT-test/autotest/testcase/nodeset/cases0 index 3f81504ec..792ecbff2 100644 --- a/xCAT-test/autotest/testcase/nodeset/cases0 +++ b/xCAT-test/autotest/testcase/nodeset/cases0 @@ -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 +