Single Node Havana Setup

asked 2014-01-15 23:25:13 -0500

Shivaramakrishnan gravatar image

updated 2014-01-22 15:12:27 -0500

Evgeny gravatar image

Hello, I am newbie to openstack. I am trying to setup openstack on a single node running all the services. I managed to get the architecture setup and am stuck at the last step. I have two interfaces on this machine with 24G ram and plenty hard diskspace.

One interface - eth0 - 192.168.1.100 - Gw : 192.168.1.1 == Internet Connectivity

Other interface - eth1 connected to Gw : 10.1.1.1 which is then connected to 192.168.1.1 on its lan port.

I used eth1 for configuring a bridged interface br-int using ovs-vsctl command. This node is running Identity,Image,Nova (Controller Services for compute ,Compute Services),Neutron ,Dashboard and cinder.

I am using flat topology as a use case. I created two vm's that are able to see each other (able to ping each other) The vm's are having same subnet range as the gateway i.e. (10.1.1.150 for vm1 and 10.1.1.153 for vm2) .Both are having 10.1.1.1 as the gateway. I see the tapped interfaces created appr under ovs-vsctl show command under br-int.

My problem is I am not able to ping the vm from the host or vice versa nor the gateway 10.1.1.1 from the vm.I see the packets on eth1 and on br-int when I do a tcpdump. I haven't modified any iptables and its the default configuration of openstack components and ubuntu 12.04 LTS.

Can anyone please help me out to get through this step as I am having no clue as to where the problem is lying.

I used the following commands:

ovs-vsctl add-br br-int

ovs-vsctl add-port br-int eth1

neutron net-create --tenant-id =xxxx sharednet1 --shared --provider:network_type flat --physical_network physnet1

netron subnet-create --tenant-id=xxxx sharednet1 --allocation-pool start=10.1.1.150,end=10.1.1.200 10.1.1.0/24

created two vm's that are in this subnet (10.1.1.150,10.1.1.152) -- both able to ping each other. But not able to ping 10.1.1.1 - default gw or host machine.

My /etc/interfaces file : auto eth0

iface eth0 inet static

address 192.168.1.100

netmask 255.255.255.0

gateway 192.168.1.1

auto eth1 iface eth1 inet manual

auto br-int

iface br-int inet static

address 10.1.1.2

netmask 255.255.255.0

gateway 10.1.1.1

And my /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini

[ovs]

network_vlan_ranges = physnet1

integration_bridge = br-int

bridge-mappings = physnet1:br-int

I somehow now managed to get the vm's talk to controller and vice versa.now vm's talk to the controller and vice versa. As soon as I boot the server, I can reach 10.1.1.1.But once I boot any one of the instances, I can't ping the gateway. The initial routing table contains 10.1.1.1 as a route. But once ,I boot my instance,I have a tap interface created ... (more)

edit retag flag offensive close merge delete