Ask Your Question
0

network issue after Control Node reboot

asked 2014-03-13 13:10:16 -0500

Dan82 gravatar image

updated 2014-03-15 09:10:51 -0500

Hello,

I installed OpenStack in a VirtualBox environment following instructions from http://docs.openstack.org/training-guid … e.xml.html. The issue is about Control Node virtual machine. I installed Ubuntu 12.04 Server LTE on the virtual machine then I installed all OpenStack services.

At the end of installation, everything looked OK (ping to external sites worked fine) so I made a snapshot of Control Node configuration.

The issue happens when I reboot the Control Node virtual machine, all ping instructions to external domains (or IP addresses, including host machine) generate unknown host message.

I performed only the two following actions between install and reboot:
- Adding line "ServerName localhost" in /etc/apache2/httpd.conf file in order to avoid message "Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName".
- apt-get install --reinstall iscsitarget-dkms due to message "iscsi-target fatal module iscsi_trgt not found"

During startup, all services are [OK], I just have messages:
Waiting for network configuration
Waiting an additional 60 seconds for network configuration
Booting system without full network configuration
I read this message was due to existence of 2 gateways in /etc/network/interfaces file but I don't know if it's a severe issue.

/etc/network/interfaces content (comments removed) :

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.51
netmask 255.255.255.0
gateway 10.10.10.1

auto eth1
iface eth1 inet static
address 192.168.100.51
netmask 255.255.255.0
gateway 192.168.100.1

auto eth2
iface eth2 inet dhcp

/etc/hosts content:
127.0.0.1 localhost
127.0.1.1 ControlNode
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

/etc/resolv.conf content:
nameserver 80.10.246.2
nameserver 80.10.246.3

I tested several corrections in network files but they didn't resolve my issue. Help would be appreciated.

[UPDATE] I initiated another scratch install of the Control Node and I noticed the issue happens after modifying /etc/network/interfaces. If I remove the "gateway 10.10.10.1" line, it's OK. So my question is : Is this line really necessary?

Regards Dan

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2014-03-15 09:23:16 -0500

mpetason gravatar image

updated 2014-03-15 09:24:25 -0500

You only need one gateway. The issue probably happened(Waiting for network configuration) when you have auth eth2 set to DHCP. If it couldn't reach a DCHP server then it would keep trying to get an address then fail on eth2. You can setup the default gateway to point to whichever network you want traffic to go out of, usually the network with access to the internet. You don't have to set a gateway on the other interface.

Basically: Set gateway on the eth* that has access to the internet, so that it can reach your DNS servers and resolve hostnames. Remove the eth2 interface unless you are using it for something, it doesn't need to be auto, or come up. So if eth0 is your route to the internet you'd have address, netmask, gateway. If eth1 is your internal then it would have addres, netmask.

edit flag offensive delete link more
0

answered 2014-03-16 12:24:32 -0500

Dan82 gravatar image

Hello,

I initiated another scratch install of the Control Node and I noticed the issue happens after modifying /etc/network/interfaces.
I modified this configuration file (See below) :
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.51
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.100.51
netmask 255.255.255.0

auto eth2
iface eth2 inet dhcp
gateway [IP address of my host machine]

It seems to work fine on ControlNode but I don't know real impact on other nodes (Compute and Network) because I'm not familiar with network interfaces configuration.

Regards, Dan

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: 2014-03-13 13:10:16 -0500

Seen: 522 times

Last updated: Mar 16 '14