Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a RKE2 or K3S cluster #137

Open
klauserber opened this issue Feb 8, 2023 · 6 comments
Open

Cannot create a RKE2 or K3S cluster #137

klauserber opened this issue Feb 8, 2023 · 6 comments

Comments

@klauserber
Copy link

I have problems to create RKE2 or K3S clusters. RKE clusters are working fine.

Test scenario:

Test results:

  • Rancher creates a Hetzner machine
  • Stucks on 'waiting for agent to check in and apply initial plan'

Provisioning log:

9:40:07 am | [INFO ] waiting for viable init node
9:40:43 am | [INFO ] configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan

Log Rancher pod:

2023/02/08 08:40:06 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:06 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:06 [ERROR] error syncing 'fleet-default/test-rke2-pool1-43b82d16-sldnj': handler machine-provision: no machine owner ref, requeuing
2023/02/08 08:40:06 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:06 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:07 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:07 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:07 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:07 [INFO] EnsureSecretForServiceAccount: waiting for secret [test-rke2-bootstrap-template-nmzss-machine-bootstrap-token6krcw] to be populated with token
2023/02/08 08:40:07 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:07 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:08 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:09 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:09 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:09 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:09 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:10 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:10 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:10 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:10 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:10 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:16 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: waiting for viable init node
2023/02/08 08:40:41 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for bootstrap etcd to be available
2023/02/08 08:40:41 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:41 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:41 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:42 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:42 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:42 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:42 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:42 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:42 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:42 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:43 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:45 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:40:46 [INFO] [planner] rkecluster fleet-default/test-rke2: waiting: configuring bootstrap node(s) test-rke2-pool1-6d4f6844f5-q6x5v: waiting for agent to check in and apply initial plan
2023/02/08 08:40:55 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
2023/02/08 08:41:25 [ERROR] error syncing '_all_': handler user-controllers-controller: failed to start user controllers for cluster c-m-fxfl28pp: ClusterUnavailable 503: cluster not found, requeuing
@ghost
Copy link

ghost commented Mar 14, 2023

Is there any update on this issue or was someone able to resolve it?

@sebastianklein96
Copy link

Realizing I'm poking an old issue here, but do you remember what version of Rancher you used, @klauserber ? Still having the same issue using a local Rancher 2.7 instance provisioned with Hetzner Cloud credentials and with all the known fixes applied.

Also, if you used Rancher 2.6+ as well, where do you set the instance type in the new UI?

@ghost
Copy link

ghost commented Jul 17, 2023

Try to enable the userDataFromFile flag in the settings by the pool. Otherwise the cloud-init file by rancher will not be copied/executed on the node.

@kaije5
Copy link

kaije5 commented Mar 30, 2024

Also poking this issue. Have the same issue waiting for agent. Tried a lot of combinations RKE2/K3S different networks etc.
My rancher currently runs on a single node K3S install.

@ammediagmbh
Copy link

ammediagmbh commented Aug 22, 2024

Try to pass https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/download/v1.20.0/ccm-networks.yaml in the Add On Config -> Additional Manifest.

I added the api key and network hardcoded in the yaml.

And use CLoud Provider: External and --cloud-provider=external as Additional Kubelet Args, Additional Controller Manager Args and Additional API Server Args.

Also add the Private IPS in TLS Names.

@mxschmitt
Copy link
Owner

#146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants