How to verify if the restore was successful after etcd restore?

Trinetra S:
Hi Team
After etcd restore how verify if the restore was successfull?

Eyal Solomon:
good question !

Trinetra S:
There is a way to check the member list if anybody knows the correct method please share the details

AT:
For member list, this is what I know:
ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=<trusted-ca-file> --cert=<cert-file> --key=<key-file> member list

Trinetra S:
what is the expected output of the above command? @AT

AT:
@Trinetra S

root@controlplane:~# ETCDCTL_API=3 etcdctl --endpoints=<https://127.0.0.1:2379> --cacert=/etc/kubernetes/pki/etcd/server.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key member list
502897199a3db08d, started, controlplane, <https://10.27.236.9:2380>, <https://10.27.236.9:2379>
root@controlplane:~# 

AT:
I am assuming as far as cluster is coming up fine after the etcd restore, we should be good from exam perspective. Right @unnivkn ?

unnivkn:

  1. Take etcd backup 2) create some pods/deployments after etcd backup 3) restore etcd from backup 4) check the availability of the pods/deployments 5) If successful restore, you won’t be able to find it.

Trinetra S:
Yeah thanks the same scenario is documeneted in one of the etcd pratice tests!