Skip to content

fix: (helm) - prevent sync from deleting all release records if Helm failed to transition state properly during upgrade#4358

Closed
mikeshng wants to merge 1 commit intooperator-framework:masterfrom
mikeshng:fix-helm-sync
Closed

fix: (helm) - prevent sync from deleting all release records if Helm failed to transition state properly during upgrade#4358
mikeshng wants to merge 1 commit intooperator-framework:masterfrom
mikeshng:fix-helm-sync

Conversation

@mikeshng
Copy link
Copy Markdown
Contributor

@mikeshng mikeshng commented Jan 4, 2021

Signed-off-by: Mike Ng ming@redhat.com

Description of the change:
If the 2nd last release record is superseded which indicates that a upgrade has been successfully performed, but the last release is still pending-upgrade which indicates that there Helm did not transition the status properly, then transition the last release record to deployed status.

Motivation for the change:
Due to Helm upgrade release status transition not being an atomic update, see helm/helm#9113
it's possible that the Helm release records are left in the following state after an upgrade:
original release's status is superseded
upgraded release's status is stuck at pending-upgrade
If this is the case, then Helm operator will proceed to remove both of these release records in the Manager's Sync function.
This change is to fix the Helm storage to move the last release into deployed status to prevent all the release records from being deleted.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

…failed to transition state properly during upgrade

Signed-off-by: Mike Ng <ming@redhat.com>
@openshift-bot
Copy link
Copy Markdown

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 1, 2021
@openshift-bot
Copy link
Copy Markdown

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci Bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 26, 2021
@openshift-bot
Copy link
Copy Markdown

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci Bot closed this Jul 26, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jul 26, 2021

@openshift-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants