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

Catalog image build by oc-mirror in crashloopback: cache is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 4.13.z, 4.12.z, 4.14.z
    • oc-mirror
    • Important
    • No
    • CLID Sprint 253
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      
      Issue related to the
      https://issues.redhat.com/browse/OCPBUGS-12257
      https://issues.redhat.com/browse/OCPBUGS-12236
      
      The issue still persists even after the bug has been fixed.
      When using 4.14 version of the oc-mirror the "redhat-operator-index" image is still not crashing with error:
      
      ```
      time="2023-04-20T05:24:15Z" level=fatal msg="cache requires rebuild: cache reports digest as \"xxx\", but computed digest is \"yyy\""
      ```
      
      The current workaround is to build the custom image and override the Entrypoint.
      Same as reported in https://access.redhat.com/solutions/7006771
      
      ```
                     "Entrypoint": [
                          "/bin/opm"
                     ],
                     "Cmd": [
                          "serve",
                          "/configs",
                          "--cache-dir=/cache"        <<<<<<<<<< remove that part
                     ],
      ```
      
      I believe that the issue is in the "redhat-operator-index".
      The image still uses the cache, but the "oc-mirror" doesn't use that.
      
      

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

      
      OpenShift Container Platform:
      - 4.14
      - 4.13
      - 4.12
      
          

      How reproducible:

      Reproducible on customer environment.
      Customer uses the latest 4.14 image for the "redhat-operator-index".
          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

      
          

      Expected results:

      
          

      Additional info:

      
          

            luzuccar@redhat.com Luigi Mario Zuccarelli
            rhn-support-vwalek Vladislav Walek
            ying zhou ying zhou
            Angela Fogarolli, Luigi Mario Zuccarelli
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: