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

Bitbucket public/private repo factory fails for BitBucket server deployed to different OCP

    XMLWordPrintable

Details

    • False
    • False
    • Hide
      = {prod-short} fails to resolve devfiles for Bitbucket factory for public repositories

      Bitbucket factory URL fails for public repositories outside {ocp} for {prod-short} without Bitbucket OAuth enabled.

      .Workaround

      . Add the TLS sefl-signed certificate to the {prod-short} instance, see link:https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.9/html-single/installation_guide/index#importing-untrusted-tls-certificates_crw[Importing untrusted TLS certificates to CodeReady Workspaces].
      Show
      = {prod-short} fails to resolve devfiles for Bitbucket factory for public repositories Bitbucket factory URL fails for public repositories outside {ocp} for {prod-short} without Bitbucket OAuth enabled. .Workaround . Add the TLS sefl-signed certificate to the {prod-short} instance, see link: https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.9/html-single/installation_guide/index#importing-untrusted-tls-certificates_crw [Importing untrusted TLS certificates to CodeReady Workspaces].
    • Workaround Exists
    • Show
      Add TLS sefl-signed certificate to CRW, as it is described in https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.9/html-single/installation_guide/index#importing-untrusted-tls-certificates_crw
    • Hide

      1. Deploy BitBucket on-prem server outside OCP with testing CRW.

      2. Setting up BitBucket on-prem server to work with testing CRW instance Refer https://docs.google.com/document/d/1cvza0jFLrpTdBtggpFoIobqGpFho8u1hwaVJH6gB1HQ/ 
      It shouldn't necessarily be server on IBM Power. Already installed BitBucket server on AWS  is used 

      3. Set CHE API ENDPOINT as
      "CHE_INTEGRATION_BITBUCKET_SERVER__ENDPOINTS":"https://bitbucket-bitbucket.apps.ocp47-aws.crw-qe.com"
       
      4. For creating workspace from BitBucket server factory on CRW instance on IBM Power for which I am trying as
      https://codeready-crw-crwctl-ext-db.apps.ghatwala-46-1.158.176.146.20.nip.io/f?url=https://bitbucket-bitbucket.apps.ocp47-aws.crw-qe.com/scm/crw/public-bb-repo.git
      CRW starts  but gives error as "Failed to resolve devfile"

      Show
      1. Deploy BitBucket on-prem server outside OCP with testing CRW. 2. Setting up BitBucket on-prem server to work with testing CRW instance Refer  https://docs.google.com/document/d/1cvza0jFLrpTdBtggpFoIobqGpFho8u1hwaVJH6gB1HQ/   It shouldn't necessarily be server on IBM Power. Already installed BitBucket server on AWS  is used  3. Set CHE API ENDPOINT as "CHE_INTEGRATION_BITBUCKET_SERVER__ENDPOINTS":" https://bitbucket-bitbucket.apps.ocp47-aws.crw-qe.com "   4. For creating workspace from BitBucket server factory on CRW instance on IBM Power for which I am trying as https://codeready-crw-crwctl-ext-db.apps.ghatwala-46-1.158.176.146.20.nip.io/f?url=https://bitbucket-bitbucket.apps.ocp47-aws.crw-qe.com/scm/crw/public-bb-repo.git CRW starts  but gives error as "Failed to resolve devfile"

    Description

      Bitbucket repo factory should work for public repository by setting CHE_INTEGRATION_BITBUCKET_SERVER__ENDPOINTS only. But in current implementation It will not work without configure Bitbucket OAuth with BitBucket server deployed outside of OCP.

      It did work with BitBuscket server deployed on the same OCP where CRW had been installed.

      Attachments

        1. Bitbucket_CheCluster_CR.txt
          8 kB
        2. crw210-z--bb-factory.png
          crw210-z--bb-factory.png
          336 kB
        3. image (6).png
          image (6).png
          260 kB
        4. log_bitbucket.txt
          0.6 kB

        Issue Links

          Activity

            People

              skabashn Sergii Kabashniuk
              yogitakulkarni Yogita Kulkarni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: