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

Error finding remote layer for mongodb-enterprise image when pushing archive to registry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.14.z
    • oc / oc-mirror
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Error finding remote layer for mongodb-enterprise image when pushing archive to registry. The strange behaviour is seen when mirroring below imageset-config. Please note that this issue appears when pushing to registry after mirroring the images to tar archives first.
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /home/ec2-user/op-mirror/metadata/operators-4-12
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12
          packages:
          - name: advanced-cluster-management
          - name: amq-streams
          - name: cincinnati-operator
          - name: cluster-logging
          - name: elasticsearch-operator
          - name: kubernetes-nmstate-operator
          - name: kubevirt-hyperconverged
          - name: local-storage-operator
          - name: loki-operator
          - name: metallb-operator
          - name: mcg-operator
          - name: multicluster-engine
          - name: netobserv-operator
          - name: nfd
          - name: ocs-operator
          - name: odf-csi-addons-operator
          - name: odf-operator
          - name: openshift-gitops-operator
          - name: quay-operator
            channels:
            - name: stable-3.9
            - name: stable-3.10
          - name: rhacs-operator
            channels:
            - name: stable
          - name: web-terminal
        - catalog: registry.redhat.io/redhat/certified-operator-index:v4.12
          packages:
          - name: crunchy-postgres-operator
          - name: gpu-operator-certified
          - name: conjur-follower-operator
          - name: mongodb-enterprise
      
      The below error is seen:
      error: error occurred during image processing: error finding remote layer "sha256:24bab87b81ab2c2c662f106f59f25a2ed6bd09533f43cf13a780644ebdf34e9a": layer "sha256:24bab87b81ab2c2c662f106f59f25a2ed6bd09533f43cf13a780644ebdf34e9a" is not present in the archive
      
      Removing mongodb-enterprise from the imageset-config helps complete the mirroring without error.
      
      I had opened https://issues.redhat.com/browse/ISVISSUE-515 to find issues with image however after more testing it was found that changing some parts of imageset-config file helps complete mirroring even when including mongodb-enterprise in the file.
      
      For example below imagesetconfig files work:
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /home/ec2-user/mirror/metadata/operators-4-12
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/certified-operator-index:v4.12
          packages:
          - name: crunchy-postgres-operator
          - name: gpu-operator-certified
          - name: conjur-follower-operator
          - name: mongodb-enterprise
      
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /home/ec2-user/op-mirror/metadata/operators-4-12
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12
          packages:
          - name: openshift-gitops-operator
          - name: quay-operator
            channels:
            - name: stable-3.9
            - name: stable-3.10
          - name: rhacs-operator
            channels:
            - name: stable
          - name: web-terminal
        - catalog: registry.redhat.io/redhat/certified-operator-index:v4.12
          packages:
          - name: crunchy-postgres-operator
          - name: gpu-operator-certified
          - name: conjur-follower-operator
          - name: mongodb-enterprise
      
      Please investigate this behaviour for issues with oc-mirror.
          

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

      4.14
          

      How reproducible:

      100%
          

      Steps to Reproduce:

          1. Mirror images to tar archive using the first imageset-config provided.
          2. Push the archive to registry.
          3. Error appears
          4. Remove mongodb-enterprise from the imageset-config and try again. Issue is not reproduced.
          5. Perform the same for other 2 imageset-config with mongodb-enterprise included in them. Issue is not reproduced.
          

      Actual results:

      Strange failure with mongodb-enterprise image not found in archive.
          

      Expected results:

      Mirroring should succeed.
          

      Additional info:

      
          

            luzuccar@redhat.com Luigi Mario Zuccarelli
            rhn-support-alosingh Alok Singh
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: