Skip to content

[SURE-10589] Fleet does not delete the "cluster-fleet-local-<clusterName>-<hash>" namespace when a cluster is deleted from Rancher UI. #3985

@kkaempf

Description

@kkaempf

SURE-10589

Issue description:

Deleting a cluster from Rancher UI does not clean up the cluster-fleet-local-<clusterName>-<hash> namespace from the SYSTEM project which is created by fleet. 

Business impact:

There is no business impact as such but customer has to delete the namespace manually. 

Troubleshooting steps:

We can clean up this namespace manually or restart the fleet-controller which would clean up the namespace.

Repro steps:

Create a Rancher provisioned downstream cluster.
This would create a namespace in the SYSTEM project for this cluster in cluster-fleet-local-<clusterName>-<hash> format. 
Delete the cluster from Rancher UI. 
This should ideally trigger fleet to remove this namespace once the cluster is deleted. However, the namespace remains as an orphan resource. 

Workaround:

Is a workaround available and implemented? yes
What is the workaround: Restart the fleet-controller to resolve the issue. 

Actual behavior:

Upon cluster deletion the cluster-fleet-local-<clusterName>-<hash> namespace in SYSTEM project is not cleaned up automatically. 

Expected behavior:

Once the cluster is deleted, all of its associated resources should be cleaned up from the cluster. 

Files, logs, traces:

Logs can be uploaded to the Jira on demand since this is easily reproducible.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Needs QA review

Relationships

None yet

Development

No branches or pull requests

Issue actions