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

Adding a git project source to devfile leads to clone error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 3.2.0.GA
    • 3.2.0.GA
    • dwo
    • False
    • None
    • False
    • User Experience
    • Hide

      Clone the repository manually after the workspace is created.

      Show
      Clone the repository manually after the workspace is created.
    • Hide

      Reproducible only in the customer's environment.

      Show
      Reproducible only in the customer's environment.

      Description of problem:

      **

      If we add a project with a git repository in a devfile of workspaces and start it, the project is not correctly cloned, and a "project-clone-error.log" appears in the "projects" folder.
       
      This is the content:
      2022/11/08 15:07:40 Read DevWorkspace at /devworkspace-metadata/flattened.devworkspace.yaml
      2022/11/08 15:07:40 Processing project python-hello-world 
      2022/11/08 15:07:40 Project 'python-hello-world' is already configured 
      2022/11/08 15:07:40 Processing project example-name 
      2022/11/08 15:07:40 Cloning project example-name to /projects/project-clone-1120711879/example-name 
      2022/11/08 15:07:40 Encountered error while setting up project example-name: failed to clone project: failed to git clone from http://10.20.30.40:7990/scm/cfolder/example-name.git: exit status 128 What is the 

      It is possible to clone this repository and add the folder to the workspace manually as a workaround.

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

      **

      NAMESPACE                    NAME            CSV                                            APPROVAL   APPROVED
      openshift-operators          install-4w5zd   devworkspace-operator.v0.16.0-0.1666668361.p   Manual     false
      openshift-operators          install-jlq2h   devworkspace-operator.v0.16.0                  Manual     false
      openshift-operators          install-tqst9   devspacesoperator.v3.2.0-0.1667785989.p        Manual     false
      openshift-operators          install-vgbw5   devworkspace-operator.v0.16.0-0.1666668361.p   Manual     false

      Steps to Reproduce

      Not able to reproduce in my environment now. Creating this ticket in advance if there is an error during the starting process when a workspace is created.

      Actual results:

      A repository is not cloned correctly during the creation of the workspace.

      Expected results:

      A repository must be cloned correctly during the creation of a workspace.

       

              nickboldt Nick Boldt
              rhn-support-rludva Radomir Ludva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: