Bug 1846118

Summary: [DOCS] Include steps on validating/verifying an etcd backup
Product: OpenShift Container Platform Reporter: Robert Bost <rbost>
Component: DocumentationAssignee: Kathryn Alexander <kalexand>
Status: CLOSED CURRENTRELEASE QA Contact: ge liu <geliu>
Severity: low Docs Contact: Vikram Goyal <vigoyal>
Priority: low    
Version: 4.4CC: aos-bugs, jokerman, kalexand
Target Milestone: ---Flags: rbost: needinfo-
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-06 18:46:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Bost 2020-06-10 19:58:39 UTC
Document URL: https://docs.openshift.com/container-platform/4.4/backup_and_restore/backing-up-etcd.html

Describe the issue: Need steps on verifying an etcd backup file.

Suggestions for improvement: These commands should work for verifying the db file:
  https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/

Comment 1 Kathryn Alexander 2021-06-25 19:17:24 UTC
This is fixed in the operator in 4.8: https://github.com/openshift/cluster-etcd-operator/blob/master/bindata/etcd/cluster-backup.sh#L119

The backport for 4.6 is forthcoming, and the backport for 4.7 is here: https://github.com/openshift/cluster-etcd-operator/pull/617

I'm opening a PR to update the command output and state that the script verifies the snapshot: https://github.com/openshift/openshift-docs/pull/33997

Robert, does this look ok to you?

Ge Liu, will you PTAL?

Comment 2 ge liu 2021-06-30 03:51:26 UTC
Verified.

Comment 3 Kathryn Alexander 2021-06-30 19:08:26 UTC
I've merged the change into 4.8 and am holding the changes to other branches until the etcd operator is updated.

Comment 4 Kathryn Alexander 2021-07-06 12:50:25 UTC
The 4.7 PR for the etcd operator has merged. I don't see a PR for the 4.6 backport, so I've filed an issue: https://github.com/openshift/cluster-etcd-operator/issues/623

Comment 5 Kathryn Alexander 2021-08-06 18:46:18 UTC
The change has been backported to 4.6 and the docs change is live, eg: https://docs.openshift.com/container-platform/4.8/backup_and_restore/backing-up-etcd.html