Skip to content

bug: workspace object deletion seems to lack behind logicalcluster deletion by considerable margin #4012

Closed

Description

@SimonTheLeg

Describe the bug

Especially on larger setups, you can run into situations where even 5-10 minutes after the logicalcluster is already gone, kubectl get workspace still reports the workspace as ready and good to go.

Here is an example. We can see in monitoring that all logicalclusters are gone for minutes at this point.

Image

however if we query for them using kubectl the workspace still shows up and shows up as ready

❯ k get ws
loadtest-999   organization            Ready   https://frontproxy.kcp-loadtests.kcp.shoot.canary.k8s-hana.ondemand.com:443/clusters/root:loadtest-999   35m

Workspace (or more precisely logicalcluster)-content cannot be accessed anymore

❯ k --server https://frontproxy.kcp-loadtests.kcp.shoot.canary.k8s-hana.ondemand.com:443/clusters/root:loadtest-999 get ns bla
Error from server (Forbidden): forbidden: User "" cannot get path "/clusters/root:loadtest-999/api/v1/namespaces/bla": workspace access not permitted

Steps To Reproduce

  1. Setup kcp with metrics
  2. create a couple of thousand workspaces
  3. delete all the workspaces
  4. note how you can observe in the metrics that the logicalclusters are gone but k get workspaces still reports workspaces as ready

Expected Behaviour

after a logical cluster is gone. The workspace object should disappear swiftly as well.

Additional Context

No response

Activity

  1. changed the title [-]bug: workspace object deletion seems to largely lack behind logicalcluster deletion[/-] [+]bug: workspace object deletion seems to lack behind logicalcluster deletion[/+] on Apr 10, 2026
  2. changed the title [-]bug: workspace object deletion seems to lack behind logicalcluster deletion[/-] [+]bug: workspace object deletion seems to lack behind logicalcluster deletion by considerable margin[/+] on Apr 10, 2026
  3. moved this from Backlog to In Progress in Platform Mesh & Kube Projects - Backlogon Apr 20, 2026
  4. self-assigned this
    on Apr 20, 2026
  5. added theissue type on Apr 20, 2026
  6. moved this from New to Next in kcpon Apr 20, 2026
  7. added this to the v0.32.0 milestone on Apr 20, 2026
  8. moved this from In Progress to In-Review in Platform Mesh & Kube Projects - Backlogon Apr 20, 2026
  9. moved this from Next to Done in kcpon Apr 20, 2026
  10. moved this from Done to Demo'd in OpenMesh - Backlogon Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions