gopher-net / docker-ovs-plugin

An Open vSwitch Plugin for Docker's Libnetwork
Apache License 2.0
76 stars 31 forks source link

Error response from daemon: NetworkDriver.CreateNetwork: Number of Replies should be atleast equal to number of Operations #45

Open KaustubhDhokte opened 7 years ago

KaustubhDhokte commented 7 years ago

I could successfully execute till step 4. Step 5, i.e. docker network create -d ovs mynet is consistently failing with this error: "Error response from daemon: NetworkDriver.CreateNetwork: Number of Replies should be atleast equal to number of Operations"

I tried debugging it, below are the logs of the container 'ubuntu_plugin_1' formed after step 4.

root@kdhokte-0p8tj:/home/ubuntu# docker logs ubuntu_plugin_1 ERRO[0000] could not connect to openvswitch on port [ 6640 ]: dial tcp 127.0.0.1:6640: getsockopt: connection refused. Retrying in 5 seconds DEBU[0007] root group found. gid: 0
2016/12/26 14:11:37 rpc2: client protocol error: unexpected EOF DEBU[0239] Create network request: &{NetworkID:baf387437952422220c26b6efaa5963476cd27fc0cedf8d9b56bd99e03cdf8e7 Options:map[com.docker.network.enable_ipv6:false com.docker.network.generic:map[]] IPv4Data:[0xc820107800] IPv6Data:[]} DEBU[0239] Initializing bridge for network baf387437952422220c26b6efaa5963476cd27fc0cedf8d9b56bd99e03cdf8e7 ERRO[0239] error creating ovs bridge [ ovsbr-baf38 ] : [ Number of Replies should be atleast equal to number of Operations ] DEBU[0754] Create network request: &{NetworkID:4dd93729ae2db431bc09ddde48880cac14b84592f0cf5518bc7721b77fc4da6d Options:map[com.docker.network.generic:map[] com.docker.network.enable_ipv6:false] IPv4Data:[0xc8201079c0] IPv6Data:[]} DEBU[0754] Initializing bridge for network 4dd93729ae2db431bc09ddde48880cac14b84592f0cf5518bc7721b77fc4da6d ERRO[0754] error creating ovs bridge [ ovsbr-4dd93 ] : [ Number of Replies should be atleast equal to number of Operations ] DEBU[1027] Create network request: &{NetworkID:daa414c03d9638c913b36bd3fc2d12bbd25c5c7adf4a8755b3c2a4262cc67c15 Options:map[com.docker.network.enable_ipv6:false com.docker.network.generic:map[]] IPv4Data:[0xc820107b80] IPv6Data:[]} DEBU[1027] Initializing bridge for network daa414c03d9638c913b36bd3fc2d12bbd25c5c7adf4a8755b3c2a4262cc67c15 ERRO[1027] error creating ovs bridge [ ovsbr-daa41 ] : [ Number of Replies should be atleast equal to number of Operations ]

Running this on Ubuntu 14.04 with docker version 1.12.5, build 7392c3b. Any help is appreciated.

TjWallas commented 5 years ago

I can reproduce this on Ubuntu 16.04, and docker deb package version: docker-ce=5:18.09.7~3-0~ubuntu-xenial. Any idea what to do here? //cc @nerdalert @dave-tucker

TjWallas commented 5 years ago

My current workaround to overcome this error is as follows:

  1. Force remove existing docker networks created via the ovs driver using docker network rm --force
  2. Restart the docker daemon using service docker restart
  3. Restart the ovs-plugin containers: docker-compose up -d