Skip to content
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

[Release-1.29] - Errors when uninstalling rke2 from windows agent #5958

Closed
manuelbuil opened this issue May 23, 2024 · 1 comment
Closed
Assignees

Comments

@manuelbuil
Copy link
Contributor

Backport fix for Errors when uninstalling rke2 from windows agent

@mdrahman-suse
Copy link
Contributor

Validated on release-1.29 branch with commit 0c6c6ff

Testing

Validation

PS C:\Users\Administrator> C:\usr\local\bin\rke2.exe -v
rke2.exe version v1.29.5+dev.0c6c6ff0 (0c6c6ff050d277db532021437fd94a66e46b1337)
go version go1.21.9
PS C:\Users\Administrator> c:/usr/local/bin/rke2-uninstall.ps1
Beginning the uninstall process


    Directory: C:\var\lib\rancher\rke2\bin


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        6/11/2024   3:33 PM              0 rke2-uninstall.lock

Confirm
Are you sure you want to perform the Stop-Process operation on the following item: kubelet(944)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
time="2024-06-11T15:34:50Z" level=warning msg="task 6c43fb597dec7337e4f92c83b3b8b6102cccbb66c4c657c9f8abff80e54a7075 exit with non-zero exit code 1067"
time="2024-06-11T15:34:51Z" level=warning msg="task 
...
Tasks, containers, images and snapshots are being deleted. This may take a while (timeout 180s)
Snapshots still present. Retrying namespace deletion in 10s...
k8s.io
All containerd resources have been deleted
INFO: Checking if rke2 process exists
INFO: rke2 process found, stopping now

Confirm
Are you sure you want to perform the Stop-Process operation on the following item: rke2(2660)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
INFO: Checking if kube-proxy process exists
INFO: kube-proxy process found, stopping now

Confirm
Are you sure you want to perform the Stop-Process operation on the following item: kube-proxy(3796)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
INFO: Checking if kubelet process exists
INFO: Checking if containerd process exists
INFO: containerd process found, stopping now

Confirm
Are you sure you want to perform the Stop-Process operation on the following item: containerd(2456)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
INFO: Checking if wins process exists
INFO: Checking if calico-node process exists
INFO: Checking if flanneld process exists
INFO: Checking if rke2 service exists
INFO: rke2 service found, stopping now
INFO: rke2 service has stopped. Removing the rke2 service ...
[SC] DeleteService SUCCESS
INFO: Checking if wins service exists
INFO: Cleaning c:/usr...
INFO: Cleaning c:/etc...
INFO: Cleaning c:/run...
INFO: Cleaning c:/var...
INFO: Cleaning ...
INFO: Cleaning ...
INFO: Cleaning ...
INFO: Cleaning Temp Install Directory...
INFO: Cleaning RKE2 Environment Variables
INFO: Cleaning RKE2 Machine Environment Variables
INFO: Cleaning CATTLE_AGENT_BIN_PREFIX
INFO: HNS will be cleaned next, temporary network disruption may occur. HNS cleanup is the final step.
INFO: Cleaning up HnsNetwork nat ...
INFO: Cleaning up HnsNetwork flannel.4096 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants