Ask Your Question
0

flat networking on testing installation

asked 2011-08-18 13:26:11 -0600

micromanc3r gravatar image

Hi,

I'm new to nova and I'm trying to install it on two nodes. One serves as a compute node, only nova-compute is installed there. And the other serves as a controller like in this guide: http://cssoss.wordpress.com/2011/04/27/openstack-beginners-guide-for-ubuntu-11-04-installation-and-configuration/ (http://cssoss.wordpress.com/2011/04/2...) . The main difference and my problem is the networking. For my testing purposes I only have one static IP available for vm and I can't figure it out how to set the nova.conf files on both machines. Can anyone please somehow guide me through these settings?

Thanks in advance. ms

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-19 16:43:57 -0600

vishvananda gravatar image

Yes it reserves the broadcast ip and the gateway ip, so it will be very confused if you give it a /32

edit flag offensive delete link more
0

answered 2011-08-19 12:57:50 -0600

blamar gravatar image

Hmm, this actually doesn't seem to be working for me because the nova-manage network code is expecting more than one IP in the network. If you're seeing what I'm seeing and this use case is important to you, I'd file a bug @ bugs.launchpad.net/nova and we can get this fixed in the future.

edit flag offensive delete link more
0

answered 2011-08-19 12:53:22 -0600

blamar gravatar image

If you're using close to the latest source code then "nova-manage network create --help" will show you the options for creating a network.

You should be able to add a single IP via something like this:

$ nova-manage network create --label=my_network --num_networks=1 --network_size=1 --fixed_range_v4=XXX.XXX.XXX.XXX/32

edit flag offensive delete link more
0

answered 2011-08-19 08:40:19 -0600

micromanc3r gravatar image

controller:

--dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose

--network_manager = nova.network.manager.FlatManager --num_networks=1

--s3_host=136.242.19.184 --rabbit_host=136.242.19.184 --cc_host=136.242.19.184 --ec2_url=http://136.242.19.184:8773/services/Cloud --fixed_range=136.242.19.186/32 --network_size=1 --FAKE_subdomain=ec2 --routing_source_ip=136.242.19.184 --sql_connection=mysql://root:secret@136.242.19.184/nova --glance_host=136.242.19.184 --image_service=nova.image.glance.GlanceImageService

--iscsi_ip_prefix=136.242.

compute node:

--dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --libvirt_type=xen

--network_manager = nova.network.manager.FlatManager --num_networks=1

--s3_host=136.242.19.184 --rabbit_host=136.242.19.184 --cc_host=136.242.19.184 --ec2_url=http://136.242.19.184:8773/services/Cloud --fixed_range=136.242.19.186/32 --network_size=1 --FAKE_subdomain=ec2 --routing_source_ip=136.242.19.180 --sql_connection=mysql://root:secret@136.242.19.184/nova --glance_host=136.242.19.184

--image_service=nova.image.glance.GlanceImageService

network list and fixed list show nothing because they are not set yet... I'm not sure how to set "network create" when I only want to add one IP to the database...is that even possible?

edit flag offensive delete link more
0

answered 2011-08-18 15:18:26 -0600

blamar gravatar image

Can you provide your current nova.conf configurations? IP addresses assigned to VMs don't typically come from the configuration file, rather they come from networks/fixed_ips set up in the database using the "nova-manage network create" command. What does running "nova-manage network list" and "nova-manage fixed list" show you? Can you give more detailed information on any errors that you're encountering?

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: 2011-08-18 13:26:11 -0600

Seen: 8 times

Last updated: Aug 19 '11