[Rdo-list] networking issues with the nova-docker driver

ICHIBA Sara ichi.sara at gmail.com
Sun Sep 21 07:46:13 UTC 2014


Hello people,

The nova-docker  finally worked for me. Now I can launch containers with
nova, in the dashboard it is said that the instances are running. But when
I try to go into the containers I fail. It seems that the problem is due to
networking issues. Nova fail to create netns for the containers in question
and thus all what comes after fail as well.

When I check the compute.log I find these messages. Would you please take a
look  and see if they are familiar to you and if so suggest me something ?

Any suggestion or hint would be very appreciated.

Thank you all ^^,
Sara

====compute.log

2014-09-18 11:22:37.899 902 AUDIT nova.compute.claims
[req-faa4b1ac-869a-4613-9a3b-9f97794b3cfd 6b8a39ff0bb9417eb1a3ce8bdf09cf00
3ca2fa62ac434e8f942e5823969f23db] [instance:
f0be5fc3-9a00-4e9b-a2d5-af8ddacd5d94] Claim successful
2014-09-18 11:22:44.029 902 ERROR novadocker.virt.docker.vifs
[req-faa4b1ac-869a-4613-9a3b-9f97794b3cfd 6b8a39ff0bb9417eb1a3ce8bdf09cf00
3ca2fa62ac434e8f942e5823969f23db] *Failed to attach vif*
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs Traceback
(most recent call last):
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs   File
"/usr/lib/python2.6/site-packages/novadocker/virt/docker/vifs.py", line
206, in attach
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs
container_id, run_as_root=True)
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs   File
"/usr/lib/python2.6/site-packages/nova/utils.py", line 165, in execute
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs     return
processutils.execute(*cmd, **kwargs)
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs   File
"/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py",
line 193, in execute
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs     cmd='
'.join(cmd))
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs
ProcessExecutionError: Unexpected error while running command.
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs Command: sudo
nova-rootwrap /etc/nova/rootwrap.conf* ip link set ns59fc4e34-bc netns
afb0b5b7b02aef73f07c34b7f456ace080bb9944d21376f7a05e2d08206c4b67*
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs Exit code: 255
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs Stdout: ''
*2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs Stderr:
'Error: argument
"afb0b5b7b02aef73f07c34b7f456ace080bb9944d21376f7a05e2d08206c4b67" is
wrong: Invalid "netns" value\n\n'*
2014-09-18 11:22:44.029 902 TRACE novadocker.virt.docker.vifs
2014-09-18 11:23:22.087 902 AUDIT nova.compute.resource_tracker [-]
Auditing locally available compute resources
2014-09-18 11:23:22.459 902 AUDIT nova.compute.resource_tracker [-] Free
ram (MB): -683
2014-09-18 11:23:22.459 902 AUDIT nova.compute.resource_tracker [-] Free
disk (GB): 9
2014-09-18 11:23:22.459 902 AUDIT nova.compute.resource_tracker [-] Free
VCPUS: -3
2014-09-18 11:23:22.627 902 INFO nova.compute.resource_tracker [-]
Compute_service record updated for otvmi307s.priv.atos.fr:o
tvmi307s.priv.atos.fr


==== the output of the command *ovs-vsctl show*

95915800-961a-45de-ba73-09bc8c9c329b
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "qg-79be5a9c-97"
            Interface "qg-79be5a9c-97"
                type: internal
    Bridge br-int
        fail_mode: secure
        Port "tap9683ca3b-87"
            tag: 1
            Interface "tap9683ca3b-87"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "tapc8dd2048-aa"
            tag: 3
            Interface "tapc8dd2048-aa"
        Port "qr-234b2621-29"
            tag: 1
            Interface "qr-234b2621-29"
                type: internal
        Port "tap59fc4e34-bc"
            tag: 3
            Interface "*tap59fc4e34-bc*"
        Port "tap360101f0-ee"
            tag: 3
            Interface "tap360101f0-ee"
        Port "tap16ebed2a-3e"
            tag: 3
            Interface "tap16ebed2a-3e"
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tap741f9199-b9"
            tag: 4095
            Interface "tap741f9199-b9"
    Bridge br-tun
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    ovs_version: "1.11.0"


========the output of the command ip link show

55: *ns59fc4e34-bc*: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
qlen 1000
    link/ether 7e:5f:86:0e:1f:52 brd ff:ff:ff:ff:ff:ff
56: *tap59fc4e34-bc*: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc
pfifo_fast state DOWN qlen 1000
    link/ether a6:e5:4b:fa:9d:84 brd ff:ff:ff:ff:ff:ff

==========the output of the command ls /var/run/netns

09ccbe2f093c904972bd886735b718e9e9fec41f1ee5afd5d53b5d1b8c7f0ae2
 a96f3ec37b7aa764a86c61e0317b1360c449dec272a7fd6ce3cab4b45ea6c98b
5eda9416e30d2aa9e8bf1f37bbadca1c4688985b5a3272338557cd24ecefaab6
* afb0b5b7b02aef73f07c34b7f456ace080bb9944d21376f7a05e2d08206c4b67*
87992907919ec457bf93161326f472c485fdff0b7ff6ba0b6762dac66fcd2626
qdhcp-fecbcfdd-92bb-41aa-86da-4050b65d360b
9abc5b0dba7faa0d2ca1b34cedb93acceb7ec4c46e3390ed9d33843310548325
 qrouter-d8cc218e-b99f-440a-9096-b18b4c447caf


======the output of the command docker ps

CONTAINER ID        IMAGE                       COMMAND             CREATED
            STATUS              PORTS               NAMES
*afb0b5b7b02a *       busybox:buildroot-2014.02   /bin/sh             11
minutes ago      Up 11 minutes
nova-f0be5fc3-9a00-4e9b-a2d5-af8ddacd5d94
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20140921/1d575447/attachment.html>


More information about the dev mailing list