Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to boot a workspace in rescue mode #21335

Closed
benoitf opened this issue Apr 15, 2022 · 2 comments
Closed

Allow to boot a workspace in rescue mode #21335

benoitf opened this issue Apr 15, 2022 · 2 comments
Labels
area/dashboard kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@benoitf
Copy link
Contributor

benoitf commented Apr 15, 2022

Is your enhancement related to a problem? Please describe

sometimes we have our devfile being corrupted by manual changes. Also it may be corrupted after a devfile v1-> v2 step.

I think having a resuce mode to be able to go back to the workspace and being able to browse files/eventually commit the files would help for some usecases.

Describe the solution you'd like

Allow to boot a workspace in a rescue mode.

It'll use for example the current universal developer image and default stable editor.

It could be done either from dashboard side only or devWorkspace could have an extra attribute like rescue.

Original content could be wrapped into an attribute (if we want to switch back to the previous workspace)

Describe alternatives you've considered

It could be a temporary workspace taking the same id of the original one so volume is mounted.

Additional context

with devfile v1--> v2 migration some workspaces may not be able to be converted automatically

@benoitf benoitf added the kind/enhancement A feature request - must adhere to the feature request template. label Apr 15, 2022
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Apr 15, 2022
@amisevsk
Copy link
Contributor

amisevsk commented May 2, 2022

Since a "rescue" mode in DWO would require bundling additional images (what image do we use for the rescue component?), this makes more sense as a dashboard feature, IMO. This is also potentially impacted by dashboard's processing of the devfile (e.g. injecting an editor).

Manually, the process would be to

  1. Remove all container components from the devfile
  2. Add some known component (e.g. a basic CLI image, maybe the web-terminal-tooling image?) that mounts all of the volumes in the devfile
  3. Do what's needed to save work, etc.

Alternatively, it should be sufficient to add a feature to "reset" a devfile, replacing the devfile components with a standard configuration based on the stack -- e.g. It'd be nice if I could "reset" my devfile to the default Java-springboot devfile to undo any changes. This would be especially useful with #21244

@amisevsk amisevsk added severity/P2 Has a minor but important impact to the usage or development of the system. area/dashboard and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels May 2, 2022
@che-bot
Copy link
Contributor

che-bot commented Oct 29, 2022

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 29, 2022
@che-bot che-bot closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants