Skip to content

BUG: Breaking all installs on clusters with ARM nodes.  #115

@siimaus

Description

@siimaus

We are running cluster with mixed arm and amd nodes (managed by Karpenter). Lately we are starting to have issues:

When trying to install for example Rancher Monitoring for v2.11 charts, hook jobs from Helm charts report following:

Running /etc/scripts/..2025_07_10_12_03_05.1627751460/delete-workloads-with-old-labels.sh...
+ kubectl delete daemonset -l app=prometheus-node-exporter,release=rancher-monitoring --ignore-not-found=true
bash: line 7: /bin/kubectl: cannot execute binary file: Exec format error

This clearly indicates that at least image rancher/kuberlr-kubectl:v4.0.1 is missing arm architecture or has invalid architecture kubectl image copied to produced image.

What I was trying to do: Upgrade rancher monitoring chart on cluster, recent operation Yaml was this:

apiVersion: catalog.cattle.io/v1
kind: Operation
metadata:
  creationTimestamp: '2025-07-10T11:46:46Z'
  generation: 1
  
  name: helm-operation-n9wf8
  namespace: cattle-monitoring-system
  ownerReferences:
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      name: pod-impersonation-helm-op-vd9xg
      uid: 1b8c252c-e8ab-4024-9a21-6fa0bda79b76
  resourceVersion: '702316184'
  uid: 5e80c6fe-1844-4faa-9080-908826edff65
status:
  action: upgrade
  command:
    - helm
    - upgrade
    - '--history-max=5'
    - '--install=true'
    - '--labels=catalog.cattle.io/cluster-repo-name=rancher-charts'
    - '--namespace=cattle-monitoring-system'
    - '--timeout=10m0s'
    - >-
      --values=/home/shell/helm/values-rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.yaml
    - '--version=106.1.2+up69.8.2-rancher.7'
    - '--wait=true'
    - rancher-monitoring-crd
    - /home/shell/helm/rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.tgz
    - ;
    - helm
    - upgrade
    - '--history-max=5'
    - '--install=true'
    - '--labels=catalog.cattle.io/cluster-repo-name=rancher-charts'
    - '--namespace=cattle-monitoring-system'
    - '--timeout=10m0s'
    - >-
      --values=/home/shell/helm/values-rancher-monitoring-106.1.2-up69.8.2-rancher.7.yaml
    - '--version=106.1.2+up69.8.2-rancher.7'
    - '--wait=true'
    - rancher-monitoring
    - /home/shell/helm/rancher-monitoring-106.1.2-up69.8.2-rancher.7.tgz
  conditions:
    - lastUpdateTime: '2025-07-10T11:57:45Z'
      status: 'False'
      type: Reconciling
    - lastUpdateTime: '2025-07-10T11:57:45Z'
      message: ' exit code: 123'
      reason: Stalled
      status: 'True'
      type: Stalled
  namespace: cattle-monitoring-system
  observedGeneration: 1
  podCreated: true
  podName: helm-operation-n9wf8
  podNamespace: cattle-system
  releaseName: rancher-monitoring
  token: 5mn*********************************************vw8

Log output from Helm upgrade job:

helm upgrade --history-max=5 --install=true --labels=catalog.cattle.io/cluster-repo-name=rancher-charts --namespace=cattle-monitoring-system --timeout=10m0s --values=/home/shell/helm/values-rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.yaml --version=106.1.2+up69.8.2-rancher.7 --wait=true rancher-monitoring-crd /home/shell/helm/rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.tgz
Release "rancher-monitoring-crd" has been upgraded. Happy Helming!
NAME: rancher-monitoring-crd
LAST DEPLOYED: Thu Jul 10 12:01:58 2025
NAMESPACE: cattle-monitoring-system
STATUS: deployed
REVISION: 82
TEST SUITE: None
---------------------------------------------------------------------
SUCCESS: helm upgrade --history-max=5 --install=true --labels=catalog.cattle.io/cluster-repo-name=rancher-charts --namespace=cattle-monitoring-system --timeout=10m0s --values=/home/shell/helm/values-rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.yaml --version=106.1.2+up69.8.2-rancher.7 --wait=true rancher-monitoring-crd /home/shell/helm/rancher-monitoring-crd-106.1.2-up69.8.2-rancher.7.tgz
---------------------------------------------------------------------
helm upgrade --history-max=5 --install=true --labels=catalog.cattle.io/cluster-repo-name=rancher-charts --namespace=cattle-monitoring-system --timeout=10m0s --values=/home/shell/helm/values-rancher-monitoring-106.1.2-up69.8.2-rancher.7.yaml --version=106.1.2+up69.8.2-rancher.7 --wait=true rancher-monitoring /home/shell/helm/rancher-monitoring-106.1.2-up69.8.2-rancher.7.tgz
Error: UPGRADE FAILED: pre-upgrade hooks failed: 1 error occurred:
	* timed out waiting for the condition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions