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

feat(velero): wait for plugin server to be UP before doing backup/restore #117

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Sep 18, 2020

Signed-off-by: Pawan [email protected]

Why is this PR required? What issue does it fix?:

We are starting the restore operation and then starting the server.
It could lead to a connection failure if server is not ready when
ZFS-LocalPV starts the restore operation.

What this PR does?:

Here, we are waiting for the server to be up before starting the
restore operation. Also re factored few codes.

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

@pawanpraka1 pawanpraka1 added the Enhancement issue/pr is a feature request label Sep 18, 2020
@pawanpraka1 pawanpraka1 requested review from kmova and mynktl September 18, 2020 06:33
@pawanpraka1 pawanpraka1 changed the title [WIP] feat(velero): wait for server before doing backup/restore feat(velero): wait for server before doing backup/restore Sep 18, 2020
@pawanpraka1 pawanpraka1 force-pushed the server branch 2 times, most recently from 5c0a397 to c6dc2ed Compare September 18, 2020 10:53
@pawanpraka1 pawanpraka1 changed the title feat(velero): wait for server before doing backup/restore feat(velero): wait for velero server to be UP before doing backup/restore Sep 18, 2020
…restore

We are starting the restore operation and then starting the server.
It could lead to a connection failure if server is not ready when
ZFS-LocalPV starts the restore operation.

Here, we are waiting for the server to be up before starting the
restore operation. Also re-factored few codes.

Signed-off-by: Pawan <[email protected]>
changelogs/unreleased/117-pawanpraka1 Outdated Show resolved Hide resolved
pkg/zfs/plugin/backup.go Show resolved Hide resolved
Signed-off-by: Pawan <[email protected]>
@pawanpraka1 pawanpraka1 changed the title feat(velero): wait for velero server to be UP before doing backup/restore feat(velero): wait for plugin server to be UP before doing backup/restore Sep 29, 2020
@kmova kmova merged commit 9a3232a into openebs:master Sep 30, 2020
@pawanpraka1 pawanpraka1 deleted the server branch September 30, 2020 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement issue/pr is a feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants