Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1812275

Summary: etcd:[DR] restoring node will fail if restore happens more than once.
Product: OpenShift Container Platform Reporter: Sam Batschelet <sbatsche>
Component: EtcdAssignee: Suresh Kolichala <skolicha>
Status: CLOSED DUPLICATE QA Contact: ge liu <geliu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4Keywords: TestBlocker
Target Milestone: ---   
Target Release: 4.5.0   
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: 2020-03-16 13:27:53 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 Sam Batschelet 2020-03-10 21:44:01 UTC
Description of problem: DR is cluster feature performed when the cluster has disruption. Any node at any time should be able to perform the restore actions successfully. DR will currently fail if the command is run more than once.

# /etc/kubernetes/static-pod-resources/etcd-certs/configmaps/etcd-scripts/etcd-snapshot-restore.sh /etc/kubernetes/static-pod-resources/backup/
Moving etcd data-dir /var/lib/etcd/member to /var/lib/etcd-backup
mv: cannot move '/var/lib/etcd/member' to '/var/lib/etcd-backup/member/member': File exists

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results: restore fails if done more than once on same node.


Expected results: restore should not be limited to 1 restore per node as failure can occur at anytime.


Additional info:

Comment 1 Suresh Kolichala 2020-03-16 13:27:53 UTC
This bug is fixed with BZ 1813743 (https://bugzilla.redhat.com/show_bug.cgi?id=1813743).

*** This bug has been marked as a duplicate of bug 1813743 ***