Skip to content
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

werf helm upgrade with --atomic flag does not rollback release after receiving SIGINT #59

Open
1 task done
pznamensky opened this issue Jun 19, 2024 · 3 comments
Open
1 task done

Comments

@pznamensky
Copy link

pznamensky commented Jun 19, 2024

Before proceeding

  • I didn't find a similar issue

Version

2.6.0

How to reproduce

  1. Run an upgrade for any chart using --atomic flag: werf helm upgrade --install some-chart --atomic -f values.yaml
  2. Press Ctrl+C (or send SIGINT signal)

Result

Werf will print "Release my-release has been cancelled" and the chart will remain in "pending-*" state.
You can check it like this: helm ls -a

Expected result

The release will be rolled back due --atomic is set.

Additional information

This is how helm works:

^CRelease my-release has been cancelled.
Error: release my-release failed, and has been uninstalled due to atomic being set: context canceled

It would be great if werf could work the same way there.

@pznamensky
Copy link
Author

Just wanted to note that this is quite important in workflows where a werf is invoked from CI/CD, as after cancelling a deployment you need to manually resolve an issue with a pending release.
Usually that's quite inconvenient as the needed access to k8s cluster can only have a limited number of people.

@ilya-lesikov
Copy link
Member

In a few months we will release Nelm (our new deployment engine for werf) as a standalone utility. Nelm will be the Helm 3 replacement, making werf helm obsolete. If everything goes right we plan on removing werf helm afterwards, probably in werf 3.0.

Nelm and werf converge have their own release locking system, which does not rely on the last release status (pending), like Helm. So if nelm/werf is killed, then the lock will be automatically released in a few seconds.

@pznamensky
Copy link
Author

Awesome, thank you.

@ilya-lesikov ilya-lesikov transferred this issue from werf/werf Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants