Docker/HNS networks are misconfigured after Windows reboots

Bug #1804684 reported by Dariusz Sosnowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

Due to network handling logic in Docker on Windows, restart of Docker service causes networks assigned to Contrail CNM plugin to change its driver from 'Contrail' to 'transparent. These networks cannot be used to run containers in Contrail.

Steps to reproduce:

1. Deploy Contrail Windows compute node.
2. Create a Docker network with Contrail driver on the compute node.

        PS C:\> docker network create -d Contrail --ipam-driver windows --opt tenant=admin --opt network=mynetwork mynetwork

3. Inspect docker networks"

        PS C:\> docker network ls
        NETWORK ID NAME DRIVER SCOPE
        1974eb1e785f none null local
        a9c68bd1b66d mynetwork Contrail local

3. Restart Docker service.
4. Inspect docker networks:

        PS C:\> docker network ls

What should happen:

1. mynetwork should have Contrail driver assigned.

       a9c68bd1b66d mynetwork Contrail local

What happens:

1. mynetwork is deleted and Docker reports internal HNS network corresponding to mynetwork:

       5e51f3198de0 Contrail:a9c68bd1b66db28dd7177f8dbbe5e7c9027cda1aa7a46c4400f6149988bb51c7:admin:mynetwork:10.0.5.0/24 transparent local

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

Review in progress for https://review.opencontrail.org/47814
Submitter: Dariusz Sosnowski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47815
Submitter: Dariusz Sosnowski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47825
Submitter: Jacek Izykowski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47814
Submitter: Jacek Izykowski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47825
Submitter: Micha? C?api?ski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47814
Submitter: Micha? C?api?ski (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/47815
Submitter: Dariusz Sosnowski (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/47825
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/0f35ae928b99904ad00b8572fa703995b3be8336
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 0f35ae928b99904ad00b8572fa703995b3be8336
Author: Jacek Iżykowski <email address hidden>
Date: Fri Nov 23 13:30:01 2018 +0100

Win: manual start_mode for Agnt, CNMplg and Docker

When Windows compute node is rebooted, service initialization
requires additional steps (e.g. removing old HNS networks)
before services are started. These steps are going to be performed
by separate script (that is also going to start the services). This
change can be merged before the script is created because current
behavior is incorrect (so the change doesn't break anything).

Change-Id: Ie095a16d9e70f62884f28733d641fb17229f3439
Partial-Bug: #1804684

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

Review in progress for https://review.opencontrail.org/47929
Submitter: Micha? C?api?ski (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/47929
Committed: http://github.com/Juniper/contrail-windows-docker-driver/commit/5dc2f0fdfcbbd7f1e732a0f4fcb7f6100367f203
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 5dc2f0fdfcbbd7f1e732a0f4fcb7f6100367f203
Author: Michal Clapinski <email address hidden>
Date: Thu Nov 29 14:48:22 2018 +0100

contrail-autostart script

contrail-autostart script is responsible for cleaning up misconfigured
HNS/Docker networks on the compute node. It's configured with schtasks.exe
to run after boot.

Change-Id: Ib5330475180e92c2eb8d80f2d249811a6a9256e5
Partial-Bug: #1804684

Changed in opencontrail:
status: New → Fix Committed
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.