-
Notifications
You must be signed in to change notification settings - Fork 76
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
Remove host from inventory #288
Comments
Hi @kerenbenzion, There is a delete webhook that restricts deleting a Note that removing a specific |
@dharmjit if I understood correctly, currently we can do only scale up ? We cannot decrease number of hosts if machine ref has been assigned already ? |
We can do both scale up/scale down for both
If I understand your question correctly, you can detach hosts from the cluster with scale-out operation and once you have identified the host which is removed, you can stop the |
Hi, I am trying to understand if lets say one of my hosts (worker/controlplane) have issues (physical/os ) and I need some time to fix it |
Removing a specific host is not supported as of now. |
Do you know/if it will be supported? |
Hey @kerenbenzion Some context on why you are forbidden to delete a byohost directly. We want to avoid any accidental deletion of byohosts from the cluster which can disrupt your cluster state and workload scheduled on that node. Just re-iterating what @dharmjit mentioned. For any maintenance activity on the host, you should first do a scale-down operation - as of now we can't choose a particular host while scaling down, so your best option now is to teardown the cluster so that all hosts will be released back to capacity pool or try to scale down (control plane / worker) and hope your host is the one being deprovisioned. When doing a scale-down operation or cluster deprovision, you can check the agent logs and when you see something like
This is a valid use case and thank you for pointing it out. When the team is back we will look at prioritizing this issue and include in one of the releases. |
There is a way can do this, be careful, it is not recommend on your product environment. Delete entire byoh provider resource first, and then clean your cluster resource completely. It should solve your current dilemma. |
Hi @kerenbenzion, We were not aware earlier but CAPI already provides a way to delete a specific
Let us know if this works for you. |
This might be an absolute hack. But I got around deleting stagnant byoHosts by temporarily removing the |
I had the similar issue with removing the byohost
Then I tried to remove the machineRef
and got this error
k -n byoh-system logs -f byoh-controller-manager-6c4555b4dd-szlkp
btw no matter with cluster or after removing cluster |
I just tried these steps, and it seems to work:
|
Any solution for this as I am unable to delete byohost even though machine resource is not present ? |
I am trying to use byoh provider and I ran into an issue which I cannot delete an host which is not in use.
I am trying to run uninstall of the agent on the host side , and to run delete on the management side and I get the following error:
the command I am trying to run :
the result:
I have also tried to edit the byoh host object , but I dont manage to commit any changes when I am deleting the machine ref.
Can you let me know what should I do?
kubectl version --short
): Client Version: v1.22.4Server Version: v1.22.4
The text was updated successfully, but these errors were encountered: