You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the k0s infrastructure provider in conjunction with rke2 provider. The machine provisioning fails often with:
2025-02-13T15:59:18+01:00 ERROR Failed to update Machine {"controller": "remotemachine", "controllerGroup": "infrastructure.cluster.x-k8s.io", "controllerKind": "RemoteMachine", "RemoteMachine": {"name":"remote-test-cp-template-p54jk","namespace":"example-cluster"}, "namespace": "example-cluster", "name": "remote-test-cp-template-p54jk", "reconcileID": "2ec57921-7a95-4b9c-b5a0-41bd4160f320", "remotemachine": {"name":"remote-test-cp-template-p54jk","namespace":"example-cluster"}, "machine": "remote-test-6d6gz", "error": "Operation cannot be fulfilled on machines.cluster.x-k8s.io \"remote-test-6d6gz\": the object has been modified; please apply your changes to the latest version and try again"}
github.com/k0sproject/k0smotron/internal/controller/infrastructure.(*RemoteMachineController).Reconcile
I debugged the issue by running k0smotron on my IDE against the cluster. The Line where the Errors is thrown have a retry for 409 conflict.
But i think the issue is at:
What happened?
When using the k0s infrastructure provider in conjunction with rke2 provider. The machine provisioning fails often with:
Involved Areas
No response
What did you expect to happen?
Machine should be in state Running
Steps to reproduce
Apply this Manifest to CAPI Cluster
k0smotron version
1.4.1
k0s version
Used RKE2
Anything else we need to know?
I debugged the issue by running k0smotron on my IDE against the cluster. The Line where the Errors is thrown have a retry for 409 conflict.
But i think the issue is at:
https://github.com/k0sproject/k0smotron/blob/main/internal/controller/infrastructure/remote_machine_controller.go#L266
It uses
client.Merge
and retries are still failing. When changing it toclient.MergeFrom(machine)
the provisioning succeeds consistently.The text was updated successfully, but these errors were encountered: