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

Github Enterprise Oauth integration fails to create a workspace

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

       

      After configuring Dev Spaces to ** utlize Github Oauth, when a user attempts to create a workspace by using the UI with a reference to a git rep with devfile.yaml in the parent directory, it fails to find the devfile and just creates an empty workspace.

       

      When using a raw devfile with an token appended to it, it will succeed.

       

      mloriedo

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

       

      Default operator configuration used. Dev Spaces project is openshift-devspaces

      Steps to Reproduce

      1. Install Dev Spaces
      2. Create Github oauth as defined in the [admin guide https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/html-single/administration_guide/index#oauth-for-github-gitlab-or-bitbucket with additional configuration of Enterprise github url (secret attached)
      3. User navigates to dashboard
      4. Clicks add workspace
      5. Inputs a private repo url https://github.xxx.com/private-repo.git and clicks create

      Actual results:

      1. Error message saying Devfile could not be found (attached image)oauth-secret.yamlworkspace-secret.yaml

      Default workspace

       

      devspaces pod log

       
      2022-11-18 23:20:40,334[nio-8080-exec-3] [WARN ] [o.e.c.w.i.o.p.OpenShiftProject 258] - Trying to get namespace 'user3-dev-spaces', but failed because the lack of permissions.
      2442022-11-18 23:20:41,569[nio-8080-exec-3] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
      2452022-11-18 23:21:26,104[nio-8080-exec-3] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
      2462022-11-18 23:21:28,078[nio-8080-exec-6] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
       
      dashboard pod log
       
      Unexpected error null
      1930Unexpected error null
      1931Unexpected error null
      1932Unexpected error null
      1933Unexpected error null
      1934Unexpected error null
      1935Unexpected error null
      1936Unexpected error null
      1937Unexpected error null
      1938Unexpected error null
      1939Unexpected error null
      1940Unexpected error null
      1941Unexpected error null
       

      Expected results:

      devfile.yaml found and workspace created that uses devfile.yaml config

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

       

      Dev Spaces 3.2

       

      Dashboard Version7.52.1

      Server Version3.2 @ 715ee #20 ::

      Eclipse Che Dashboard 7.52.0 @ 7108

      Username: kmcanoy

      Browser Nameedge-chromium

      Browser Version107.0.1418

      Browser OSWindows 10

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

        1. Annotation 2022-11-18 162115.png
          Annotation 2022-11-18 162115.png
          15 kB
        2. Annotation 2022-11-18 162155.png
          Annotation 2022-11-18 162155.png
          50 kB
        3. Annotation 2022-11-18 162226.png
          Annotation 2022-11-18 162226.png
          28 kB
        4. oauth-secret.yaml
          1 kB
        5. workspace-secret.yaml
          1 kB

            ivinokur-1 Igor Vinokur
            kmcanoy@redhat.com Kevin McAnoy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: