You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Potential issue: --atomic --cleanup-on-fail invoke a rollback without --cleanup-on-fail #7876
I think a helm upgrade --atomic --cleanup-on-fail that results in a rollback could run into an unexpected issue.
--atomic's rollback operation is not influenced by --cleanup-on-fail passed to the upgrade command (ref: code).
If the --atomic invoked rollback fail, it will not --cleanup-on-fail (ref: code)
It is possible to have --cleanup-on-fail be part of a rollback operation (ref: code)
I expected the --cleanup-on-fail to pass through also to the rollback operation if used in conjunction with --atomic. I'm not confident it will matter, but could perhaps the rollback operation render new templates that would fail to be cleaned up?
I am not sure I follow the logic there. Can you produce a proof-of-concept?
It is definitely (under a wide variety of circumstances) possible to have a rollback fail. But when a rollback-on-failure fails, the behavior of the cleanup is very tricky. It is not at all clear what a user expects in that scenario. Our strategy in these cases is to not clean up after a failed rollback because a failed rollback may indicate that something is really wrong. We treat --cleanup-on-fail as only applying to the requested release, not the rollback if the requested release fails.
I am not sure if you are suggesting a way to improve this, or merely suggesting that we should change the meaning of --cleanup-on-fail to include cleaning up failed rollbacks (which sounds possibly too destructive to me). But an example case might help clarify things for me.
@technosophos my main personal concern was that it was too much ambiguity of how --cleanup-on-fail worked.
I've not experienced an issue from a failing rollback with --atomic and have no input on what is the best default behavior. But, if the default doesn't involve --cleanup-on-fail for the atomic rollback operation even though --cleanup-on-fail was specified (and applied for the upgrade operation), I think that should be documented within the CLI's --help text that it only applies to the new resources in the upgrade, but not the potential rollback caused by --atomic.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
Activity
technosophos commentedon Apr 6, 2020
I am not sure I follow the logic there. Can you produce a proof-of-concept?
It is definitely (under a wide variety of circumstances) possible to have a rollback fail. But when a rollback-on-failure fails, the behavior of the cleanup is very tricky. It is not at all clear what a user expects in that scenario. Our strategy in these cases is to not clean up after a failed rollback because a failed rollback may indicate that something is really wrong. We treat
--cleanup-on-failas only applying to the requested release, not the rollback if the requested release fails.I am not sure if you are suggesting a way to improve this, or merely suggesting that we should change the meaning of
--cleanup-on-failto include cleaning up failed rollbacks (which sounds possibly too destructive to me). But an example case might help clarify things for me.consideRatio commentedon Apr 6, 2020
@technosophos my main personal concern was that it was too much ambiguity of how --cleanup-on-fail worked.
I've not experienced an issue from a failing rollback with
--atomicand have no input on what is the best default behavior. But, if the default doesn't involve--cleanup-on-failfor the atomic rollback operation even though--cleanup-on-failwas specified (and applied for the upgrade operation), I think that should be documented within the CLI's --help text that it only applies to the new resources in the upgrade, but not the potential rollback caused by--atomic.technosophos commentedon Apr 6, 2020
Yeah, for sure it should be documented.
It is possible that our assumptions about rollbacks are wrong. Recovery is definitely a tangled web.
github-actions commentedon Aug 21, 2020
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
bridgetkromhout commentedon Sep 19, 2020
Removing
stalelabel as I intend to document.github-actions commentedon Dec 19, 2020
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.