-
Notifications
You must be signed in to change notification settings - Fork 227
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
Some resources remain even after downstream cluster was deleted #1674
Comments
The fleet controller would clean them up when it sees the cluster resource being deleted. However, if the fleet controller misses the event, the resources will remain. This should be fixed by the new hook implemented in #1690 |
This should be QA validated |
Extensive testing has been done in #1690, however it looks like we didn't explicitly test the cleanup for old clusters, because Rancher recreated them. TestingWe know the hook script runs. So we just need to verify the clean up part.
|
I tried above steps on 3-4 cluster (imported) and I observed that there are few cluster registrations and service account didn't cleanup. After running command as follows:
I don't see any other resources available to which are from the deleted cluster(s). |
SURE-6578
Issue description:
Some resources remain even after downstream cluster was deleted.
Is this a bug?
As a workaround, could customer remove these resources?
Business impact:
100,000 of resources remain and etcd servers are under pressure.
Troubleshooting steps:
none.
Repro steps:
I could reproduce it in local aws environment.
[Rancher server]
OS: Ubuntu 22.04
Docker: 20.10.23
RKE: 1.4.6
Kubernetes: rancher/hyperkube:v1.26.4-rancher2
Rancher: 2.7.5
Fleet: 0.7.0
[Downstream cluster]
OS: Ubuntu 22.04
Docker: 20.10.23
Kubernetes: v1.26.4-rancher2
[Create custom Downstream cluster]
Create -> RKE1 -> Custom
[Delete the custom Downstream cluster]
From UI.
[Trailing resources remains]
Workaround:
Is workararound available and implemented? no
Actual behavior:
Some resouces remain after cluster deletion.
Expected behavior:
No resource remains after cluster deletion.
The text was updated successfully, but these errors were encountered: