Ephemeral storage workspace fails to start up if persistUserHome enabled #22654
Labels
area/devworkspace-operator
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
Describe the bug
If
devEnvironments.persistUserHome: true
is set in the Che Cluster CR, and a workspace is using ephemeral storage, the workspace will fail to start up with a similar error:Che version
7.76@latest
Steps to reproduce
devEnvironments.persistUserHome: true
in the Che Cluster CRExpected behavior
The workspace starts up successfully.
Runtime
OpenShift
Screenshots
No response
Installation method
OperatorHub
Environment
Linux, GCE
Eclipse Che Logs
No response
Additional context
With eclipse-che/che-dashboard#896, the default devfile provided by the dashboard now uses ephemeral storage. Customers have been facing issues when upgrading to Che 7.76 where a workspace that used the default devfile (which previously used
per-user
storage) now usesephemeral
storage, and ifpersistUserHome
was enabled, the workspace will fail to start. This makes it unobvious how to recover workspace data in/home/user/
that persists on the PVC.Temporary workaround to resolve the issue on a per-workspace basis
If a workspace has failed to start up due to this bug (i.e. the workspace start up failure is similar to the one described) then the following workaround should allow the workspace to start up, and data from the workspace should be recoverable:
spec.devEnvironments.pvcStrategy
. By default, it will beper-user
, but it may beper-workspace
if an admin configured the Che Cluster CR this way. In my case, the defaultper-user
storage strategy was set in the Che Cluster CR, so I will change the storage type toper-user
.Actions -> Restart Workspace
on the workspace information page (as depicted below):/home/user/
prior to the workspace failing to startup due to the use of the ephemeral storage strategy.The text was updated successfully, but these errors were encountered: