Cannot start workspace with Openshift storage class mode with WaitForFirstConsumer value
See original GitHub issueDescribe the bug
When default StorageClass is configured to have volumeBindingMode
set to WaitForFirstConsumer
, workspaces do not start.
Che version
- latest
- nightly
- other: please specify
Steps to reproduce
- Consume a factory by “https://[your path to Che]f?url=https://raw.githubusercontent.com/redhat-developer-demos/guru-night/master/quarkus-tutorial/devfile.yaml url”.
Expected behavior
The factory consumed properly with creation a workspace.
Runtime
- kubernetes (include output of
kubectl version
) - Openshift 4.1.16 (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- che-operator
- minishift-addon
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Additional context
Codeready issue - https://issues.jboss.org/browse/CRW-294.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Chapter 4. Configuring CodeReady Workspaces
It does not make sense to change the value of this property manually. ... Defines the storage class of Persistent Volume Claim for...
Read more >Post-installation storage configuration
The StorageClass resource object describes and classifies storage that can be requested, as well as provides a means for passing parameters for dynamically ......
Read more >Provisioning regional persistent disks
Since the StorageClass is configured with volumeBindingMode: WaitForFirstConsumer , the PersistentVolume is not provisioned until a Pod using the ...
Read more >Workspaces :: Tekton Tutorial
In OpenShift cluster the default storage class varies based on the underlying cloud ... tkn task start git-clone \ --namespace=workspace-auth-demo \ --param ...
Read more >VMware vSphere Container Storage Plug-in 2.0
Deploy Workloads with WaitForFirstConsumer Mode in Topology-Aware ... where a pod cannot start because the storage resource it needs is not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
“WaitForFirstConsumer” is default setting of OpenShift 4.x on AWS. Looks like it’s usual mode for instances on AWS, Azure, … So we need to support it.
Just to extend context a bit: previously it used to work, but after some upgrading of OpenShift version, OS starts to propagate events with
FailedScheduling
ifWaitForFirstConsumer
is used. The second workspace start - works just fine and If Che would wait a couple of seconds - PVC would be mounted successfully. So, the easiest solution here is to removeFailedScheduling
from the default unrecoverable events list. It was initially added for some issue on OSIO, so if we just remove it - some workspaces may exceed workspace timeout instead of early failure. Maybe OSIO case should be investigated more and event message should be concreted instead of catching allFailedScheduling
, likeFailedScheduling: no available node is found
(<-just an example)cc @ibuziuk