Skip to content

Instantly share code, notes, and snippets.

@emersonford
Created November 20, 2020 22:33
Show Gist options
  • Save emersonford/351ffbbe8ef4ff0b83381d02da461113 to your computer and use it in GitHub Desktop.
Save emersonford/351ffbbe8ef4ff0b83381d02da461113 to your computer and use it in GitHub Desktop.
TASK [etcd : Configure | Wait for etcd cluster to be healthy] **********************************************************************************************************
fatal: [foobar1.org]: FAILED! => {"attempts": 4, "changed": false, "cmd": "set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v 'Error: unhealthy cluster' >/dev/null", "delta": "0:00:05.026996", "end": "2020-11-19 15:13:35.094710", "msg": "non-zero return code", "rc": 1, "start": "2020-11-19 15:13:30.067714", "stderr": "{\"level\":\"warn\",\"ts\":\"2020-11-19T15:13:35.093-0600\",\"caller\":\"clientv3/retry_interceptor.go:61\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-dae834aa-7d04-4b91-aab1-b95ce781dd3c/XXX.XXX.XXX.177:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: Error while dialing dial tcp XXX.XXX.XXX.177:2379: connect: connection refused\\\"\"}\nError: failed to fetch endpoints from etcd cluster member list: context deadline exceeded", "stderr_lines": ["{\"level\":\"warn\",\"ts\":\"2020-11-19T15:13:35.093-0600\",\"caller\":\"clientv3/retry_interceptor.go:61\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-dae834aa-7d04-4b91-aab1-b95ce781dd3c/XXX.XXX.XXX.177:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: Error while dialing dial tcp XXX.XXX.XXX.177:2379: connect: connection refused\\\"\"}", "Error: failed to fetch endpoints from etcd cluster member list: context deadline exceeded"], "stdout": "", "stdout_lines": []}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment