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

DevWorkspace Controller fails when service account creation is disabled

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      When configuring Dev Spaces to disable automatic workspace Service Account creation, the DevWorkspace Controller can crash if the manually created Service Account cannot be found by the operator.

      Workaround: Add label controller.devfile.io/devworkspace_id: "true" to any manually created workspace Service Accounts.

      Prerequisites (if any, like setup, operators/versions):

      1. Install Dev Spaces

      Steps to Reproduce

      1. Configure CheCluster to disable automatic service account creation by setting .config.workspace.serviceAccount.disableCreation: true
      2. Start a workspace
      3. Controller pod restarts with

      {{{"level":"info","ts":"2023-06-29T23:41:33Z","msg":"Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference","controller":"devworkspace","controllerGroup":"workspace.devfile.io","controllerKind":"DevWorkspace","DevWorkspace":

      {"name":"plain-devworkspace","namespace":"openshift-operators"}

      ,"namespace":"openshift-operators","name":"plain-devworkspace","reconcileID":"79d7c3d5-7edd-4833-bcac-173058865601"}
      }}

       h3. Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

            amisevsk Angel Misevski
            amisevsk Angel Misevski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: