mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 10:40:24 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user