Discovery error: client: etcd cluster is unavailable or misconfigured 防火墙一关就没有route的问题,但etcd依然存在


docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f7572018a5a8 shipyard/shipyard:latest "/bin/controller --de" 4 hours ago Up 48 seconds 0.0.0.0:8080->8080/tcp shipyard-controller
0c774c616944 swarm:latest "/swarm j --addr 192." 4 hours ago Up Less than a second 2375/tcp shipyard-swarm-agent
acaf28972858 swarm:latest "/swarm m --replicati" 4 hours ago Up Less than a second 2375/tcp shipyard-swarm-manager
46dfe5cd3d71 ehazlett/docker-proxy:latest "/usr/local/bin/run" 4 hours ago Up Less than a second 0.0.0.0:2375->2375/tcp shipyard-proxy
25ae952d306d alpine "sh" 4 hours ago Up Less than a second shipyard-certs
cd283187d123 microbox/etcd:latest "/bin/etcd -addr 192." 4 hours ago Up Less than a second 0.0.0.0:4001->4001/tcp, 0.0.0.0:7001->7001/tcp shipyard-discovery
9c5e51120a6c rethinkdb "rethinkdb --bind all" 4 hours ago Up Less than a second 8080/tcp, 28015/tcp, 29015/tcp shipyard-rethinkdb
03088cfa5761 centos "/bin/bash" 3 weeks ago Exited (137) 4 hours ago 0.0.0.0:33061->3306/tcp mysql_db

docker -H tcp://0.0.0.0:2377 info

Containers: 8
Images: 44
Storage Driver: devicemapper
Pool Name: docker-253:0-71633032-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 35.35 GB
Data Space Total: 107.4 GB
Data Space Available: 6.568 GB
Metadata Space Used: 19.39 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.128 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-229.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 1.784 GiB
Name: CentosApp
ID: FW6M:MRCI:PPJM:BERS:4NHG:AQ6H:WZYT:D3EN:V2GG:33VZ:SSGS:OLZJ
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

docker logs shipyard-swarm-manager

INFO Listening for HTTP addr=0.0.0.0:3375 proto=tcp
INFO Leader Election: Cluster leadership lost

INFO Leader Election: Cluster leadership acquired
ERRO Get http://192.168.109.128:2375/v1.15/info: dial tcp 192.168.109.128:2375: getsockopt: no route to host. Are you trying to connect to a TLS-enabled daemon without TLS?
INFO Leader Election: Cluster leadership lost

INFO Leader Election: Cluster leadership acquired
ERRO Get http://192.168.109.128:2375/v1.15/info: dial tcp 192.168.109.128:2375: getsockopt: no route to host. Are you trying to connect to a TLS-enabled daemon without TLS?
INFO Leader Election: Cluster leadership lost

INFO Leader Election: Cluster leadership acquired
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
INFO Listening for HTTP addr=0.0.0.0:3375 proto=tcp
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
INFO Leader Election: Cluster leadership lost

ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Discovery error: Unexpected watch error

ERRO client: etcd cluster is unavailable or misconfigured
INFO Leader Election: Cluster leadership lost

INFO Leader Election: Cluster leadership acquired
ERRO Get http://192.168.109.128:2375/v1.15/info: EOF. Are you trying to connect to a TLS-enabled daemon without TLS?
INFO Listening for HTTP addr=0.0.0.0:3375 proto=tcp
INFO Leader Election: Cluster leadership lost

ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: Unexpected watch error

INFO Leader Election: Cluster leadership acquired
ERRO Get http://192.168.109.128:2375/v1.15/info: EOF. Are you trying to connect to a TLS-enabled daemon without TLS?
INFO Leader Election: Cluster leadership lost

INFO Listening for HTTP addr=0.0.0.0:3375 proto=tcp
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: Unexpected watch error

INFO Leader Election: Cluster leadership lost

INFO Leader Election: Cluster leadership acquired
ERRO Get http://192.168.109.128:2375/v1.15/info: read tcp 172.17.0.2:47953->192.168.109.128:2375: read: connection reset by peer. Are you trying to connect to a TLS-enabled daemon without TLS?
INFO Listening for HTTP addr=0.0.0.0:3375 proto=tcp
INFO Leader Election: Cluster leadership lost

ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: client: etcd cluster is unavailable or misconfigured
ERRO Discovery error: Unexpected watch error

ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Get http://192.168.109.128:2375/v1.15/info: dial tcp 192.168.109.128:2375: getsockopt: no route to host. Are you trying to connect to a TLS-enabled daemon without TLS?
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...
ERRO Leader Election: watch leader channel closed, the store may be unavailable...

docker logs shipyard-swarm-agent

INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
ERRO client: etcd cluster is unavailable or misconfigured
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
ERRO client: etcd cluster is unavailable or misconfigured
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
ERRO client: etcd cluster is unavailable or misconfigured
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001
INFO Registering on the discovery service every 1m0s... addr=192.168.109.128:2375 discovery=etcd://discovery:4001

ps -ef | grep docker

root 1515 1 0 16:24 ? 00:00:01 /usr/bin/docker daemon --selinux-enabled -H tcp://0.0.0.0:2377 -H unix:///var/run/docker.sock
root 2890 1515 0 16:24 ? 00:00:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2375 -container-ip 172.17.0.3 -container-port 2375
root 3004 2940 0 16:24 pts/1 00:00:00 socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
root 3047 1515 0 16:24 ? 00:00:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 7001 -container-ip 172.17.0.6 -container-port 7001
root 3059 1515 0 16:24 ? 00:00:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 4001 -container-ip 172.17.0.6 -container-port 4001
root 3102 1515 0 16:24 ? 00:00:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.17.0.7 -container-port 8080
root 3364 3161 0 16:28 pts/7 00:00:00 grep --color=auto docker
已邀请:

要回复问题请先登录注册