etcdctl check datascale does not work when the etcd client uses TLS #16862
-
Bug report criteria
What happened?etcdctl check datascale does not work when the etcd client uses TLS
Not sure why it tries to access the /metrics endpoint in non-tls mode. We could confirm that metrics are available
`$ /etcdctl version etcdctl version: 3.5.7 What did you expect to happen?etcdctl check datascale to use TLS mode to collect the metrics and run the checks accordingly How can we reproduce it (as minimally and precisely as possible)?Please bring up etcd cluster with client running in TLS mode and run "etcdctl check datascale" Anything else we need to know?No response Etcd version (please run commands below)$ etcdctl version
etcdctl version: 3.5.7
API version: 3.5 Etcd configuration (command line flags or environment variables)paste your configuration hereEtcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)$ etcdctl member list -w table
/run/etcdctl member list -w table
+------------------+---------+----------+--------------------------------------------------------------------+--------------------------+------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER |
+------------------+---------+----------+--------------------------------------------------------------------+--------------------------+------------+
| 2561290d9e8ed912 | started | member-3 | https://member-3:2380 | https://168.254.5.3:2379 | false |
| 737cc990093aacde | started | member-1 | https://member-1:2380 | https://168.254.5.4:2379 | false |
| e96f7993fc6b27ee | started | member-2 | https://member-2:2380 | https://168.254.5.5:2379 | false |
+------------------+---------+----------+--------------------------------------------------------------------+--------------------------+------------+
etcdctl endpoint status -w table
+------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| 168.254.5.5:2379 | e96f7993fc6b27ee | 3.5.7 | 189 MB | true | false | 35 | 13669230 | 13669230 | |
+------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @prabhakar-oracle - Thanks for raising this, can you please confirm what happens if you run the following which explicitly specifies an https endpoint? Note I have used the same ip address as your report above, so please adjust if this has now changed. etcdctl check datascale --endpoints=https://168.254.5.3:2379 |
Beta Was this translation helpful? Give feedback.
-
[root@host-10-64-223-33 ~]# export|grep ETCDCTL [root@host-10-64-223-33 ~]# /run/etcdctl check datascale --endpoints=https://168.254.5.3:2379 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update @prabhakar-oracle. That error looks like a certificate issue in relation to the ca cert. Can you please confirm those certificates are valid? Perhaps use something like |
Beta Was this translation helpful? Give feedback.
Thanks for the update @prabhakar-oracle. That error looks like a certificate issue in relation to the ca cert. Can you please confirm those certificates are valid? Perhaps use something like
curl
so we can rule out certificates issues in general.