werf
werf copied to clipboard
Converge hands on deploy error when there is a PV with finalizer in the chart
Before proceeding
- [X] I didn't find a similar issue
Version
1.2.175
How to reproduce
- Suppose there is an error in some-resource*, this error reported by the apiserver at the resource-apply stage (for example admission controller error).
- Deploy release first time (install release).
- Deploy will successfully create some resources (including PV), but will fail on creaing some-resource*.
- Cleanup-on-fail will try to remove successfully created resources and hang on deleting PV with finalizer
- No log messages will be shown why werf tries to remove resources and why it actually hangs.
Result
Converge hangs on PV removal because finalizers not empty.
Expected result
Converge reports in the log original error, and only then hangs on cleanup-on-fail procedure.
Additional information
Related source code: https://github.com/werf/3p-helm/blob/48f5b331d01d0ea62b25c3f72ca7053b744887a5/pkg/action/upgrade.go#L535