Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restic: Make explicit sync only happen after restore #796

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

JohnStrunk
Copy link
Member

Describe what this PR does
This moves the sync call at the end of the restic mover script so that it only happens after restore operations.

Is there anything that requires special attention?
The sync exists to ensure data is flushed prior to creating a Snapshot. It is needed because we have no guarantee of sequencing between the node's unmount and the CSI snapshot operation that is triggered by our creation of the Snapshot object. Since the snapshot would only affect the destination volume (restore), it is only applicable there.
The unmount of volumes will cause their data to eventually get flushed, so when we don't care about sequencing, we don't need the explicit sync.

Related issues:
Fixes #788
Related #792

Signed-off-by: John Strunk <jstrunk@redhat.com>
@JohnStrunk
Copy link
Member Author

/cc @tesshuflower

@openshift-ci openshift-ci bot requested a review from tesshuflower July 12, 2023 17:07
Copy link
Contributor

@tesshuflower tesshuflower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnStrunk, tesshuflower

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JohnStrunk,tesshuflower]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 7dfdeda into backube:main Jul 12, 2023
21 checks passed
@sonarcloud
Copy link

sonarcloud bot commented Jul 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.3% 1.3% Duplication

@JohnStrunk JohnStrunk deleted the restic-sync branch September 18, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restic backup never reaches Done even though Restic completed successfully
3 participants