Help creating a Heat Template - no Floating IP

asked 2017-03-17 04:54:48 -0500

razvlix gravatar image

Hello guys,

I really need you help on this.

My environment is based on Openstack Liberty and for security reasons (inside company) we cannot use floating IPs. When creating an instance, we need to attach the external interface manually and after to configure the interface with IP from the Horizon console. You can imagine that this is not a very professional way to work with.

Therefore, I want to automatize this and create a Heat template to help us deploy an instance, attach the interface and configure the IP.

!The glance-image is ubuntu.

The steps will be like this: 1. Create a new instance with name,flavor,image,private-net and key-pair 2. Attach a new interface to this instance - this will create eth1 in the instance 3. Configure a static ip and gateway in the instance (eth1). Eth0 is already configured from DHCP because is the private network-ip

One idea of mine is to: 1. Create the instance and add a post deployment script that will create and configure eth1 inside the instance. 2. Attach the port 3. Reboot the VM

Any other ideas? :)

edit retag flag offensive close merge delete


Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-03-17 05:04:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-23 14:47:39 -0500

Khanak Nangia gravatar image

hey, the idea you mentioned above seems fine :) you may automate or have a script for creating the instance as well.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-17 04:54:48 -0500

Seen: 190 times

Last updated: Mar 17 '17