Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4969

Changes in workspace get lost if restarting from local Devfile with typo

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      = Changes in workspace disappearing after 'Restart with default devfile'

      Before this update, the ephemeral mode was used for the 'Restart with default devfile' functionality. When restarted, any changes in the workspace were lost. With this update, restarting the workspace with the default devfile does not erase changes you made previously.
      Show
      = Changes in workspace disappearing after 'Restart with default devfile' Before this update, the ephemeral mode was used for the 'Restart with default devfile' functionality. When restarted, any changes in the workspace were lost. With this update, restarting the workspace with the default devfile does not erase changes you made previously.
    • Bug Fix
    • Done

      Describe the bug

      With the recent changes the default workspace is started in ephemeral mode (aka "safe mode").

      The problem is that when used during a "restart", all the changes in the workspace will get lost.

      Steps to reproduce

      • Start an empty workspace
      • Add a few files to the workspace and then add a devfile with an image that doesn't exist (see example below)
      • Select "Restart Workspace from local Devfile"
      • Wait for an error message
      • Click the "Restart with default devfile" button.
      • Wait for the target workspace to restart and open IDE
      • See that the devfile doesn't exist anymore, and all the changes got lost
      schemaVersion: 2.2.0
      metadata: 
        name: devfile-with-typo
      components: 
        - name: tools
          container: 
            image: quay.io/does/not/exist
      

      Expected behavior

      Don't use ephemeral mode when "Restarting from default Devfile"

              ibuziuk@redhat.com Ilya Buziuk
              mloriedo Mario Loriedo
              Dmytro Nochevnov Dmytro Nochevnov
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: