Ask Your Question
0

Removing pre/post-fix in Heat resource names

asked 2016-11-10 08:27:40 -0500

devmitaka gravatar image

updated 2016-11-15 08:07:06 -0500

zaneb gravatar image

Hello all,

I have just installed Packstack on CenOS and it is working fine. I am deploying HOT templates which too are working fine. There is this odd thing though:

After running the template, Packstack add pre/post-fix string to the resource identities by itself. For example, the network name (ATLNetwork) as specified in the HOT is replaced with "FullStackExample-ATLNetwork-52lxadxb4bwt". Same is the case with other resources. How can I avoid these pre-postfixe strings such that Packstack ONLY assigns the name as specified in the template?

Moving towards automation, I will be referring to these resources names (as specified in the HOT) in other scripts/template. And, it will be quite a headache to copy these newly generated resource names (added with pre-post-fixes) and pasting them into other scripts/templates. Hence the question: How can I avoid these pre-postfixe strings such that Packstack ONLY assigns the name as specified in the template?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-15 08:23:29 -0500

zaneb gravatar image

This is nothing to do with packstack, it's just how Heat works. If you don't assign a name to the network explicitly, it chooses one based on the stack name, resource name, and a random suffix. (This is to allow multiple copies of the template to be instantiated, as well as to allow multiple copies of a resource to exist in case it needs to be replaced.)

If you want to choose your own name, assign the name property of the network resource.

edit flag offensive delete link more

Comments

yeah, forgot totally about the name property...Sometimes we miss the small bits..thanks mate

devmitaka gravatar imagedevmitaka ( 2016-11-16 04:02:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-10 08:27:40 -0500

Seen: 52 times

Last updated: Nov 15 '16