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.

Storageclass name for PVC is not getting set for workspaces being created by checluster

See original GitHub issue

Describe the bug

I have deployed eclipse-che 7.56.x successfully on on prem k8s cluster (1 master, 1 worker). All the pods are assigned to worker node only.

the storageclass name passed in the checluster is not set to the PersistentVolumeClaim (claim-devworkspace) created by che when i created the sample workspace.

CR path file :-

apiVersion: org.eclipse.che/v2
spec:
  components:
    database:
      pvc:
       storageClass: postgres-storage
  devEnvironments:
    storage:
      pvcStrategy: per-user
      perUserStrategyPvcConfig:
              storageClass: workspace-storage
  networking:
    auth:
      identityProviderURL: 'http://dex.dex:5556'
      oAuthClientName: "clientname"
      oAuthSecret: 'secret'

PVs:-

NAME                  CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                       STORAGECLASS        REASON   AGE
postgres-pv-volume    1Gi        RWO            Retain           Bound       eclipse-che/postgres-data   postgres-storage             126m
workspace-pv-volume   20Gi       RWO            Retain           Available                               workspace-storage            136m

Comparison of postgres-data and username-che workspace PVCs : -

Namespace:     admin-che
**StorageClass**:
Status:        Pending
Volume:
Labels:        <none>
Annotations:   <none>
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode:    Filesystem
Used By:       workspace7ebd5e269d544ff1-7bc4c4768f-kwsv2
Events:
  Type    Reason         Age                  From                         Message
  ----    ------         ----                 ----                         -------
  Normal  FailedBinding  3m7s (x42 over 13m)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set


Name:          postgres-data
Namespace:     eclipse-che
**StorageClass:  postgres-storage**
Status:        Bound
Volume:        postgres-pv-volume
Labels:        app.kubernetes.io/component=postgres
               app.kubernetes.io/instance=che
               app.kubernetes.io/managed-by=che-operator
               app.kubernetes.io/name=che
               app.kubernetes.io/part-of=che.eclipse.org
Annotations:   pv.kubernetes.io/bind-completed: yes
               pv.kubernetes.io/bound-by-controller: yes
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      1Gi
Access Modes:  RWO
VolumeMode:    Filesystem
Used By:       postgres-5c84d97768-w4hql
Events:        <none>

Che version

7.56@latest

Steps to reproduce

  1. Setup K8s cluster on Ubuntu VMs.
  2. Install DEX as OIDC and configure the OIDC parameters for kube-apiserver
  3. Install Che using the below command chectl server:deploy --platform k8s --domain=abc.example.com --postgres-pvc-storage-class-name=postgres-storage --workspace-pvc-storage-class-name=workspace-storage --che-operator-cr-patch-yaml cr-patch.yaml
  4. open che dashboard and create any sample workspace for example. empty workspace.

Expected behavior

Workspace pods should be running Persistent Volume claim by che should be bound to PVs and able to access workspace in dashboard successfully.

Runtime

Kubernetes (vanilla)

Screenshots

No response

Installation method

chectl/latest

Environment

Linux

Eclipse Che Logs

No response

Additional context

No response

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vazhagesancommented, Nov 28, 2022

@AObuchow Great and thanks for the update. I will check and confirm.

0reactions
ibuziukcommented, Dec 13, 2022

@vazhagesan hello, have you got a chance to verify against the latest version of Eclipse Che? can the issue be closed now? thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow to configure workspaces persistent storage from Eclipse ...
It's not clear which default the CheCluster config refers to; storageClass is configured in the DWOC as well. pvcStrategy would need to be...
Read more >
Chapter 4. Configuring CodeReady Workspaces
A user defines a storage class name in the CodeReady Workspaces configuration to use the storage classes feature in the CodeReady Workspaces PVC....
Read more >
Edit a persistent volume claim yaml after its creation
So I have a deployment that creates a Postgres Pod and a PVC. ... kind: CheCluster metadata: name: codeready-workspaces namespace: ...
Read more >
Configuring storage classes :: Eclipse Che Documentation
Che does not create persistent volumes in the infrastructure. ... Define storage class names: configure the CheCluster Custom Resource, and install Che.
Read more >
https://raw.githubusercontent.com/eclipse/codewind...
When set to `codeready`, CodeReady Workspaces is deployed # the ... when set to true the operator will attempt to get a secret...
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