Skip to content

Bug 1828550: safely deprecate stored versions of CRDs #1504

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

Closed

Conversation

exdx
Copy link
Member

@exdx exdx commented May 6, 2020

Description of the change:
This PR adds back the ability for OLM to deprecate storage versions of CRDs during the CRD upgrade process. This was removed when adding support for v1 CRDs because the existing storage deprecation code could cause data loss issues - CRs of removed storage versions would remain in etcd but would not be GETable from the client, causing data loss.

Motivation for the change:
Implement a safe way to deprecate old storage versions of CRDs. This can be done in several ways, but the k8s docs suggest writing each CR to the new storage version first before removing the old stored version.

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /docs
  • Commit messages sensible and descriptive

@exdx exdx requested a review from ecordell May 6, 2020 22:41
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: exdx
To complete the pull request process, please assign kevinrizza
You can assign the PR to them by writing /assign @kevinrizza in a comment when ready.

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

Needs approval from an approver in each of these files:

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

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels May 6, 2020
@openshift-ci-robot
Copy link
Collaborator

@exdx: This pull request references Bugzilla bug 1828550, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1828550: [WIP] safely deprecate stored versions of CRDs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dinhxuanvu dinhxuanvu changed the title Bug 1828550: [WIP] safely deprecate stored versions of CRDs [WIP] Bug 1828550: safely deprecate stored versions of CRDs May 7, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 7, 2020
@openshift-ci-robot
Copy link
Collaborator

@exdx: This pull request references Bugzilla bug 1828550, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

[WIP] Bug 1828550: safely deprecate stored versions of CRDs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@exdx exdx force-pushed the feat/deprecate-storage-versions branch from 4ae455d to 71bff78 Compare May 18, 2020 19:10
@exdx exdx changed the title [WIP] Bug 1828550: safely deprecate stored versions of CRDs Bug 1828550: safely deprecate stored versions of CRDs May 18, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 18, 2020
@exdx exdx force-pushed the feat/deprecate-storage-versions branch from 71bff78 to 7932558 Compare May 18, 2020 19:12
@openshift-ci-robot
Copy link
Collaborator

@exdx: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/unit 7932558 link /test unit
ci/prow/e2e-aws-olm 7932558 link /test e2e-aws-olm

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@exdx
Copy link
Member Author

exdx commented May 19, 2020

Closing in favor of #1529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants