2017-03-22 10:04:34 |
Liping Mao |
description |
Environment:
RHEL + Docker 1.13.1
Reproduce steps:
1. build docker cluster in swarm mode.
2. Create kuryr network in one node, kuryr network will be created as local scope, and we can't see it in other nodes.
[root@limaonew-1 ~]# docker network create --driver=kuryr --ipam-driver=kuryr --subnet 10.225.18.128/26 --gateway 10.225.18.129 --ip-range 10.225.18.128/26 -o neutron.net.uuid=5b231d26-edd8-4536-90e6-be446530b86e limao_input
09e526fb654c119fa27b38ef302b84088442ca57de8e793aafac30045c638c6e
[root@limaonew-1 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
2b3ad1da7716 bridge bridge local
5107a04d5722 docker_gwbridge bridge local
e00cfceecd74 host host local
imaapjuh3iy0 ingress overlay swarm
09e526fb654c limao_input kuryr local
7fc4c8ab228c none null local
[root@limaonew-2 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
f7c6ca2ca6ba bridge bridge local
10d47c92eb61 docker_gwbridge bridge local
1ec28a86071b host host local
imaapjuh3iy0 ingress overlay swarm
747dfd34ce12 none null local |
Environment:
RHEL + Docker 1.13.1
Reproduce steps:
1. build docker cluster in swarm mode.
2. Create kuryr network in one node, kuryr network will be created as local scope, and we can't see it in other nodes.
[root@limaonew-1 ~]# docker network create --driver=kuryr --ipam-driver=kuryr --subnet 10.225.18.128/26 --gateway 10.225.18.129 --ip-range 10.225.18.128/26 -o neutron.net.uuid=5b231d26-edd8-4536-90e6-be446530b86e limao_input
09e526fb654c119fa27b38ef302b84088442ca57de8e793aafac30045c638c6e
[root@limaonew-1 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
2b3ad1da7716 bridge bridge local
5107a04d5722 docker_gwbridge bridge local
e00cfceecd74 host host local
imaapjuh3iy0 ingress overlay swarm
09e526fb654c limao_input kuryr local
7fc4c8ab228c none null local
[root@limaonew-2 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
f7c6ca2ca6ba bridge bridge local
10d47c92eb61 docker_gwbridge bridge local
1ec28a86071b host host local
imaapjuh3iy0 ingress overlay swarm
747dfd34ce12 none null local
When we run kuryr as global scope, there is the following error:
Error response from daemon: rpc error: code = 3 desc = legacy plugin kuryr of type NetworkDriver is not supported in swarm mode
I see comments in https://github.com/docker/docker/issues/24569.
Looks like only plugin v2 works in swarm mode. |
|