-
Notifications
You must be signed in to change notification settings - Fork 66
Delete space does not delete che workspace #4559
Comments
I guess, that WIT uses Either way, I think the logic in WIT should be changed to not depend on links, but instead construct the correct URLs by itself ( |
On the contrary, I believe that Che should return valid links that WIT can follow. The client service should not "build" URLs itself, but rather, it should rely on a previous response from the remote service. |
Yep... I was writing faster than thinking :-D You are 100% correct... |
No worries, @rhopp ;) |
@ljelinkova to unblock e2e tests could all the previous workspaces been removed ? also why after test execution cleanup of previously created workspaces does not happen ? |
@xcoulon che-starter already provides API for deleting workspace by name: DELETE /workspace/{name} hmm... I do not really understand why it is currently expected that
Wit should never call che-server API directly, all communication should happen via che-starter that should play the role of API adapter [1] https://github.com/fabric8-services/fabric8-wit/blob/master/controller/codebase.go#L257 |
@ibuziuk Thanks for the answer. We've already taken care of e2e by removing all old workspaces. We do not automatically delete old workspaces because that is something normal user should not need to do. We wouldn't even find this problem if we were deleting them automatically. @xcoulon How do you propose to proceed? Will you rewrite the WIT to use che-starter delete workspace API? |
@xcoulon any updates? |
@xcoulon when is this planned to be fixed? It causes trouble in production. We manually remove old che workspaces in our testing accounts but cannot expect our customers to do the same. |
Thanks @alexeykazakov . |
We need to periodically remove che workspaces on our testing accounts, otherwise the product is unusable eclipse-che/che#12638 |
I've verified that this issue is fixed on prod-preview. @ppitonak can you confirm? I'll push the changes to prod once we're sure the issue is fixed. |
Works for me, thanks! |
Issue Overview
When you have space in OSIO with created Che workspace, neither delete space action neither reset of environment action deletes the Che workspace.
Expected Behaviour
The Che workspace should be deleted when associated space is deleted.
Current Behaviour
The Che workspace is NOT deleted when associated space is deleted.
Steps To Reproduce
Additional Information
Note that this causes E2E tests fail because there are too many workspaces which causes some Gateway timeout errors when running Che.
I've found the following code in DeleteSpace method
@rhopp checked Kibana logs and it seems that the first log is logged but not the second one. This makes me believe that the returned workspace somehow does not contain any link or the returned link does not contain 'delete' method.
@xcoulon, @ibuziuk FYI
The text was updated successfully, but these errors were encountered: