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

v3.12: PROJECTS_ROOT environment variable being set incorrectly at workspace startup

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      PROJECTS_ROOT environment variable being set incorrectly at workspace startup

      Previously, PROJECTS_ROOT environment variable was set incorrectly to `/projects/projects` after workspace startup. The defect has been fixed in this release and the environment variable correctly points to the `/projects` directory.
      Show
      PROJECTS_ROOT environment variable being set incorrectly at workspace startup Previously, PROJECTS_ROOT environment variable was set incorrectly to `/projects/projects` after workspace startup. The defect has been fixed in this release and the environment variable correctly points to the `/projects` directory.
    • Bug Fix
    • Done

      Description of problem:

      this issue with PROJECTS_ROOT environment variable being set to '/projects/projects' started after we upgraded the Dev Spaces operator to version 3.12.
      On Dev Spaces 3.11, PROJECTS_ROOT was set correctly as 'projects' in the VSCode editor once the workspace spun up.

      this seems to be stemming from che plugin.
      This is from workspace’s env vars, after che plugins are loaded:

      ## Extension: eclipse-che.api
      - `DASHBOARD_URL=${env:DASHBOARD_URL}https://devspaces.apps.`
      - `WORKSPACE_NAME=${env:WORKSPACE_NAME}ocp-admin`
      - `WORKSPACE_NAMESPACE=${env:WORKSPACE_NAMESPACE}cr-ruslan`
      - `PROJECTS_ROOT=${env:PROJECTS_ROOT}/projects`

       

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

      Steps to Reproduce

      Use Dev Spaces v3.12

      Create Workspace from sample/custom devfile

      Actual results:

      PROJECTS_ROOT environment variable being set to '/projects/projects'

      Expected results:

      PROJECTS_ROOT environment variable set to '/projects'{}

      Workaround: 

      Set 'PROJECTS_ROOT=/projects && export PROJECTS_ROOT'

              rnikiten Roman Nikitenko
              rhn-support-sburhade Satyam Burhade
              Dmytro Nochevnov Dmytro Nochevnov
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: