https://rancher.com/ logo
Title
m

melodic-umbrella-19641

04/05/2023, 7:21 PM
I think I’ve got some leftover resources from a deleted cluster that are causing trouble:
[ERROR] error syncing 'c-rht6g/creator-cluster-owner': handler mgmt-auth-crtb-controller: <http://clusters.management.cattle.io|clusters.management.cattle.io> "c-rht6g" not found, requeuing
[ERROR] error syncing 'p-5tnnn/creator-project-owner': handler mgmt-auth-prtb-controller: <http://clusters.management.cattle.io|clusters.management.cattle.io> "c-rht6g" not found, requeuing
[ERROR] error syncing 'p-z884h/creator-project-owner': handler mgmt-auth-prtb-controller: <http://clusters.management.cattle.io|clusters.management.cattle.io> "c-rht6g" not found, requeuing
This cluster
c-rht6g
doesn’t exist in
/v3/clusters
, but something seems to be referencing it. I’m happy to clean up resources manually, but any advice would be appreciated - this is impacting my application because new cluster creation is so slow. Please help 🙏
Additional: This may have been happening before, but yesterday I upgraded from 2.6.5 to 2.6.8 because GKE force-upgraded my cluster to 1.23 (so I will have deviated from the support matrix for a few days).
namespace/c-rht6g
and 2 project namespaces do exist
f

future-night-17486

04/05/2023, 9:56 PM
hi @melodic-umbrella-19641, if the cluster has been deleted, it should be ok to remove those leftovers manually although they should already be removed automatically when the cluster was removed. It is best to make a backup of your local cluster (methods depend on your setup) before the deletion.
m

melodic-umbrella-19641

04/05/2023, 10:10 PM
Thanks @future-night-17486. What do I delete manually? There’s
namespace/c-rht6g
but I don’t know how to actually find the project namespaces. Aside from the 3 namespaces (cluster, default-project, system-project), are there other resources I should try to delete?
f

future-night-17486

04/05/2023, 11:09 PM
Do not delete the default or system project in the local cluster, they are not for this particular downstream cluster c-rht6g. In the local cluster, you should be able to find and delete the following 3 namespaces:
c-rht6g
,
p-5tnnn
and
p-z884h
To see the crtb or prtb, try the following command
k get <http://projectroletemplatebindings.management.cattle.io|projectroletemplatebindings.management.cattle.io> -n p-5tnnn
k get <http://clusterroletemplatebindings.management.cattle.io|clusterroletemplatebindings.management.cattle.io> -n c-rht6g
m

melodic-umbrella-19641

04/06/2023, 2:34 PM
Just deleting
c-rht6g
automatically deletes the 2 related
p-
namespaces. Thank you very much Jack!
🙌 1