-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Leftover cluster namespaces after cluster deletion #31546
Comments
@ryanelliottsmith for the multiple customers, what type of downstream clusters are we talking about? Is it all or is it a specific one? |
Tried reproducing this behavior with the following steps:
Result
After deleting 1 downstream cluster, I saw 3 namespaces:
|
Tried reproducing this behavior with the following steps:
Result:
After deleting 5 clusters:
|
Tested an upgrade and rollback scenario with the following steps.
Result:
After upgrading Rancher to v2.5.5, fleet namespaces are added:
After rollback to v2.4.8, fleet namespaces are not removed:
After deleting a cluster from the rollback setup, I was able to see a fleet namespace which was not deleted.
|
@ryanelliottsmith Had your users attempted to upgrade and then rollback? |
Since this was after a rollback from 2.5 to 2.4, we do not expect the fleet namespaces to be cleaned up and this would be expected. |
I was able to reproduce this behavior on Rancher v2.6.3. It is intermittent, but I was able to reproduce it more reliably if the machine deletion took longer than expected or failed. Then, I forced the deletion of the machine. The machines and cluster objects were all cleaned up, but the cluster namespace was leftover. I reproduced this using v2 provisioning (an RKE2 cluster), but the same controllers are used to create the cluster namespace in that case. |
Test Environment:Rancher version: v2.6-head 11a7451 Downstream cluster type: Various (rke1 aws, rke2 aws, rke1 digital ocean) Testing:Tested this issue with the following steps:
Result - Pass Fresh - Pass |
Wait, what about the cluster-fleet-default namespaces? Here is what I see:
I.E. there is one cluster-fleet-default cluster namespace for each cluster namespace. Is this not expected? I'm on v2.6.2 |
@wpwoodjr Those are managed by fleet, not Rancher, and are outside the scope of this issue. |
What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):
Unclear at present, it appears that cluster namespace object deletion is not triggered when a downstream cluster is deleted
Result:
Users have reported issues with Rancher local clusters that have more cluster namespaces than actual downstream clusters:
Environment information
rancher/rancher
/rancher/server
image tag or shown bottom left in the UI): v2.4.8gz#14931
The text was updated successfully, but these errors were encountered: