question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start workspace with Openshift storage class mode with WaitForFirstConsumer value

See original GitHub issue

Describe 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

  1. 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 and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

screenshot-Wait_loading_workspace_and_get_time

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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dmytro-ndpcommented, Sep 27, 2019

“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.

1reaction
sleshchenkocommented, Sep 26, 2019

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 if WaitForFirstConsumer 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 remove FailedScheduling 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 all FailedScheduling, like FailedScheduling: no available node is found(<-just an example)

cc @ibuziuk

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found