Kuryr-libnetwork v2 plugin

Registered by Liping Mao

After Docker 1.13, docker swarm mode only work with docker managed plugin(v2 plugin). check [1] for more detail.
We need to let kuryr-libentwork support v2plugin mode, so that it can used in docker swarm mode after 1.13.

[1] https://docs.docker.com/engine/extend/

Blueprint information

Status:
Not started
Approver:
Antoni Segura Puimedon
Priority:
High
Drafter:
Liping Mao
Direction:
Approved
Assignee:
Liping Mao
Definition:
Approved
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

The following things need to do in this BP:
1. write config.json for v2plugin.
2. write script to build rootfs.
3. update uwsgi to listen local unix socket.
3. update documents about the feature.

Related Bug:
https://launchpad.net/bugs/1668486

I find there may has bug in 1.13.1 when use scope "global" in the v2plugin, double checking this with Docker team:
https://github.com/docker/libnetwork/issues/1699

After check with Libnetwork team, I find we missed NetworkDriver api AllocateNetwork and FreeNetwork. the api is discribed in ttps://github.com/docker/libnetwork/blob/master/driverapi/driverapi.go , they missed these two api in their documents.

Gerrit topic: https://review.openstack.org/#q,topic:bug/1668486,n,z

Addressed by: https://review.openstack.org/449038
    Kuryr-libnetwork Docker managed plugin

Gerrit topic: https://review.openstack.org/#q,topic:bug/1677299,n,z

Addressed by: https://review.openstack.org/451475
    Add NetworkDriver api AllocateNetwork and FreeNetwork

Gerrit topic: https://review.openstack.org/#q,topic:bp/docker-v2plugin,n,z

Addressed by: https://review.openstack.org/451479
    Update Kuryr-libnetwork Docker managed plugin related doc

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.