Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-21955

Edge smart remote repo not supporting to point to virtual. (Helm and GO doesn't work in this case)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.22.0, 7.9.0
    • Component/s: Helm
    • Labels:
    • Severity:
      High

      Description

      Description:

      Helm only works with Virtual and in the case of Edge node we cannot able to point the Edge remote to Virtual and getting the below error "only smart remote repositories are supported on edge license"

       

      Steps to reproduce:

      1. Create helm-remote repository in Source Artifactory instance which is having Internet access pointing to upstream URL "https://getambassador.io"

      2. Create helm-virtual and add the helm-remote to this virtual repo.

      3. Point the helm client to Virtual and fetch the charts will work as expected.

       #helm repo add helm https://ARTIFACTORY_URL/helm --username admin

       #helm fetch helm/ambassador --version 4.4.2

       4. Create another Edge node Artifactory instance which does not have internet access and create a helm-remote pointing to Remote repository of the source Artifactory instance.

      5. Create a Virtual repo in the Edge Artifactory instance and add the helm-remote to the virtual repo.

      6. Point the helm client to the Virtual repo in the Edge instance and try to fetch helm chart which will try pulling the charts from external URL(internet) and will give you a timeout error.

      Below is the helm fetch from the Edge node
       #helm fetch helm/ambassador --version 4.4.2
      Error: Get https://getambassador.io/helm/ambassador-operator-0.1.0.tgz: dial tcp IP:443: connect: connection timed out
      

      7. Observe the index.yaml is updated with the External URLs but not with the Source Artifactory instance URLs.

      8. You will observe the index.yaml will be fetched from the Source which is not updated with the Source URLs and please find the below-attched logs and index.yaml file for reference.

      Edge Node Artifactory Log:
      
      2020-04-29 13:11:00,767 [art-exec-9] [INFO ] (o.a.r.HttpRepo      :420) - helmpoinintgtoremote downloading https://ARTIFACTORY_URL_SOURCE/artifactory/helm-remote/index.yaml Unknown content length 
      2020-04-29 13:11:00,812 [art-exec-9] [INFO ] (o.a.r.HttpRepo      :433) - helmpoinintgtoremote downloaded  https://ARTIFACTORY_URL_SOURCE/artifactory/helm-remote/index.yaml 72.31 KB at 1,635.40 KB/sec
      

       

      Source Artifactory Logs 
      
      2020-04-28T10:32:46.865Z [jfrt ] [INFO ] [7249dc3231123aa8] [o.a.r.HttpRepo:453            ] [ttp-nio-8081-exec-10] - helm-remote downloading https://getambassador.io/index.yaml 72.31 KB 
      2020-04-28T10:32:47.642Z [jfrt ] [INFO ] [7249dc3231123aa8] [o.a.r.HttpRepo:466            ] [ttp-nio-8081-exec-10] - helm-remote downloaded  https://getambassador.io/index.yaml 72.31 KB at 93.71 KB/sec

       

      Sample snippet Index.yaml from the edge Instance virtual repo which is pointing to external URL
      
       - apiVersion: v2 
      appVersion: 1.0.0 
      created: 2020-04-16T08:08:29.312393913Z 
      description: A Helm chart for Kubernetes 
      digest: 568aa4cb404ae8e8b233f91fff9991d05e679e5996f4c0592af2f0f88f2d46f9 name: ambassador-operator 
      urls: - https://getambassador.io/helm/ambassador-operator-0.1.0.tgz version: 0.1.0
      
      -----------------------------
      
      Expected index.yaml should contain 
      
       - apiVersion: v2 
      appVersion: 1.0.0 
      created: 2020-04-16T08:08:29.312393913Z 
      description: A Helm chart for Kubernetes digest: 568aa4cb404ae8e8b233f91fff9991d05e679e5996f4c0592af2f0f88f2d46f9 name: ambassador-operator 
      urls: - https://ARTIFACTORY_URL_SOURCE/artifactory/helm/ambassador-operator-0.1.0.tgz version: 0.1.0 
      

       

       

        Attachments

          Activity

              People

              Assignee:
              shays Shay Shimony
              Reporter:
              muddanajv Muddana Jyothi VS
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: