Ask Your Question
0

VM cannot ping internet

asked 2015-05-18 00:06:27 -0500

Nodir gravatar image

Hello,

I know this question was asked several times. Therefore I spent an hour reading previous posts. None seem to describe my case. The closest seems to be https://ask.openstack.org/en/question/24853/ovs-br-ex-confusion-and-neutron-network/ ([ovs] br-ex confusion and neutron network) but I don't understand why they have both br-eth0 and br-ex. Shouldn't it work fine if we rename the original br-eth0 to br-ex? The manual for the minimal 3 node neutron installation seems to say everything should work with br-ex only (ref. http://docs.openstack.org/juno/install-guide/install/apt/content/ch_basic_environment.html#basics-networking (Juno neutron basic installation)).

I did not want to follow up the above original question as it was asked more than a year ago. So, let me explain my case.

I am running Juno minimal neutron installation with 3 nodes (controller, network, compute1); just as in http://docs.openstack.org/juno/install-guide/install/apt/content/ch_overview.html (the manual). Nodes are running Ubuntu 14.04 as a VirtualBox VMs on my Desktop. I successfully created OpenStack VMs and they can ping, ssh each other though local network (on 10.0.10.0/24 subnet). But OpenStack VMs can not access the external network.

My network node's eth0 is connected to internet via VirtualBox NAT (on 10.0.2.0/24 subnet), which is used as the port of the br-ex (see content of network node's http://ibin.co/2275uzBhiJOW (/etc/network/interface)). Note that I manually made br-ex entry on the file because for some reason br-ex did not automatically get IP address when configured via OVS. I can access the Internet from network node via br-ex on 10.0.2.15.

ovs-vsctl shows br-ex as correctly bridged on eth0 (see http://ibin.co/225brKO2Rfq0 (the screenshot)). Here is my http://ibin.co/227AzhZCNIgQ (OpenStack virtual network topology). OpenStack VMs can ping router's external address on 10.0.2.50 but cannot ping any public DNS such as 8.8.8.8.

First, I checked if packets are reaching br-ex. Apparently no, when I ping 10.0.2.15 (br-ex IP address) from the OpenStack VM and do tcpdump -i any -n host 10.0.2.15 on the network node, it shows ARP request messages on br-int (see http://ibin.co/227BqSzHSFqI (screenshot)) but nothing shows up on tcpdump -i br-ex -n host 10.0.2.15

Network node's ip route outputs:
default via 10.0.2.2 dev br-ex
10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.21
10.0.1.0/24 dev eth2 proto kernel scope link src 10.0.1.21
10.0.2.0/24 dev br-ex proto kernel scope link src 10.0.2.15

Can someone please point what is going wrong? Any help is appreciated.

Nodir

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-01 19:14:46 -0500

Nodir gravatar image

I am answering my question by myself. I don't have a definitive answer, but it seems to be VirtualBox issue. I created the same OpenStack environment with in VMware VMs and everything working perfectly. I did not dig down to the VirtualBox issue.

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: 2015-05-17 18:59:31 -0500

Seen: 494 times

Last updated: Jun 01 '15