Bug 1898954 - Backup script does not take /etc/kubernetes/static-pod-resources on a reliable way
Summary: Backup script does not take /etc/kubernetes/static-pod-resources on a reliabl...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Etcd
Version: 4.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.7.0
Assignee: Suresh Kolichala
QA Contact: ge liu
Depends On:
Blocks: 1905566
TreeView+ depends on / blocked
Reported: 2020-11-18 11:30 UTC by Andreas Nowak
Modified: 2024-06-13 23:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Backup script uses last modified timestamp to determine the latest revision. Consequence: Incorrect static pod resources stored in the backup. Fix: Use a reliable way to determine the latest revision by looking into the manifest files. Result: Correct static pod resources are stored in the backup.
Clone Of:
Last Closed: 2021-02-24 15:34:18 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cluster-etcd-operator pull 504 0 None closed Bug 1898954: Backup script should get the latest revision of static-pod-resources … 2021-02-18 15:48:50 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:34:48 UTC

Comment 8 aygarg 2021-01-22 09:28:10 UTC
Hello Suresh,

In one of the case, I got the same error while restoring the ETCD backup.

tar: *restore-etcd-pod/pod.yaml: Not found in archive
tar: Exiting with failure status due to previous errors

After that the ETCD is completely down and due to that we can't even follow the below workaround.

$ oc debug node/master-0.example.com
sh-4.2# chroot /host
sh-4.4# touch $(crictl inspect $(crictl ps --name etcd$ -q) | jq -r '.status.mounts | .[] | select (.containerPath=="/etc/kubernetes/static-pod-resources") | .hostPath')

Is there any method or steps to fix this now? Will it work if we manually untar the backup and create the missing file with proper contents?

Ayush Garg

Comment 11 errata-xmlrpc 2021-02-24 15:34:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.