Not able to access internet on OpenStack Vm's

asked 2015-08-05 05:53:53 -0500

abhishek-talwar gravatar image

updated 2016-12-12 15:39:00 -0500

rbowen gravatar image

I have done a multinode OpenStack kilo setup on virtualbox with one controller node, one network node and 2 compute nodes.

The host is connected to a photon for internet connectivity. Configuration and Ip's associated with the host are :

ppp0      Link encap:Point-to-Point Protocol  
              inet addr:14.98.197.198  P-t-P:172.29.145.129  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00  
                 inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0
                 inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link

The internet connectivity to the host is through “14.98.197.198” ip.

I can successfully boot a VM and login to it. However, the issue that is troubling us is that the VM cannot connect to the internet. Cirros and Ubuntu trusty image is being used to bring up the VM.

The configuration for the setup is as follows:

Controller Node

eth0 – Attaced to NAT

eth1 –  Attaced to Host Only 
IP address: 10.0.0.11
Network mask: 255.255.255.0 (or /24)
Default gateway: 10.0.0.1

Network Node

eth0 – Attaced to NAT

eth1 – Attaced to Host Only
IP address: 10.0.0.21
Network mask: 255.255.255.0 (or /24)
Default gateway: 10.0.0.1

eth2 – Attaced to Host Only

IP address: 10.0.1.21
Network mask: 255.255.255.0 (or /24)

eht3(special configuration without an IP address assigned to it) – Attaced to Host Only

Automatic DHCP

Compute Node

eth0 – Attaced to NAT

eth1 – Attaced to Host Only
IP address: 10.0.0.31
Network mask: 255.255.255.0 (or /24)
Default gateway: 10.0.0.1

eht2 – Attaced to Host Only

IP address: 10.0.1.31
Network mask: 255.255.255.0 (or /24)

Compute1 Node

eth0 – Attaced to NAT

eth1 – Attaced to Host Only
IP address: 10.0.0.32
Network mask: 255.255.255.0 (or /24)
Default gateway: 10.0.0.1

eht2 – Attaced to Host Only

IP address: 10.0.1.32
Network mask: 255.255.255.0 (or /24)

The external interface on the network node (eth3 , specially configured without an IP address) gets an IP address of the range 192.168.56.102.

As per the setup guide I have used this range and created the external network in the same subnet and with the same gatway.

After creating a floating ip (of the range 192.168.56.0/24 , for ex – 192.168.56.112) from “ext-net” I assign it to the created VM. We are able to ping this floating ip from an external host and vice versa. I can ssh into the instance and ping “192.168.56.1” but internet connectivity is not there. Added the ICMP and TCP rules to the default security group but the issue persists.

Kindly guide me on what more needs to be done ... (more)

edit retag flag offensive close merge delete

Comments

Have you created a router on network node and attached to the provider network(10.0.0.0/24)?

dilip gravatar imagedilip ( 2016-12-13 13:34:01 -0500 )edit