Page MenuHomePhabricator

spicerack.etcdctl: allow getting current cluster status
Closed, ResolvedPublic

Description

When managing the etcd clusters we want to know also if the cluster is healthy or not, specially before and after taking
some actions.

This is to introduce a method to retrieve the cluster health status, the equivalent of:

member 5208bbf5c00e7cdf is healthy: got healthy result from https://toolsbeta-test-k8s-etcd-6.toolsbeta.eqiad1.wikimedia.cloud:2379
member 5ffb924838da87fe is healthy: got healthy result from https://toolsbeta-test-k8s-etcd-4.toolsbeta.eqiad1.wikimedia.cloud:2379
member 8a72276c69aa404b is healthy: got healthy result from https://toolsbeta-test-k8s-etcd-8.toolsbeta.eqiad1.wikimedia.cloud:2379
member c180a79686e4a7de is unhealthy: got unhealthy result from https://toolsbeta-test-k8s-etcd-5.toolsbeta.eqiad1.wikimedia.cloud:2379
member cf058388c7baaeeb is healthy: got healthy result from https://toolsbeta-test-k8s-etcd-7.toolsbeta.eqiad1.wikimedia.cloud:2379
member f91f3e741e62d53e is healthy: got healthy result from https://toolsbeta-test-k8s-etcd-9.toolsbeta.eqiad1.wikimedia.cloud:2379
cluster is healthy

Event Timeline

dcaro triaged this task as Medium priority.Mar 3 2021, 2:51 PM
dcaro created this task.

Change 676367 had a related patch set uploaded (by David Caro; author: David Caro):

[operations/software/spicerack@master] toolforge.etcdctl: Allow getting the cluster health

https://gerrit.wikimedia.org/r/676367

Change 676367 merged by jenkins-bot:

[operations/software/spicerack@master] toolforge.etcdctl: Allow getting the cluster health

https://gerrit.wikimedia.org/r/676367