Repository navigation
Description
Output of helm version:
version.BuildInfo{Version:"v3.11.0-rc.1", GitCommit:"9d8fee155bd7e7d3c1390f4076d9271a1147dce5", GitTreeState:"clean", GoVersion:"go1.18.9"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.12", GitCommit:"c6939792865ef0f70f92006081690d77411c8ed5", GitTreeState:"clean", BuildDate:"2022-09-21T12:13:07Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.): On-Premise nutanix hardware
Problem:
helm rollback cmd to latest release breaks the deployment. Hence, corresponding deployments are deleted...everythins is gone after rollback. Using older helm version v3.10.3 works picture perfect.....Below you will find the trerminal output
- BEFORE Rollback:
/$:~/helm_3.11/linux-amd64$ helm history rost-webui -n dns
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
...
258 Wed Jan 11 09:28:02 2023 superseded rost-webui-0.1.0 prod-8f7e8a0e-742694699 Upgrade complete
/$ kubectl get pods -n dns
NAME READY STATUS RESTARTS AGE
rost-webui-764f4d6c84-6xdkx 1/1 Running 0 9m1s
- PERFORM Rollback
/$:~/helm_3.11/linux-amd64$ ./helm rollback rost-webui 258 -n dns
Rollback was a success! Happy Helming!
- AFTER Rollback:
/$:~/helm_3.11/linux-amd64$ helm history rost-webui -n dns
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
...
258 Wed Jan 11 09:28:02 2023 superseded rost-webui-0.1.0 prod-8f7e8a0e-742694699 Upgrade complete
259 Wed Jan 11 09:34:07 1025 superseded rost-webui-0.1.0 prod-8f7e8a0e-742694699 Rollback to 258
/$ kubectl get pods -n dns
No resources found in dns namespace.
Activity
mattfarina commentedon Jan 11, 2023
Yikes. Thanks for providing those details. We will attempt to verify the issue.
mattfarina commentedon Jan 11, 2023
I have been able to verify this is happening. A simple script to reproduce.
This is enough to trigger the problem described here.
mattfarina commentedon Jan 11, 2023
The commit that caused this to happen is 6f8c178 which came in as part of #10912. Unfortunately, this appear to be a merge commit from main so it's not obvious what's causing it at first glance.
mattfarina commentedon Jan 11, 2023
I've been able to trace this to #10912 where
TransformRequests(transformRequests).was introduced. Commenting that out fixes things. This is the source of the issue.If you look at the http requests between 3.11.0-rc.1 and 3.10.3 on rollback with
-v 10as a flag you'll see the HTTP requests have changed. They are being transformed in a way that's causing problems.mattfarina commentedon Jan 11, 2023
I have a fix I'm working on. The could should be available for review on Thursday.
Fix improper use of Table request/response to k8s API
Fix improper use of Table request/response to k8s API
mattfarina commentedon Jan 13, 2023
@bschoenbach https://github.com/helm/helm/releases/tag/v3.11.0-rc.2 is out which fixes the regression. Thank you for catching it and providing details for us to fix it.
Fix improper use of Table request/response to k8s API
Fix improper use of Table request/response to k8s API
bkthong commentedon Nov 1, 2023
I am getting the same behavior on helm 3.11 installed on fedora 38 via dnf:
The following sequence triggers the issue consistently:
$ helm create testchart
$ helm install myapp testchart
$ help upgrade myapp testchart
$ helm rollback myapp
--> pods and deployments are all gone (deleted) after a rollback!!
Manually installing 3.10.3 (https://get.helm.sh/helm-v3.10.3-linux-amd64.tar.gz) currently solves the problem (as in rollback works properly)
$ helm version (install via dnf on Fedora 38)
version.BuildInfo{Version:"v3.11", GitCommit:"", GitTreeState:"", GoVersion:"go1.20.1"}
$ dnf info helm
Last metadata expiration check: 0:00:24 ago on Wed 01 Nov 2023 08:25:30 PM +08.
Installed Packages
Name : helm
Version : 3.11.1
Release : 1.fc38
Architecture : x86_64
Size : 59 M
Source : golang-helm-3-3.11.1-1.fc38.src.rpm
Repository : @System
From repo : fedora
Summary : The Kubernetes Package Manager
URL : https://github.com/helm/helm
License : Apache-2.0
Description :
: Helm is a tool for managing Charts. Charts are packages of pre-configured
: Kubernetes resources.
:
: Use Helm to:
: - Find and use popular software packaged as Helm Charts to run in Kubernetes
: - Share your own applications as Helm Charts
: - Create reproducible builds of your Kubernetes applications
: - Intelligently manage your Kubernetes manifest files
: - Manage releases of Helm packages
$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.2", GitCommit:"846602e50eb29ecdc7441ebed2fc846048959eaa", GitTreeState:"clean", BuildDate:"2023-03-08T15:10:20Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.6+73ac561", GitCommit:"cbbd0bdba10e0b612e32cdeb6462daa6909df4be", GitTreeState:"clean", BuildDate:"2023-07-14T11:07:31Z", GoVersion:"go1.19.10", Compiler:"gc", Platform:"linux/amd64"}