question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PVC is not cleaned up when workspace is deleted

See original GitHub issue

Describe the bug

Workspace data that are saved on PVC are not deleted when the workspace is stopped and removed. There is also log about that on che-server side: Unable to perform '[rm, -rf, /tmp/job_mount/workspace31s04khmt5qsdxjs]' command for the workspace 'workspace31s04khmt5qsdxjs' cause: 'Failed to evaluate the project name to use for workspace workspace31s04khmt5qsdxjs. The error message was: Workspace with id 'workspace31s04khmt5qsdxjs' doesn't exist'

Che version

  • latest 7.5.0
  • nightly
  • other: please specify

Steps to reproduce

Create workspace (I tried default Java Maven or using factory link) and wait for it to start. Remove workspace. Check PVC claim-che-workspace.

Expected behavior

When the workspace is deleted, there should be no data on a PVC.

Runtime

  • kubernetes (include output of kubectl version)

  • Openshift (include output of oc version) oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://api.crw.codereadyqe.com:6443 kubernetes v1.13.4+df9cebc

  • minikube (include output of minikube version and kubectl version)

  • minishift (include output of minishift version and oc version)

  • docker-desktop + K8S (include output of docker version and kubectl version)

  • other: (please specify)

Installation method

  • chectl chectl server:start --platform openshift -a operator -n katka-che -i eclipse/che-server:7.5.0
  • che-operator
  • minishift-addon
  • I don’t know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
skabashnyukcommented, Nov 29, 2019

One of the logical fixes of that is to backport https://github.com/eclipse/che/pull/15040 to 7.5.X

0reactions
benoitfcommented, Nov 29, 2019

changing severity

Read more comments on GitHub >

github_iconTop Results From Across the Web

When deleting workspace, PVC is not deleted, nor cleaned up ...
When CRW is deployed with "per-workspace" PVC strategy and workspace is deleted, I guess the corresponding PVC should be deleted also, ...
Read more >
2032924 – PVs are not being cleaned up after PVC deletion
But sig storage deleter did not get triggered to remove the previously successful cleanup job before the next deletion came in and found...
Read more >
Automated workspace cleanup - General - Plastic SCM forum
the next time Plastic runs an Update I would like it to delete any local files in any folder named "/working" if they...
Read more >
Add "Cleanup workspace" command in Items view and Shell ...
Delete ignored items. Undo all changes. Undo unchanged. Apply cleanup to xlinks as well. Perhaps you can think up more cleaning ...
Read more >
Perforce (2019): Files marked for delete, but associated ...
I can see in this output that the file is opened for delete on the client classic . Does that workspace still exist?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found