Rancher安装出现helm-operation失败需要解决

Rancher Server 设置

  • Rancher 版本:
  • 安装选项 (Docker install/Helm Chart):
    Helm Chart 安装
    RKE1
    Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
    Server Version: v1.29.6
  • 在线或离线部署:
    在线

主机操作系统:
centos8 stream
问题描述:
安装rancher如下错误
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:51 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
2024/12/28 09:52:52 [ERROR] error syncing ‘cattle-system/helm-operation-vrbvk’: handler helm-operation: an error on the server (“container not found ("proxy")”) has prevented the request from succeeding (get pods helm-operation-vrbvk), requeuing
W1228 10:09:17.888830 39 reflector.go:484] pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: watch of *summary.SummarizedObject ended with: too old resource version: 5375 (369195)

cattle-system helm-operation-96749 0/2 Completed 0 42m
cattle-system helm-operation-ndfd2 0/2 Completed 0 41m
cattle-system helm-operation-nv69p 0/2 Completed 0 41m
cattle-system helm-operation-vrbvk 0/2 Completed 0
helm-operation无法正常
重现步骤:
参见官网rancher高可用安装教程
结果:
目前为阿里云环境,必定复现

补充日志

describe helm
Name:             helm-operation-p4779
Namespace:        cattle-system
Priority:         0
Service Account:  default
Node:             master/172.31.85.147
Start Time:       Sun, 29 Dec 2024 11:15:15 +0800
Labels:           pod-impersonation.cattle.io/token=nb9gqtdzmx9csh5884pw8qxqxnzkxn9ftzllfdjwcwz2z25t5xqng6
Annotations:      pod-impersonation.cattle.io/cluster-role: pod-impersonation-helm-op-z6x9l
Status:           Succeeded
IP:               10.0.0.186
IPs:
  IP:  10.0.0.186
Init Containers:
  init-kubeconfig-volume:
    Container ID:  docker://f63eba3dfe7fcc558d525ea554ccea6c4fe622b14e84992d9ec2e67813395654
    Image:         rancher/shell:v0.3.0
    Image ID:      docker-pullable://rancher/shell@sha256:4d7f289b982455e07e96b76bc3f588453e9d353e7160c0aab9f806c3d1e05606
    Port:          <none>
    Host Port:     <none>
    Command:
      sh
      -c
      cp /home/.kube/config /tmp/.kube && chown 1000 /tmp/.kube/config
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Sun, 29 Dec 2024 11:15:15 +0800
      Finished:     Sun, 29 Dec 2024 11:15:15 +0800
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /home/.kube/config from user-kube-configmap (rw,path="config")
      /tmp/.kube from user-kubeconfig (rw)
Containers:
  helm:
    Container ID:  docker://448016b81e091c475e27ff2c6b7aa4beda1cca8bf40988c69328f8040243e056
    Image:         rancher/shell:v0.3.0
    Image ID:      docker-pullable://rancher/shell@sha256:4d7f289b982455e07e96b76bc3f588453e9d353e7160c0aab9f806c3d1e05606
    Port:          <none>
    Host Port:     <none>
    Command:
      helm-cmd
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Sun, 29 Dec 2024 11:15:16 +0800
      Finished:     Sun, 29 Dec 2024 11:15:49 +0800
    Ready:          False
    Restart Count:  0
    Environment:
      KUBECONFIG:  /home/shell/.kube/config
    Mounts:
      /home/shell/.kube/config from user-kubeconfig (rw,path="config")
      /home/shell/helm from data (ro)
  proxy:
    Container ID:  docker://d02e8d2c4b0396bc4988cf1a88cf07193a1f3f3b43e0ed3bb8cd7b89e0f544e2
    Image:         rancher/shell:v0.3.0
    Image ID:      docker-pullable://rancher/shell@sha256:4d7f289b982455e07e96b76bc3f588453e9d353e7160c0aab9f806c3d1e05606
    Port:          <none>
    Host Port:     <none>
    Command:
      sh
      -c
      kubectl proxy --disable-filter || true
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Sun, 29 Dec 2024 11:15:16 +0800
      Finished:     Sun, 29 Dec 2024 11:15:50 +0800
    Ready:          False
    Restart Count:  0
    Environment:
      KUBECONFIG:  /root/.kube/config
    Mounts:
      /root/.kube/config from admin-kubeconfig (ro,path="config")
      /var/run/secrets/kubernetes.io/serviceaccount from pod-impersonation-helm-op-8vkh5-token (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  data:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  helm-operation-xptq9
    Optional:    false
  admin-kubeconfig:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      impersonation-helm-op-admin-kubeconfig-gdx2k
    Optional:  false
  user-kubeconfig:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
  user-kube-configmap:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      impersonation-helm-op-user-kubeconfig-r4cwz
    Optional:  false
  pod-impersonation-helm-op-8vkh5-token:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  pod-impersonation-helm-op-8vkh5-token
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  kubernetes.io/os=linux
Tolerations:     cattle.io/os=linux:NoSchedule
                 node-role.kubernetes.io/controlplane=true:NoSchedule
                 node-role.kubernetes.io/etcd=true:NoExecute
                 node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule
                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  107s  default-scheduler  Successfully assigned cattle-system/helm-operation-p4779 to master
  Normal  Pulled     107s  kubelet            Container image "rancher/shell:v0.3.0" already present on machine
  Normal  Created    107s  kubelet            Created container init-kubeconfig-volume
  Normal  Started    107s  kubelet            Started container init-kubeconfig-volume
  Normal  Pulled     107s  kubelet            Container image "rancher/shell:v0.3.0" already present on machine
  Normal  Created    106s  kubelet            Created container helm
  Normal  Started    106s  kubelet            Started container helm
  Normal  Pulled     106s  kubelet            Container image "rancher/shell:v0.3.0" already present on machine
  Normal  Created    106s  kubelet            Created container proxy
  Normal  Started    106s  kubelet            Started container proxy


logs helm

> 
Defaulted container "helm" out of: helm, proxy, init-kubeconfig-volume (init)
helm upgrade --history-max=5 --install=true --labels=catalog.cattle.io/cluster-repo-name=rancher-charts --namespace=cattle-fleet-system --reset-values=true --take-ownership=true --timeout=5m0s --values=/home/shell/helm/values-fleet-105.0.2-up0.11.2.yaml --version=105.0.2+up0.11.2 --wait=true fleet /home/shell/helm/fleet-105.0.2-up0.11.2.tgz
Release "fleet" does not exist. Installing it now.
NAME: fleet
LAST DEPLOYED: Sun Dec 29 03:15:17 2024
NAMESPACE: cattle-fleet-system
STATUS: deployed
REVISION: 1
TEST SUITE: None

---------------------------------------------------------------------
SUCCESS: helm upgrade --history-max=5 --install=true --labels=catalog.cattle.io/cluster-repo-name=rancher-charts --namespace=cattle-fleet-system --reset-values=true --take-ownership=true --timeout=5m0s --values=/home/shell/helm/values-fleet-105.0.2-up0.11.2.yaml --version=105.0.2+up0.11.2 --wait=true fleet /home/shell/helm/fleet-105.0.2-up0.11.2.tgz
---------------------------------------------------------------------

describe 或者 log 看下 helm-operation 为什么没起来

已補充

我也遇到同样的问题 ,野也是必定复现。而且 不管那个版本 都有这个问题。无限启动新的 helm-*的pod。请问博主的找到解决办法没 ,求分享

没有解决,可以加个好友共享下想法

你这个是成功了,已经是 Completed 状态了