Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44229

cannot install helm charts in ocp cluster after mirroring them via oc-mirror

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.18.0
    • 4.18
    • oc-mirror
    • Important
    • None
    • CLID Sprint 263
    • 1
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required

      Description of problem:

      After mirroring helm charts via oc-mirror and when trying to perform helm repo add <name>  https://ec2-18-191-139-168.us-east-2.compute.amazonaws.com:5000/v2/d2mhelm/redhat-developer/servicebinding-operator i see it throws error as below
      [fedora@preserve-fedora-yinzhou test]$ helm repo add redhat-developer https://ec2-18-191-139-168.us-east-2.compute.amazonaws.com:5000/v2/d2mhelm/redhat-developer/servicebinding-operator --insecure-skip-tls-verify
      Error: looks like "https://ec2-18-191-139-168.us-east-2.compute.amazonaws.com:5000/v2/d2mhelm/redhat-developer/servicebinding-operator" is not a valid chart repository or cannot be reached: failed to fetch https://ec2-18-191-139-168.us-east-2.compute.amazonaws.com:5000/v2/d2mhelm/redhat-developer/servicebinding-operator/index.yaml : 404 Not Found
      
      Tried same with quay registry as well and hit similar issue
      [fedora@preserve-fedora-yinzhou test]$ helm repo add redhat-develiper https://quay.io/knarra/redhat-developer
      Error: looks like "https://quay.io/knarra/redhat-developer" is not a valid chart repository or cannot be reached: failed to fetch https://quay.io/knarra/redhat-developer/index.yaml : 403 Forbidden
      
          

      Version-Release number of selected component (if applicable):

           [fedora@preserve-fedora-yinzhou test]$ ./oc-mirror version
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.18.0-202410221740.p0.g63a5556.assembly.stream.el9-63a5556", GitCommit:"63a5556a50d091b08ee4e1e724db0dfb10bc0e26", GitTreeState:"clean", BuildDate:"2024-10-22T18:22:51Z", GoVersion:"go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
      
      
          

      How reproducible:

           Always
          

      Steps to Reproduce:

          1. Install disconnected ocp cluster
          2. Mirror hlem charts using the imageSetConfig.yaml below via m2d & d2m.
          3. Now try to add the registry url to helm so that we could install these on the ocp cluster
          

      Actual results:

          Fails to add registry with error as helm is looking for something called `index.yaml` and that is not mirrored or present in the mirror registry where images are mirrored.
          

      Expected results:

          User should be able to add the mirror registry and install mirrored helm charts.
          

      Additional info:

        
          

              rh-ee-aguidi Alex Guidi
              knarra@redhat.com Rama Kasturi Narra
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: