k0sproject / k0smotron

k0smotron
https://docs.k0smotron.io/
Other
508 stars 48 forks source link

k0smotron bootstrap controller unable to create token secret #827

Closed bnallapeta closed 1 day ago

bnallapeta commented 6 days ago

What happened?

Goal: Trying to provision ManagedCluster with OpenStack as the Infrastructure Provider Current State: Control Plane provisioned and running; but worker machine causing issues.

Upon checking the bootstrap logs, I see this:

2024-11-22T18:33:16Z    ERROR   Reconciler error    {"controller": "k0sworkerconfig", "controllerGroup": "bootstrap.cluster.x-k8s.io", "controllerKind": "K0sWorkerConfig", "K0sWorkerConfig": {"name":"openstack-dev-md-gx7nk-6m6lr","namespace":"hmc-system"}, "namespace": "hmc-system", "name": "openstack-dev-md-gx7nk-6m6lr", "reconcileID": "0edd5d61-61f4-4d80-8326-0ffeed42db4c", "error": "failed to create token secret: failed to get API group resources: unable to retrieve the complete list of server APIs: v1: client rate limiter Wait returned an error: context deadline exceeded - error from a previous attempt: EOF"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:227

which seems to occur from here.

I could find #680 as a related issue. But the solution provided there apparently has not fixed it as we see a similar error.

Involved Areas

No response

What did you expect to happen?

Token secret for the worker nodes should be created so that the machine will continue to get provisioned.

Steps to reproduce

Deploy k0s with OpenStack as the infrastructure provider with k0smotron objects.

k0smotron version

v1.2.0

k0s version

v1.30.6+k0s.0

Anything else we need to know?

No response

makhov commented 1 day ago

The reason was a firewall rule blocking API calls