container connect both bridge and kuryr network in CI

Bug #1640720 reported by Liping Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-libnetwork
Fix Released
Medium
Liping Mao

Bug Description

Currently, in CI test, we use the following way to create container:
docker_client.create_container
docker_client.start
docker_client.connect_container_to_network

We did not pass network_config when create_container, this will cause the container use default bridge for network, then we add kuryr network into the container, the container will have two interface(one is bridge, another one is kuryr). This is not what we want.

According to dockerpy doc:
https://docker-py.readthedocs.io/en/latest/networks/#container-network-configuration
It need to be changed to when create the container assign kuryr network to it.

something like:
network_config=dc.create_networking_config({'Kuryrnetwork':docker_client.create_endpoint_config()})
docker_client.create_container(..., network_config=networking_config)
docker_client.start

Liping Mao (limao)
Changed in kuryr-libnetwork:
assignee: nobody → Liping Mao (limao)
Liping Mao (limao)
summary: - container connect both bridge and kuryr network in fullstack/rally test
- case
+ container connect both bridge and kuryr network in CI
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kuryr-libnetwork (master)

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

Changed in kuryr-libnetwork:
status: New → In Progress
Changed in kuryr-libnetwork:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr-libnetwork (master)

Reviewed: https://review.openstack.org/396048
Committed: https://git.openstack.org/cgit/openstack/kuryr-libnetwork/commit/?id=6543e0472d3a9530c665975643335fc35185ba46
Submitter: Jenkins
Branch: master

commit 6543e0472d3a9530c665975643335fc35185ba46
Author: Liping Mao <email address hidden>
Date: Thu Nov 10 17:49:25 2016 +0800

    container connect both bridge and kuryr network in Rally

    docker_client.create_container will connect to bridge
    network by default.

    Change-Id: I1d54203a5de60958c094aaeec4182c4253730bf3
    Closes-bug: #1640720

Changed in kuryr-libnetwork:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr-libnetwork 0.2.0

This issue was fixed in the openstack/kuryr-libnetwork 0.2.0 release.

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.