Ask Your Question
0

Manage IPs via nova-network

asked 2014-05-05 11:07:52 -0500

leonardo gravatar image

Hello everyone,

So I have setup two nodes where one is acting as a Controller and the second as a compute node using legacy nova-network (Flat DHCP). The nodes' management subnet is 192.168.0.1/24. I configured the nova controller to use the subnet 10.0.0.0/24 as my (fake) public IP addresses. However, I noticed the following;

1) When my VM boots up, 10.0.0.1 is assigned to the DHCP server (dnsmasq) on my compute node and 10.0.0.2 is assigned to my VM.
2) This would imply that if i start a second VM instance on a second SEPARATE compute host, 10.0.0.3 and 10.0.0.4 would get allocated to the second compute host. 3) This would mean that 4 'public' ip addresses are being used for two compue hosts.

Is there a way around this using the above setup by assigning the IP address to the VMs at nova boot without the DHCP getting involved at all?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-14 06:39:30 -0500

leonardo gravatar image

I found out the approach and that is by using the "v4-fixed-ip" variable while launching an instance.

edit flag offensive delete link more

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: 2014-05-05 11:07:52 -0500

Seen: 81 times

Last updated: May 14 '14