Skip to content

Docker network doesn't create any calico network #1641

@mcortinas

Description

@mcortinas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions