[R2.20-Build 3]:Docker: compute host lost connectivity by running command on docker container

Bug #1449919 reported by alok kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Critical
Anand H. Krishnan
Trunk
Fix Committed
Critical
Anand H. Krishnan

Bug Description

compute node host losses connectivity after running command on docker container using run command:

root@nodec62:~# docker run ubuntu:14.04 /bin/echo "hello"
hello
Write failed: Broken pipe

setup info:

env.roledefs = {
    'all': [host1,host2,host3,host4,host5],
    'cfgm': [host1,host2,host5],
    'openstack':[host2],
    'control': [host2,host1],
    'compute': [host3,host4],
    'collector': [host2,host1],
    'webui': [host1],
    'database': [host1,host2,host5],
    'build': [host_build],
}

env.hostnames = {
    'all': ['nodec64', 'nodeg18', 'nodec62', 'nodec11', 'nodec12']
}

root@nodec62:/var/crashes# ifconfig docker0
docker0 Link encap:Ethernet HWaddr 56:84:7a:fe:97:99
          inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

logs @mayamruga-E71:/home/bhushana/Documents/technical/bugs/1449878

Tags: docker vrouter
tags: added: docker
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.20

Review in progress for https://review.opencontrail.org/10105
Submitter: Anand H. Krishnan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/10105
Committed: http://github.org/Juniper/contrail-vrouter/commit/4992c1079ab1c3a53fec8e0d1464246fe972091e
Submitter: Zuul
Branch: R2.20

commit 4992c1079ab1c3a53fec8e0d1464246fe972091e
Author: Anand H. Krishnan <email address hidden>
Date: Fri May 8 14:24:37 2015 +0530

Make interface notifier to act only in default namespace

vRouter listens for netdevice register/unregister events so that it
can cleanup its view of interfaces that it uses. The way vRouter
identifies an interface is through the name of the interface.

When docker is run, docker also can create interfaces with the same
name and interface index, albeit in a different name space. In this
particular case, docker creates a veth pair, assigns name of "eth0"
to one part of the pair (that is used by the container) and at exit
deletes the interface. vRouter wrongly assumes that the "eth0" delete
is really for the "eth0" in the default name space and detaches the
interface from vRouter.

Change-Id: I2ba384ba2b85f19f8e666d858da0ff443dacc7ec
Closes-BUG: #1449919

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/10172
Submitter: Anand H. Krishnan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/10172
Committed: http://github.org/Juniper/contrail-vrouter/commit/95bc24f9e62d500894d7d657a2c44bca36519cf8
Submitter: Zuul
Branch: master

commit 95bc24f9e62d500894d7d657a2c44bca36519cf8
Author: Anand H. Krishnan <email address hidden>
Date: Fri May 8 14:24:37 2015 +0530

Make interface notifier to act only in default namespace

vRouter listens for netdevice register/unregister events so that it
can cleanup its view of interfaces that it uses. The way vRouter
identifies an interface is through the name of the interface.

When docker is run, docker also can create interfaces with the same
name and interface index, albeit in a different name space. In this
particular case, docker creates a veth pair, assigns name of "eth0"
to one part of the pair (that is used by the container) and at exit
deletes the interface. vRouter wrongly assumes that the "eth0" delete
is really for the "eth0" in the default name space and detaches the
interface from vRouter.

Change-Id: I2ba384ba2b85f19f8e666d858da0ff443dacc7ec
Closes-BUG: #1449919

Revision history for this message
alok kumar (kalok) wrote :

verified it on R2.20 build 17. it's working fine now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.