Skip to content

fix(tiller): improve handling of corrupted storage - #7319

Merged
bacongobbler merged 1 commit into
helm:dev-v2from
cristiklein:fix/deal-with-corrupted-storage
Jan 8, 2020
Merged

bacongobbler merged 1 commit into
helm:dev-v2from
cristiklein:fix/deal-with-corrupted-storage

Conversation

@cristiklein

Copy link
Copy Markdown

For some reason, many users experince corrupted storage with the
ConfigMaps storage backend. Specifically, several Releases are marked as
DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

Closes #6031

Signed-off-by: Cristian Klein [email protected]

@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 1, 2020
@bacongobbler

bacongobbler commented Jan 1, 2020 •

Copy link
Copy Markdown
Member

Can you re-target this against the dev-v2 branch? Thanks

For some reason, many users experince corrupted storage with the
ConfigMaps storage backend. Specifically, several Releases are marked as
DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

Closes helm#6031

Signed-off-by: Cristian Klein <[email protected]>
@cristiklein
cristiklein force-pushed the fix/deal-with-corrupted-storage branch from 03853ae to 840e0e2 Compare January 2, 2020 10:10
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 2, 2020
@cristiklein
cristiklein changed the base branch from release-2.16 to dev-v2 January 2, 2020 10:11
@cristiklein

Copy link
Copy Markdown
Author

@bacongobbler Thanks for the tip. Please check now. Also, please let me know if I should port this to Helm 3 too.

@thomastaylor312 thomastaylor312 added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 7, 2020

@thomastaylor312 thomastaylor312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still not sure why the "multiple deployed" issue occurs, but this is a good protection regardless. Thanks for the change!

@thomastaylor312

Copy link
Copy Markdown
Contributor

@bacongobbler were you planning on reviewing this too?

@thomastaylor312 thomastaylor312 added the bug Categorizes issue or PR as related to a bug. label Jan 8, 2020
@bacongobbler bacongobbler added this to the 2.16.2 milestone Jan 8, 2020

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Might be worth porting over to Helm 3 if you have time. Thanks!

@bacongobbler
bacongobbler merged commit e910a1c into helm:dev-v2 Jan 8, 2020
@thomastaylor312 thomastaylor312 added the Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR label Jan 8, 2020
cristiklein pushed a commit to cristiklein/helm that referenced this pull request Jan 8, 2020
Helm does not yet properly handle concurrent executions (see helm#7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of helm#7319.

Signed-off-by: Cristian Klein <[email protected]>
cristiklein pushed a commit to cristiklein/helm that referenced this pull request Jan 16, 2020
Helm does not yet properly handle concurrent executions (see helm#7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of helm#7319.

Signed-off-by: Cristian Klein <[email protected]>
mattfarina pushed a commit that referenced this pull request Jan 28, 2020
Helm does not yet properly handle concurrent executions (see #7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of #7319.

Signed-off-by: Cristian Klein <[email protected]>
(cherry picked from commit 1f0582c)
@bacongobbler bacongobbler modified the milestones: 2.16.2, 2.16.4 Feb 13, 2020
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
Helm does not yet properly handle concurrent executions (see helm#7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of helm#7319.

Signed-off-by: Cristian Klein <[email protected]>
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
Helm does not yet properly handle concurrent executions (see helm#7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of helm#7319.

Signed-off-by: Cristian Klein <[email protected]>
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
Helm does not yet properly handle concurrent executions (see helm#7322),
and invoking Helm concurrently on the same release lead to corrupted storage.
Specifically, several Releases may be marked as DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

This is a port to Helm v3 of helm#7319.

Signed-off-by: Cristian Klein <[email protected]>
@mattfarina mattfarina added needs-pick Indicates that a PR needs to be cherry-picked into the next release candidate. picked Indicates that a PR has been cherry-picked into the next release candidate. labels Mar 23, 2020
@gjenkins8 gjenkins8 removed the Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Categorizes issue or PR as related to a bug. needs-pick Indicates that a PR needs to be cherry-picked into the next release candidate. picked Indicates that a PR has been cherry-picked into the next release candidate. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants