2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

For issue xCAT Object Name Format error when trying to name osimages … (#2902)

* 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
This commit is contained in:
junxiawang
2017-04-21 16:22:25 +08:00
committed by yangsong
parent 6d98457f66
commit 016c9e8530

View File

@@ -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