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
What steps did you take and what happened:
I had setup a worker cluster (version 1.25.11) as per getting_started. All cluster-api/byoh resources are created on the management cluster in a dedicated namespace devops-test. byoh agent on each node was started using this command:
Today, I tried upgrading the worker cluster to 1.26.6; starting with KubeControlPlane first. Unfortunately the rollout is stuck and cannot proceed; byoh agent log is having this error:
E1102 01:19:27.661027 2676397 controller.go:317] controller/byohost "msg"="Reconciler error" "error"="UninstallationScript not found in Byohost node01" "name"="node01" "namespace"="devops-test" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost"
byohost node01's events shows this:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ByoHostReleaseSucceeded 51m byomachine-controller ByoHost Released by test-k8s-control-plane-nfws8
Normal ResetK8sNodeSucceeded 13m (x20 over 51m) hostagent-controller k8s Node Reset completed
And it still has the Machine ref set. That ByoMachine resource is already gone. But the machine ref still exist on the ByoHost.
What did you expect to happen:
All nodes should be upgraded to the new version and be in Ready state
Anything else you would like to add:
I think this is generic issue that I face every timeI try to re-purpose a node. ByoHost continue having a reference to the ByoMachine and cannot be attached to new ByoMachines.
Kubernetes version: (use kubectl version --short): v1.25.11 -> v1.26.6
OS (e.g. from /etc/os-release): Ubuntu 20.04 LTS (Focal Fossa)
The text was updated successfully, but these errors were encountered:
nitendra-thakur
changed the title
Cannot re-purposing/upgrade a ByoHost; agent log shows "UninstallationScript not found in Byohost"
Cannot re-purpose/upgrade a ByoHost; agent log shows "UninstallationScript not found in Byohost"
Nov 2, 2023
Issue was because UninstallationScript was missing byohost. I'm not sure why though; may be a past version of the provider component did not use that?
Anyways, I was able to proceed with the upgrade by manually adding that field on all byohosts.
What steps did you take and what happened:
I had setup a worker cluster (version 1.25.11) as per getting_started. All cluster-api/byoh resources are created on the management cluster in a dedicated namespace
devops-test
. byoh agent on each node was started using this command:So far so good; everything works fine.
Today, I tried upgrading the worker cluster to 1.26.6; starting with KubeControlPlane first. Unfortunately the rollout is stuck and cannot proceed; byoh agent log is having this error:
byohost node01's events shows this:
And it still has the Machine ref set. That ByoMachine resource is already gone. But the machine ref still exist on the ByoHost.
What did you expect to happen:
All nodes should be upgraded to the new version and be in Ready state
Anything else you would like to add:
I think this is generic issue that I face every timeI try to re-purpose a node. ByoHost continue having a reference to the ByoMachine and cannot be attached to new ByoMachines.
Environment:
kubectl version --short
): v1.25.11 -> v1.26.6/etc/os-release
): Ubuntu 20.04 LTS (Focal Fossa)The text was updated successfully, but these errors were encountered: