gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Cannot delete a workspace in PREPARING phase

Open gtsiolis opened this issue 4 years ago • 8 comments

Bug description

Users cannot delete workspaces in PREPARING phase.

Steps to reproduce

  1. Go to workspaces list (/workspaces)
  2. Create one or two workspaces. Using the example projects also works.
  3. Go back to the dashboard while workspaces are being created.
  4. Try to click more actions (···) and then Delete while a workspace is still in PREPARING phase.
  5. Confirm deletion in the confirmation modal.

Expected behavior

Workspace should be deleted.

According a reference to the comment in https://github.com/gitpod-io/gitpod/issues/4173#issuecomment-874248212.

We could either a) disable the workspace delete dropdown option or b) remove the entry from the user interface and handle all the background tasks needed to gracefully delete a workspace.

Example repository

No response

Anything else?

No response

gtsiolis avatar May 07 '21 13:05 gtsiolis

I have observed this issue as well.

apolopena avatar May 16 '21 17:05 apolopena

Deleting workspaces in any phase but RUNNING or STOPPED is very difficult. I reckon we should rather disable the "Delete" item in the menu if the workspace is neither running nor stopped.

csweichel avatar Jul 02 '21 12:07 csweichel

I reckon we should rather disable the "Delete" item in the menu if the workspace is neither running nor stopped.

Thanks @csweichel for the insight! Agree, adding the following to the issue description. Let me know if the second option below sounds inefficient. 🏓

We could either a) disable the workspace delete dropdown option or b) remove the entry from the user interface and handle all the background tasks needed to gracefully delete a workspace.

gtsiolis avatar Jul 05 '21 17:07 gtsiolis

Previously a workspace could be deleted in any state, what changed? I assumed that (previously) the workspace was removed from the list until all the background tasks for deleting the workspace had been completed. I use to rely on this functionality, it was useful.

apolopena avatar Jul 11 '21 00:07 apolopena

/schedule

csweichel avatar Jul 16 '21 08:07 csweichel

Previously a workspace could be deleted in any state, what changed? I assumed that (previously) the workspace was removed from the list until all the background tasks for deleting the workspace had been completed. I use to rely on this functionality, it was useful.

Thank you for pointing this out. Except for "in preparation" workspaces in other phases can be stopped (which is what we're doing, actually). It would seem that the deletion doesn't happen reliably afterwards though, i.e. the workspace is stopped but not necessarily deleted).

csweichel avatar Jul 21 '21 08:07 csweichel

This seems to be related: https://community.gitpod.io/t/unable-to-delete-workspace/4956

corneliusludmann avatar Sep 10 '21 08:09 corneliusludmann

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 22 '24 15:05 github-actions[bot]