Skip to content

bug(tiller): set status correctly in performUpdate - #1335

Merged
michelleN merged 1 commit into
helm:masterfrom
michelleN:ref-perform-update
Oct 13, 2016
Merged

michelleN merged 1 commit into
helm:masterfrom
michelleN:ref-perform-update

Conversation

@michelleN

@michelleN michelleN commented Oct 11, 2016 •

Copy link
Copy Markdown
Member

Handling release status updates on errors better
resolves #1137


This change is Reviewable

@michelleN

Copy link
Copy Markdown
Member Author

wip: manual testing

@michelleN michelleN changed the title bug(tiller): performUpdate sets statuses correctly bug(tiller): set status correctly in performUpdate Oct 11, 2016
@michelleN
michelleN force-pushed the ref-perform-update branch 3 times, most recently from 42a6c77 to 31e6215 Compare October 12, 2016 15:28
@michelleN

michelleN commented Oct 12, 2016 •

Copy link
Copy Markdown
Member Author

Some more background on this issue:
Currently, if a multi-resource upgrade occurs and part of it fails (say in the kube client), the user sees an upgrade failure and a new release-version is not recorded. The original release-version is left marked as DEPLOYED. This is a false representation of the current state because part of the upgrade may have succeeded so the original release is not still in tact.
The truest representation is that the previous release-version has been SUPERSEDED and the current (upgraded) release-version has FAILED and the state of the entire release (regardless of version) is actually unknown.
Note: I'll open a separate issue for figuring out how one might deal with and recover from failed upgrades

To test these changes manually, one might use the alpine example chart.

  1. install example alpine chart for an initial release
  2. Edit the chart: Add another alpine pod in the chart template file that is invalid (i.e. invalid name, invalid restartPolicy). Also, edit the image tag in the first/original pod.
  3. Upgrade the release to the new chart.
    You'll see a failure message but the correct statuses for each revision using the helm history command.

Handling release status updates on errors better
resolves helm#1137
@michelleN
michelleN merged commit 69b03a3 into helm:master Oct 13, 2016
@michelleN
michelleN deleted the ref-perform-update branch October 13, 2016 13:37
MichaelMorrisEst pushed a commit to Nordix/helm that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

performUpdate does not mark a release as FAILED on failure

3 participants