Ask Your Question

Revision history [back]

nova-docker: loopback interface down in instance

Hi,

I am running a devstack setup in a Virtualbox as described here: http://blog.oddbit.com/2015/02/11/installing-novadocker-with-devstack/

Docker instances are started almost perfectly, the only problem is the loopback interface being down in the instance:

ubuntu@default-ubuntu-1404:~$ sudo ip netns
e2d78b463ca464c61488fdbda2597287a1b0098590189947af3b97dd14862219
qrouter-a4357446-da2e-477b-a310-eab218bc67c6
qdhcp-3f22eed2-36c6-49b3-9a09-c2b50c8374a5

The loopback dev in the netns for the instance is down:

ubuntu@default-ubuntu-1404:~$ sudo ip netns exec e2d78b463ca464c61488fdbda2597287a1b0098590189947af3b97dd14862219 ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
25: nsbdd87f7c-ad: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether fa:16:3e:06:e7:39 brd ff:ff:ff:ff:ff:ff
    inet 10.254.1.6/24 scope global nsbdd87f7c-ad
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe06:e739/64 scope link 
       valid_lft forever preferred_lft forever

This prevents the service inside the docker container from starting as it is unable to bind to the loopback device.

Running

sudo ip netns exec e2d78b463ca464c61488fdbda2597287a1b0098590189947af3b97dd14862219 ip link set dev lo up

brings the loopback up but that should be done on booting the instance. Any chance I could convince neutron to setup the loopback correctly when booting the instance?

Thanks a lot.