Internet not reachable from instance

asked 2016-11-01 09:10:51 -0500

Dilipsun gravatar image

Hi All ,

I have created an openstack setup from docs.openstack.org/Mitaka ,everything works fine except the internet connectivity .

Iam using Linux bridge for this setuo Could someone help me out here .

mgmt network--(eth0 on all three nodes)
controller --192.168.10.129
compute--192.168.10.130
block--192.168.10.131

secondary interface eth1 on controller and compute node is configured like this in /etc/network/interfaces on controller and compute

# The provider network interface
auto eth1
iface eth1 inet manual
up ip link set dev eth1
down ip link set dev eth1 down

Its setup as hostonly in vmware virtual editor with gateway 203.0.113.1

root@controller:~# nova list
+--------------------------------------+----------------------+--------+------------+-------------+---------------------------------------+
| ID                                   | Name                 | Status | Task State | Power State | Networks                              |
+--------------------------------------+----------------------+--------+------------+-------------+---------------------------------------+
| 1fb5e81e-90d4-4f7d-8b1a-350498be03d2 | selfservice-instance | ACTIVE | -          | Running     | selfservice=172.16.1.3, 203.0.113.103 |
+--------------------------------------+----------------------+--------+------------+-------------+---------------------------------------+

root@controller:~#

I am able to ping to 172.16.1.1 , 203.0.113.102 and 203.0.113.1 .But it could not go beyond that .

routing table from controller and cpmpute

root@controller:~# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.10.2    0.0.0.0         UG        0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0

root@controller:~#

routing table from Cirros image (instance)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.16.1.1      0.0.0.0         UG    0      0        0 eth0
169.254.169.254 172.16.1.1      255.255.255.255 UGH   0      0        0 eth0
172.16.1.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0

#

ping doesnt work from cirros image to internet 8.8.8.8 or 8.8.4.4

Added by dbaxps from author's comment

neutron net-create --shared --provider:physical_network provider \ 
--provider:network_type flat provider 

neutron subnet-create --name provider \ 
--allocation-pool start=203.0.113.101,end=203.0.113.250 \
--dns-nameserver 8.8.4.4 --gateway 203.0.113.1 \ 
provider 203.0.113.0/24
edit retag flag offensive close merge delete

Comments

Did you check the security group rules? The default security group blocks all requests. I didn't check your network setup, it's just always the first thing to look at if your instance boots successfully, but has no connection to the outside ;-)

eblock gravatar imageeblock ( 2016-11-02 06:01:14 -0500 )edit