How to Enable Networking when both compute and controller have only one network interface which is public.

asked 2014-02-10 19:06:20 -0500

Saba gravatar image

updated 2014-02-11 17:27:13 -0500

I am following the openstack official installation guide online. In this guide, it is assumed that we have a controller machine and one compute machine both of which has two network interfaces. One of the network interfaces is used for public networking and another is for connecting the two together in a private network of range

However, in my environment where I am trying to install openstack, the controller and the compute nodes have both only one network interface which has a public access. Both of them can see each other through these interfaces.

After installing Nova, the guide tells me to enable networking for it by following these commands:

# openstack-config --set /etc/nova/nova.conf DEFAULT network_manager
# openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver
# openstack-config --set /etc/nova/nova.conf DEFAULT network_size 254
# openstack-config --set /etc/nova/nova.conf DEFAULT allow_same_net_traffic False
# openstack-config --set /etc/nova/nova.conf DEFAULT multi_host True
# openstack-config --set /etc/nova/nova.conf DEFAULT send_arp_for_ha True
# openstack-config --set /etc/nova/nova.conf DEFAULT share_dhcp_address True
# openstack-config --set /etc/nova/nova.conf DEFAULT force_dhcp_release True
# openstack-config --set /etc/nova/nova.conf DEFAULT flat_interface eth1
# openstack-config --set /etc/nova/nova.conf DEFAULT flat_network_bridge br100
# openstack-config --set /etc/nova/nova.conf DEFAULT public_interface eth1

Then I installed and started the openstack-nova-api service on the compute node and tried to run the nova network-create command on the controller. However, I faced the HTTP 500 Error.

# nova network-create vmnet --fixed-range-v4= --bridge-interface=br100 --multi-host=T

Now I have two questions; 1. What exactly am I doing by setting this parameter in the configuration file of nova? What are these networking configuration used for? 2. How should I change the configuration for my networking environment in which I have only one network interface for each of my nodes?

My operating systems are CentOS and I am trying to install Havana.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-11 07:43:29 -0500

luigi.romagnoli gravatar image

Playing around with openstack is not so easy and starting with a machine with only one adapter will increase your difficult to learn nova network and neutron, i'm still learning and make esperiment but i suggest u will start with a virtual machine (virtualbox) on a physical hardware assing all network adapter you need and change your hyper engine to qemu so u can create a test enviroment.

On centos use RDO will help you a lot to start with openstack.

First start with no answer file, then use a customized answer file and u can have a two node setup quite soon.

edit flag offensive delete link more


Yes, you are right. I could do almost anything I would like in the virtual box. However, I am now trying to install it on two bare server machines. Unfortunately, my compute node only has one network interface card. I believe openstack must be flexible enough to handle this configuration as well.

Saba gravatar imageSaba ( 2014-02-11 17:25:28 -0500 )edit

Openstack can, have a look to but it's not so easy, and at the end is an academic lesson because performances are weak for a production environment. Hope that is what u are looking for. ;-)

luigi.romagnoli gravatar imageluigi.romagnoli ( 2014-02-12 02:27:43 -0500 )edit

Thanks a lot. Yeap, this is exactly what I was looking for. I hope I can make it ;)

Saba gravatar imageSaba ( 2014-02-12 23:06:06 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-02-10 19:06:20 -0500

Seen: 954 times

Last updated: Feb 11 '14