rancher: [BUG] Cannot boostrap downstream RKE2 cluster (non ready boostrap machines)

Rancher Server Setup

  • Rancher version: 2.8.2
  • Installation option (Docker install/Helm Chart): Helm chart, 1.27.11, RKE2
  • Proxy/Cert Details: no proxy, lets encrypt with cert manager, layer 4 LB in front

Information about the Cluster

  • Kubernetes version: 1.27.11
  • Cluster Type (Local/Downstream): Downstream, custom cluster with ready machines (trying to add a control, etcd VM and a worker VM for start)
  • Custom = Running the provisioning command displayed on rancher (no docker install just containerd pulled from rancher), Ubuntu 22.04 OS on the nodes

User Information

  • What is the role of the user logged in? Admin

Describe the bug Cannot bootstrap the downstream cluster. Provisioning command is executed with no error but the boostrap node stays for in this state:

[INFO ] non-ready bootstrap machine(s) custom-736e05be332d and join url to be available on bootstrap node

To Reproduce

Have tried multiple times with the same results.

Prepare 2 VMs with Ubuntu 22.04, create a new cluster in rancher with RKE2 type, use the default settings, copy the provisioning command to 2 VMS, one for control plane,etcd and one for worker.

Result

Cluster is stuck on bootstrapping without progress.

Expected Result

Bootstrap should finish and cluster should become active

Screenshots

image

Additional context

Docker logs from cluster-register pod on the bootstrapping machine have this repeated from time to time:

root@eu1-control-1:~# /var/lib/rancher/rke2/bin/crictl --runtime-endpoint unix:///run/k3s/containerd/containerd.sock logs 9f00d5465f44b

time="2024-03-27T08:11:34Z" level=error msg="Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-s7zxv failed, watch closed"
time="2024-03-27T08:12:36Z" level=error msg="Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-bkzjs failed, watch closed"
time="2024-03-27T08:16:34Z" level=error msg="Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-klw7b failed, watch closed"
time="2024-03-27T08:17:36Z" level=error msg="Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-9b8f5 failed, watch closed"
time="2024-03-27T08:21:34Z" level=error msg="Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-p42v6 failed, watch closed"

There no special settings, using the defaults and have done the same multiple times on different installations. This is a fresh install of rancher on a RKE2 cluster and the first downstream cluster I am trying to provision through it.

Any ideas on how to debug more? Never had any issue provisioning RKE2 downstream clusters on custom machines…

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 17

Most upvoted comments

Rancher has become such an unbelievable joke.

It should be a secret in the fleet-default namespace named {cluster_name}-kubeconfig (in the local/upstream/rancher cluster). There are no labels by default so I just added to the metadata section:

metadata:
  labels:
    cluster.x-k8s.io/cluster-name: my-cluster-name

You can probably find more detailed into in the issue I linked.

I have the same problem, posted the information here: https://github.com/rancher/rancher/issues/43701#issuecomment-2022232092

Same issue today, however I successfully created a cluster with the same method successfully just 6 days ago. Besides the k8s version nothing has changed, though deploying using the version of the older cluster also has the same problem.

Rancher 2.8.2 running on 1.21.10 k3s2 attempting to deploy 1.27.16 rke2r2

Stuck at Non-ready bootstrap machine(s) new-cluster-pool1-6k5cs-ztlzk and join url to be available on bootstrap node.

image Unfortunately, this did not seem to work for me. My node is still stuck in “Waiting for node ref” I also tried upgrading to the latest rancher-provisioning-capi as shown in #44929 but it does not seem to make a difference.

We also had this issue, it is related to #44929.

The cluster provisions correctly after using one of the workarounds described there. The workaround that worked for us was to set the cluster.x-k8s.io/cluster-name on the kubeconfig secret in the upstream cluster.

Upgrading rancher to 2.8.3-rc6 also worked.