Skip to content

Instantly share code, notes, and snippets.

@roquie
Created July 24, 2017 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roquie/c1f6012d1f15a2ccf5f68406e7b4d99d to your computer and use it in GitHub Desktop.
Save roquie/c1f6012d1f15a2ccf5f68406e7b4d99d to your computer and use it in GitHub Desktop.

List of all nodes:

kontena node ls

output:

NAME                              VERSION   STATUS    INITIAL   LABELS
⊛ Ubuntu-1604-xenial-64-minimal   1.3.3     online    1 / 1     -               <-------- master & node
⊝ (initializing)                            offline   -
⊛ roquie-kvm-1                    1.3.4     online    -         -
⊛ Fluorine                        1.3.4     online    -         -
  1. first node

kontena etcd health roquie-kvm-1

output:

⊗ Node roquie-kvm-1 is unhealthy: proxy: zero endpoints currently available

docker logs kontena-etcd on node roquie-kvm-1

output:

2017-07-24 14:18:50.844356 W | etcdmain: proxy: could not retrieve cluster information from the given urls
2017-07-24 14:18:52.845226 W | etcdserver: could not get cluster response from http://10.81.0.1:2380: Get http://10.81.0.1:2380/members: dial tcp 10.81.0.1:2380: i/o timeout
2017-07-24 14:18:52.845285 W | etcdmain: proxy: could not retrieve cluster information from the given urls
  1. second node

kontena etcd health Fluorine

output:

⊗ Node Fluorine is unhealthy: proxy: zero endpoints currently available

docker logs kontena-etcd on node Fluorine

output:

2017-07-24 14:22:07.421304 W | etcdmain: proxy: could not retrieve cluster information from the given urls
2017-07-24 14:22:09.422150 W | etcdserver: could not get cluster response from http://10.81.0.1:2380: Get http://10.81.0.1:2380/members: dial tcp 10.81.0.1:2380: i/o timeout
2017-07-24 14:22:09.422197 W | etcdmain: proxy: could not retrieve cluster information from the given urls
  1. latest node (master server & node too)

kontena etcd health Ubuntu-1604-xenial-64-minimal

Output

⊛ Node Ubuntu-1604-xenial-64-minimal is healthy

docker logs kontena-etcd on node Ubuntu-1604-xenial-64-minimal

output (it's normal logs, withot critical messages):

...
2017-07-24 14:17:24.913734 I | etcdserver: start to snapshot (applied: 1760176, lastsnap: 1750175)
2017-07-24 14:17:24.931127 I | etcdserver: saved snapshot at index 1760176
2017-07-24 14:17:24.933222 I | etcdserver: compacted raft log at 1755176
2017-07-24 14:17:26.962190 I | fileutil: purged file /var/lib/etcd/member/snap/0000000000000005-00000000001a185b.snap successfull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment