Open Govinda-Fichtner opened 8 years ago
@Govinda-Fichtner @firecyberice I Might have a fix for this. Testing now.
@Govinda-Fichtner can you please add the missconfigured /etc/systemd/system/docker.service
file
@firecyberice @Govinda-Fichtner Issue was in the script that copies the service file. Was putting it in /lib instead of /etc. #49 for the fix.
root@leader:~# cluster-lab health
Internet Connection
[PASS] eth1 exists
[PASS] eth1 has an ip address
[PASS] Internet is reachable
[PASS] DNS works
Networking
[PASS] eth1.200 exists
[PASS] eth1.200 has correct IP from vlan network
[PASS] Cluster leader is reachable
[PASS] eth1.200 has exactly one IP
[PASS] eth1.200 has no local link address
[PASS] Avahi process exists
[PASS] Avahi is using eth1.200
[PASS] Avahi cluster-leader.service file exists
DNSmasq
[PASS] dnsmasq process exists
[PASS] /etc/dnsmasq.conf backup file exists
Docker
[PASS] Docker is running
[PASS] Docker is configured to use Consul as key-value store
[PASS] Docker is configured to listen via tcp at port 2375
[PASS] Docker listens on 192.168.200.1 via tcp at port 2375 (Docker-Engine)
Consul
[PASS] Consul Docker image exists
[PASS] Consul Docker container is running
[PASS] Consul is listening on port 8300
[PASS] Consul is listening on port 8301
[PASS] Consul is listening on port 8302
[PASS] Consul is listening on port 8400
[PASS] Consul is listening on port 8500
[PASS] Consul is listening on port 8600
[PASS] Consul API works
[PASS] Cluster-Node is pingable with IP 192.168.200.38
[PASS] Cluster-Node is pingable with IP 192.168.200.1
[PASS] No Cluster-Node is in status 'failed'
[PASS] Consul is able to talk to Docker-Engine on port 7946 (Serf)
Swarm
[PASS] Swarm-Join Docker container is running
[PASS] Swarm-Manage Docker container is running
[PASS] Number of Swarm and Consul nodes is equal which means our cluster is healthy
While starting the cluster-lab with a
vagrant up
aftervagrant destroy
I get the following log output:A
docker info
against Swarm results in the following output:A
docker info
against the local Docker installation results inA
cluster-lab health
showsIt seems the Docker daemon was not configured correctly by the cluster-lab.
I guess the problem is related to the following line: https://github.com/hypriot/cluster-lab/blob/master/package/usr/local/lib/cluster-lab/docker_lib#L79-L81
@firecyberice What do you think?