[R2.20-Build 26]: dual stack-IPv4+IPv6 for docker instances not working

Bug #1458655 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
High
Ignatious Johnson Christopher
Trunk
Fix Committed
High
Ignatious Johnson Christopher
nova-docker
Fix Committed
Undecided
Ignatious Johnson Christopher

Bug Description

when VN is dual stack supporting both IPv4 and IPv6 then instances launched on docker host could get both configuration correctly.

sometime I see there is no interface configured in the instances.

in one case it was configured but only with IPv6.

root@nodec62:/usr/lib/python2.7/dist-packages/novadocker/virt/docker# docker exec 631509521f1b ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 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)

ns00b5bbbf Link encap:Ethernet HWaddr 02:00:b5:bb:bf:df
          inet6 addr: fe80::b5ff:febb:bfdf/64 Scope:Link
          inet6 addr: 2002:8192:5666:1::3/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1618 (1.6 KB) TX bytes:666 (666.0 B)

root@nodec62:/usr/lib/python2.7/dist-packages/novadocker/virt/docker# docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
631509521f1b ubuntu-traffic-docker:latest "/sbin/my_init" About a minute ago Up About a minute nova-966e8570-8325-4575-a983-f2d68b2de1d7

nova shows both IPs configured.

root@nodec62:/usr/lib/python2.7/dist-packages/novadocker/virt/docker# nova list --all-tenant|grep 966e8570-8325-4575-a983-f2d68b2de1d7
| 966e8570-8325-4575-a983-f2d68b2de1d7 | lxc | ACTIVE | - | Running | vn-dual=2002:8192:5666:1::3, 9.9.9.3 |

Tags: docker nova
information type: Proprietary → Public
Changed in nova-docker:
assignee: nobody → Ignatious Johnson Christopher (ijohnson-x)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-docker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/187097

Changed in nova-docker:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-docker (master)

Reviewed: https://review.openstack.org/187097
Committed: https://git.openstack.org/cgit/stackforge/nova-docker/commit/?id=0c9a794437d3c5e790e4cc1356ba1bf4ba52aa2b
Submitter: Jenkins
Branch: master

commit 0c9a794437d3c5e790e4cc1356ba1bf4ba52aa2b
Author: Ignatious Johnson Christopher <email address hidden>
Date: Sun May 31 21:06:53 2015 -0700

    Handling attaching of multiple vifs.
    Closes-Bug: #1458655

    Adding attach_interface and detach_interface methods in
    driver to handle 'nova interface-attach' and 'nova interface-detach'
    commands.
    Closes-Bug: #1458553

    Change-Id: Icec276cd32e7c961e0f1d8d1cba44a3c982fd8a5

Changed in nova-docker:
status: In Progress → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/11202
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/11203
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/11202
Committed: http://github.org/Juniper/contrail-packaging/commit/ce264dff59319729d0df310e605790c7617feb83
Submitter: Zuul
Branch: R2.20

commit ce264dff59319729d0df310e605790c7617feb83
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Jun 2 14:07:50 2015 -0700

Packaging new nova docker PPA with the following fixes,
Handling attaching of multiple vifs.
Closes-Bug: 1458655

Adding attach_interface and detach_interface methods in
driver to handle 'nova interface-attach' and 'nova interface-detach'
commands.
Closes-Bug: 1458553

Change-Id: Iada34e7be3ad2b6a51235a66b657691dae826fbd

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

Reviewed: https://review.opencontrail.org/11203
Committed: http://github.org/Juniper/contrail-packaging/commit/f44ad674ef808ee1792b27c1ff7762a2bd345a6e
Submitter: Zuul
Branch: master

commit f44ad674ef808ee1792b27c1ff7762a2bd345a6e
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Jun 2 14:04:24 2015 -0700

Packaging new nova docker PPA with the following fixes.
Handling attaching of multiple vifs.
Closes-Bug: 1458655

Adding attach_interface and detach_interface methods in
driver to handle 'nova interface-attach' and 'nova interface-detach'
commands.
Closes-Bug: 1458553

Change-Id: Id18481f675ed85ca2b2d64ac8b4d0e8a2f9a053d

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.