moby / moby/libnetwork

Docker network doesn't create any calico network

Open
#1,641 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.2k
Forks
875
PR merge metrics
No merged PRs in 30d

Description

I cannot create docker network , I'm running CentOs7:

# docker network create --driver=calico --ipam-driver=calico-ipam my-calico-net
Error response from daemon: failed to update store for object type *libnetwork.endpointCnt: client: etcd cluster is unavailable or misconfigured

Other thest in order to describe my environment

# curl http://IP_ETCD_SERVER:2379/version
{"etcdserver":"3.1.0","etcdcluster":"3.1.0"}

# ps -ef|grep docker|grep daemon
root      7846     1 99 10:22 ?        02:55:38 /usr/bin/docker daemon --cluster-store=etcd://IP_ETCD_SERVER:2379 --cluster-advertise=br25:2379 -H unix:///var/run/docker.sock --ip-forward=true --iptables=true --ip-masq=true --log-driver journald --storage-driver=overlay

# /usr/local/bin/calicoctl node checksystem
Checking kernel version...
                3.10.0-327.36.3.el7.x86_64                                      OK
Checking kernel modules...
                xt_set                                                  OK
                ip6_tables                                              OK
System meets minimum system requirements to run Calico!

# /usr/local/bin/calicoctl node run
Running command to load modules: modprobe -a xt_set ip6_tables
Enabling IPv4 forwarding
Enabling IPv6 forwarding
Increasing conntrack limit
Removing old calico-node container (if running).
Running the following command to start calico-node:

docker run --net=host --privileged --name=calico-node -d --restart=always -e ETCD_SCHEME= -e NODENAME=IP_CALICO_SERVER_NAME -e CALICO_NETWORKING_BACKEND=bird -e NO_DEFAULT_POOLS= -e CALICO_LIBNETWORK_ENABLED=true -e CALICO_LIBNETWORK_IFPREFIX=cali -e ETCD_ENDPOINTS=http://IP_ETCD_SERVER:2379 -e ETCD_AUTHORITY= -v /lib/modules:/lib/modules -v /var/log/calico:/var/log/calico -v /run/docker/plugins:/run/docker/plugins -v /var/run/docker.sock:/var/run/docker.sock -v /var/run/calico:/var/run/calico calico/node:v1.0.2

Image may take a short time to download if it is not available locally.
Container started, checking progress logs.
Waiting for etcd connection...
Using configured IPv4 address: IP_CALICO_SERVER
No IPv6 address configured
Using global AS number
Calico node name:  IP_CALICO_SERVER_NAME
CALICO_LIBNETWORK_ENABLED is true - start libnetwork service
Calico node started successfully

# docker version
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:23:11 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:23:11 2016
 OS/Arch:      linux/amd64

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the docker network create command with the reported Docker 1.11.2 and Calico node configuration. Check the calicoctl node run output and the daemon's etcd-related error to determine why the endpoint count store cannot be updated. Done means identifying a reproducible cause and documenting or validating a fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.