Bug 1812275 - etcd:[DR] restoring node will fail if restore happens more than once.
Summary: etcd:[DR] restoring node will fail if restore happens more than once.
Keywords:
Status: CLOSED DUPLICATE of bug 1813743
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Etcd
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.5.0
Assignee: Suresh Kolichala
QA Contact: ge liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-10 21:44 UTC by Sam Batschelet
Modified: 2020-03-16 13:27 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-16 13:27:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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