Source instance name change for Openstack builder

117 views
Skip to first unread message

Chris Stone

unread,
Jun 30, 2015, 1:48:05 PM6/30/15
to packe...@googlegroups.com
Hello. Is it possible to change the name of the temporary Openstack instance that gets built during the Packer build process? For the AWS builder, it allows you to set tags and if you don't give it a 'Name' tag, it just uses "Packer Builder". With Openstack, there doesn't appear to be that option, so it just uses the image name. This isn't favorable if there is a period in the image name (as one would expect with a version number.) For instance - centos-7.1-06302015 as an instance name causes DNS confusion, thinking that both domain.com and .1-06302015.domain.com are both parts of its FQDN, bringing on some Puppet chaos, etc. If we had the ability to use a more generic name like the AWS builder, that would be helpful!

Thanks,
Chris

Alvaro Miranda Aguilera

unread,
Jun 30, 2015, 7:15:14 PM6/30/15
to packe...@googlegroups.com
Hello,

Have you seen this?

image_name (string) - The name of the resulting image.

is this what you are after?
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/01fefdc9-6fd8-49ce-a83d-6c135e63c83d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Chris Stone

unread,
Jun 30, 2015, 9:16:01 PM6/30/15
to packe...@googlegroups.com
Hello,

The image_name is the name of the resulting image, but the Openstack plugin also uses that value for the temporary instance name, which ends up being the system hostname, and having periods in that is confusing DNS. Would be helpful to be able to specify a name for the temporary instance as well (for instance, you can include the 'Name' key in the AWS builder).

Fernando Meireles

unread,
Oct 26, 2016, 10:26:22 AM10/26/16
to Packer
Hi Chris,

Did you found a solution to name the temporary openstack VM differently than the resulting image name in packer? I'm having this same problem now.
Any guidance on this would be much appreciated!

Thanks,
Fernando

Rickard von Essen

unread,
Oct 26, 2016, 4:10:02 PM10/26/16
to packe...@googlegroups.com
This seems a bit broken. You might be able to work around it by setting another hostname in userdata.

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/64763fda-bc92-4c4c-84d3-2af9e929683f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages