From 016c9e853094ce7a982d00e0877c659e56d7a484 Mon Sep 17 00:00:00 2001 From: junxiawang Date: Fri, 21 Apr 2017 16:22:25 +0800 Subject: [PATCH] =?UTF-8?q?For=20issue=20xCAT=20Object=20Name=20Format=20e?= =?UTF-8?q?rror=20when=20trying=20to=20name=20osimages=20=E2=80=A6=20(#290?= =?UTF-8?q?2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * For issue xCAT Object Name Format error when trying to name osimages starting with rhels7.3 #2157 * For issue xCAT Object Name Format error when trying to name osimages starting with rhels7.3 #2157 * For issue xCAT Object Name Format error when trying to name osimages starting with rhels7.3 #2157 * For issue xCAT Object Name Format error when trying to name osimages starting with rhels7.3 #2157 * For issue xCAT Object Name Format error when trying to name osimages starting with rhels7.3 #2157 --- xCAT-test/autotest/testcase/mkdef/cases0 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/xCAT-test/autotest/testcase/mkdef/cases0 b/xCAT-test/autotest/testcase/mkdef/cases0 index 9595e6e22..38bfacf91 100644 --- a/xCAT-test/autotest/testcase/mkdef/cases0 +++ b/xCAT-test/autotest/testcase/mkdef/cases0 @@ -324,3 +324,26 @@ check:output=~__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-comput cmd:rmdef -t osimage -o test-osimage_with_template check:rc==0 end +start:mkdef_rhels73 +os:linux +description:create rhels7.3 osimage +cmd:mkdef -t osimage -o rhels7.3-test-osimage --template __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute +check:rc==0 +output=~1 object definitions have been created or modified +cmd:rmdef -t osimage -o rhels7.3-test-osimage +check:rc==0 +cmd:lsdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute -z > /tmp/osiamge.stanza +check:rc==0 +cmd:cat /tmp/osiamge.stanza |sed 's/__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute:/rhels7.3-test:/g' >/tmp/osiamge.stanza1 +check:rc==0 +cmd:cat /tmp/osiamge.stanza1|mkdef -z +check:rc==0 +cmd:rm -rf /tmp/osiamge.stanza;rm -rf /tmp/osiamge.stanza1 +check:rc==0 +cmd:lsdef -t osimage -o rhels7.3-test |grep "Object name: rhels7.3-test" +check:rc==0 +cmd:lsdef -t osimage -o rhels7.3-test |grep pkgdir= +check:rc==0 +cmd:rmdef -t osimage -o rhels7.3-test +check:rc==0 +end