Zun

Failed to handle shared network senario

Bug #1727910 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Released
High
Kien Nguyen

Bug Description

Description
===========
Create a network that shared by all tenants. Create container from shared network in different tenants. The container will fail with docker internal error.

Reproduce
=========
$ source /opt/stack/devstack/openrc admin admin
$ openstack network create --share test
$ openstack subnet create --subnet-range 10.2.0.0/24 --network test testsubnet
$ zun run --net network=test nginx
$ source /opt/stack/devstack/openrc demo demo
$ zun run --net network=test nginx
$ zun show cdfa61e6-3764-4f47-ac11-8ea54a4394e6
...
| status | Error
| status_reason | Docker internal error: 500 Server Error: Internal Server Error ("IpamDriver.RequestPool: Another pool with same cidr exist. ipam and network options not used to pass pool name").
...

Note
====
The error is from kuryr-libnetwork. The fix could be either enhance kuryr-libnetwork or work around the issue in Zun. I don't have an exact solution in mind.

hongbin (hongbin034)
Changed in zun:
importance: Undecided → High
status: New → Triaged
Kien Nguyen (kiennt2609)
Changed in zun:
assignee: nobody → Kien Nguyen (kiennt2609)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

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

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

Reviewed: https://review.openstack.org/516232
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=849fc508d3b3cc5e4b0bf263c585161d202e82f6
Submitter: Zuul
Branch: master

commit 849fc508d3b3cc5e4b0bf263c585161d202e82f6
Author: Kien Nguyen <email address hidden>
Date: Mon Oct 30 16:54:06 2017 +0700

    Handle shared network senario

    Create a network that shared by all tenants. Create container from shared
    network in different tenants. The container will fail with docker internal
    error.

    Reproduce
    =========
    $ source /opt/stack/devstack/openrc admin admin
    $ openstack network create --share test
    $ openstack subnet create --subnet-range 10.2.0.0/24 --network test testsubnet
    $ zun run --net network=test nginx
    $ source /opt/stack/devstack/openrc demo demo
    $ zun run --net network=test nginx
    $ zun show cdfa61e6-3764-4f47-ac11-8ea54a4394e6
    ...
    | status | Error
    | status_reason | Docker internal error: 500 Server Error: Internal Server
    Error ("IpamDriver.RequestPool: Another pool with same cidr exist. ipam and
    network options not used to pass pool name").

    This bug needs to the depends-on patch in kuryr-libnetwork.

    Depends-On: I7a0907a6af91b27c4dcc2b543346814182e94ddb
    Change-Id: I9e84acc294ac891f3d4e65866dd2cf415309ed01
    Closes-Bug: #1727910

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

This issue was fixed in the openstack/zun 1.0.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.