Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-2991

GitOps 4.12 operator-index references missing must-gather image

XMLWordPrintable

    • 5
    • False
    • None
    • False
    • GITOPS Sprint 241, GITOPS Sprint 3244

      Description of problem:

      The openshift-gitops operator index image for 4.12 references a must-gather image which is not available on the public registry.

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

      Steps to Reproduce

       

      1. Create ImageSetConfiguration file

       $ cat ./is.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /path/to/mirror-metadata
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12
          packages:
          - name: openshift-gitops-operator

      2. Mirror the ImageSetConfiguration using above file

      $ oc-mirror --config=./is.yaml file://mirror
      Found: mirror/oc-mirror-workspace/src/publish
      Found: mirror/oc-mirror-workspace/src/v2
      Found: mirror/oc-mirror-workspace/src/charts
      Found: mirror/oc-mirror-workspace/src/release-signatures
      No metadata detected, creating new workspace
      wrote mirroring manifests to mirror/oc-mirror-workspace/operators.1686668277/manifests-redhat-operator-index
      To upload local images to a registry, run:
          oc adm catalog mirror file://redhat/redhat-operator-index:v4.12 REGISTRY/REPOSITORY
      <dir>
        openshift-gitops-1/applicationset-rhel8
      <...>
        stats: shared=48 unique=368 size=14GiB ratio=0.85
      error: unable to retrieve source image registry.redhat.io/openshift-gitops-1/must-gather-rhel8 manifest sha256:4a5b9b97466b53e7775d887a0d920507cebbf892e7bc6a5334c784c55f9e3dd8: unknown: Not Found
      error: an error occurred during planning
      
      

      Actual results:

      Mirroring the operator fails:

      unable to retrieve source image registry.redhat.io/openshift-gitops-1/must-gather-rhel8 manifest

      Expected results:

      All related images for the operator are mirrored.

      Reproducibility (Always/Intermittent/Only Once):

      100% for v4.12

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       

      The must-gather is referenced in the 4.12 operator index:

      $ podman run -it --entrypoint /bin/bash registry.redhat.io/redhat/redhat-operator-index:v4.12
      bash-4.4$ grep must-gather /configs/openshift-gitops-operator/catalog.json 
                  "image": "registry.redhat.io/openshift-gitops-1/must-gather-rhel8@sha256:4a5b9b97466b53e7775d887a0d920507cebbf892e7bc6a5334c784c55f9e3dd8"

      The image is not available on the public registry:

      $ skopeo inspect docker://registry.redhat.io/openshift-gitops-1/must-gather-rhel8@sha256:4a5b9b97466b53e7775d887a0d920507cebbf892e7bc6a5334c784c55f9e3dd8 FATA[0000] Error parsing image name "docker://registry.redhat.io/openshift-gitops-1/must-gather-rhel8@sha256:4a5b9b97466b53e7775d887a0d920507cebbf892e7bc6a5334c784c55f9e3dd8": reading manifest sha256:4a5b9b97466b53e7775d887a0d920507cebbf892e7bc6a5334c784c55f9e3dd8 in registry.redhat.io/openshift-gitops-1/must-gather-rhel8: unknown: Not Found

            aveerama@redhat.com Abhishek Veeramalla
            rhn-support-bverschu Bram Verschueren
            Votes:
            9 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: