helm upgrade fails since 3.7
Output of helm version: 3.7
Output of kubectl version: 1.22.2
Cloud Provider/Platform (AKS, GKE, Minikube etc.): private cloud K8s
version 3.6.3 was working fine, as of 3.7 i'm getting: Error: UPGRADE FAILED: timed out waiting for the condition ##[error]history.go:56: [debug] getting history for release eventsourcerapi
The pods in k8s don't get created, so I think helm is failing before that, when retrieving the history.
here the complete debug log:
2021-09-16T04:05:12.3518459Z [command]D:\AzureDevOps-agent1_work_tool\helm\3.7.0\x64\windows-amd64\helm.exe upgrade --namespace moo-dev --install --values D:\AzureDevOps-agent1_work\r12\a_eventsourcer\KubernetesAPI\values.yaml --wait --debug eventsourcerapi D:\AzureDevOps-agent1_work\r12\a_Infra.HelmCharts\api 2021-09-16T04:10:13.3558029Z history.go:56: [debug] getting history for release eventsourcerapi 2021-09-16T04:10:13.3559274Z upgrade.go:139: [debug] preparing upgrade for eventsourcerapi 2021-09-16T04:10:13.3559850Z upgrade.go:147: [debug] performing update for eventsourcerapi 2021-09-16T04:10:13.3560532Z upgrade.go:319: [debug] creating upgraded release for eventsourcerapi 2021-09-16T04:10:13.3562119Z client.go:218: [debug] checking 4 resources for changes 2021-09-16T04:10:13.3562740Z client.go:501: [debug] Looks like there are no changes for Secret "eventsourcerapi-cert" 2021-09-16T04:10:13.3563319Z client.go:501: [debug] Looks like there are no changes for Service "eventsourcerapi" 2021-09-16T04:10:13.3564068Z W0916 06:05:13.289172 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress 2021-09-16T04:10:13.3576522Z W0916 06:05:13.295176 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress 2021-09-16T04:10:13.3577636Z W0916 06:05:13.302173 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress 2021-09-16T04:10:13.3578282Z wait.go:48: [debug] beginning wait for 4 resources with timeout of 5m0s 2021-09-16T04:10:13.3578884Z upgrade.go:420: [debug] warning: Upgrade "eventsourcerapi" failed: timed out waiting for the condition 2021-09-16T04:10:13.3579447Z Error: UPGRADE FAILED: timed out waiting for the condition 2021-09-16T04:10:13.3579918Z helm.go:88: [debug] timed out waiting for the condition 2021-09-16T04:10:13.3580334Z UPGRADE FAILED 2021-09-16T04:10:13.3580686Z main.newUpgradeCmd.func2 2021-09-16T04:10:13.3581198Z helm.sh/helm/v3/cmd/helm/upgrade.go:200 2021-09-16T04:10:13.3581754Z github.com/spf13/cobra.(*Command).execute 2021-09-16T04:10:13.3582260Z github.com/spf13/[email protected]/command.go:856 2021-09-16T04:10:13.3582772Z github.com/spf13/cobra.(*Command).ExecuteC 2021-09-16T04:10:13.3583348Z github.com/spf13/[email protected]/command.go:974 2021-09-16T04:10:13.3583844Z github.com/spf13/cobra.(*Command).Execute 2021-09-16T04:10:13.3584286Z github.com/spf13/[email protected]/command.go:902 2021-09-16T04:10:13.3584670Z main.main 2021-09-16T04:10:13.3585051Z helm.sh/helm/v3/cmd/helm/helm.go:87 2021-09-16T04:10:13.3585447Z runtime.main 2021-09-16T04:10:13.3585803Z runtime/proc.go:225 2021-09-16T04:10:13.3586302Z runtime.goexit 2021-09-16T04:10:13.3586788Z runtime/asm_amd64.s:1371 2021-09-16T04:10:13.3651817Z ##[error]history.go:56: [debug] getting history for release eventsourcerapi upgrade.go:139: [debug] preparing upgrade for eventsourcerapi upgrade.go:147: [debug] performing update for eventsourcerapi upgrade.go:319: [debug] creating upgraded release for eventsourcerapi client.go:218: [debug] checking 4 resources for changes client.go:501: [debug] Looks like there are no changes for Secret "eventsourcerapi-cert" client.go:501: [debug] Looks like there are no changes for Service "eventsourcerapi" W0916 06:05:13.289172 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress W0916 06:05:13.295176 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress W0916 06:05:13.302173 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress wait.go:48: [debug] beginning wait for 4 resources with timeout of 5m0s upgrade.go:420: [debug] warning: Upgrade "eventsourcerapi" failed: timed out waiting for the condition Error: UPGRADE FAILED: timed out waiting for the condition helm.go:88: [debug] timed out waiting for the condition UPGRADE FAILED main.newUpgradeCmd.func2 helm.sh/helm/v3/cmd/helm/upgrade.go:200 github.com/spf13/cobra.(*Command).execute github.com/spf13/[email protected]/command.go:856 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/[email protected]/command.go:974 github.com/spf13/cobra.(*Command).Execute github.com/spf13/[email protected]/command.go:902 main.main helm.sh/helm/v3/cmd/helm/helm.go:87 runtime.main runtime/proc.go:225 runtime.goexit runtime/asm_amd64.s:1371
I have a feeling this may be relevant…
W0916 06:05:13.289172 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Helm 3.7 is compiled against the Kubernetes 1.22 client libraries.
I have a feeling this may be relevant…
W0916 06:05:13.289172 3416 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Helm 3.7 is compiled against the Kubernetes 1.22 client libraries.
helm 3.6.3 with kubectl 1.22 worked just fine, or are there some internals i'm missing? Just checked to be sure and updated the ingress, not helping.
I will close this for now; this seems to be the perfect storm: our infrastructure provider (private cloud K8s) has some certificate issues as of the same date as the release of helm 3.7.