Open nitendra-thakur opened 8 months ago
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)