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

Installed ManagedClusterAddon not removed after unregistering the ManagedCluster #86

Closed
yue9944882 opened this issue Mar 17, 2022 · 9 comments
Assignees

Comments

@yue9944882
Copy link
Member

After deleting a managed cluster from the hub, the cluster namespace still remains and the ManagedClusterAddons under that cluster namespace are also not stripped from the hub cluster.

I'm not sure if this is the expected behavior, but clarifying the deletion order of these per-cluster resources in the hub data-plane will be helpful.

@qiujian16
Copy link
Member

/assign @zhiweiyin318

I think we should create a proposal to define the deletion behavior.

@qiujian16
Copy link
Member

@zhiweiyin318 is this fixed already?

@zhiweiyin318
Copy link
Member

@qiujian16 no, the deletion proposal still needs to be revised and there are some details which are unclear.

@USER0308
Copy link

@zhiweiyin318 Is this fixed already? I am meeting the same problem now. ManagedClusterAddons created by ClusterManagementAddons such as cluster-proxy, cluster-gateway,service-account still exist event if managedCluster has been deleted. And I try to delete these ManagedClusterAddon by hand, it success, but their manifestworks still remain and cannot be deleted, until deleting the manifestworks' finalizer.

@zhiweiyin318
Copy link
Member

@USER0308 , not yet. we have an enhancement open-cluster-management-io/ocm#140 to follow up the enhancement of mcl deletion process including how to cleanup the addon and manifestwork.
currently ,suggest deleting addon before deleting managedcluster.
it will be great if you can add your use cases to that enhancement issue. thanks .

@USER0308
Copy link

Use case:
Three managedClusters(mcl-1,mcl-2,mcl-3) join into one hub cluster and cluster-proxy, cluster-gateway, service-account these three clusterManagementAddons are installed in hub cluster.

Now I want to detach mcl-1 from hub cluster.

If I firstly delete managedClusterAddon in mcl-1 namespace, it will be recreated by ClusterManagementAddon and it is not work.

If I firstly delete the ClusterManagementAddon, the managedClusterAddon in all of three managedClusters might be deleted, which against my will.

So, after several try, I find that it is work when firstly deleting the managedCluster mcl-1, then deleting the managedClusterAddons in mcl-1 namespace, which will not be recreated since the managedCluster mcl-1 is already not exist.

But this method still has a shortcoming that manifestworks in mcl-1 namespace are still remain and cannot be deleted until removing their's finalizer.

@zhiweiyin318
Copy link
Member

open-cluster-management-io/ocm#140 has completed. Now we support to delete addon and manifests after cluster is deleted.

@zhiweiyin318
Copy link
Member

/close

Copy link
Contributor

openshift-ci bot commented Mar 6, 2024

@zhiweiyin318: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants