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

oc mirror ends with an error: 'invalid mirror sequence order'

XMLWordPrintable

    • Moderate
    • No
    • CFE Sprint 246
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, users encountered sequence errors when using the `tar.gz` artifact with the oc-mirror plugin. To resolve this, the oc-mirror plugin now ignores these errors when executed with the `--skip-pruning` flag. This update ensures that the sequence error, which no longer affects the order of `tar.gz` usage in mirroring, is effectively handled.
      (link:https://issues.redhat.com/browse/OCPBUGS-23496[*OCPBUGS-23496*])
      Show
      Previously, users encountered sequence errors when using the `tar.gz` artifact with the oc-mirror plugin. To resolve this, the oc-mirror plugin now ignores these errors when executed with the `--skip-pruning` flag. This update ensures that the sequence error, which no longer affects the order of `tar.gz` usage in mirroring, is effectively handled. (link: https://issues.redhat.com/browse/OCPBUGS-23496 [* OCPBUGS-23496 *])
    • Bug Fix
    • Done

      Description of problem:

      It's pretty often to fail "oc mirror" with:
      error: invalid mirror sequence order, want X, got Y
      The only reliable way to fix it is to just begin everything from scratch, e.g. clearing is needed (delete all directories like oc-mirror-workspace/ and the whole target repository).
      
      

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

      4.12.z, 4.13.z, 4.14.z

      How reproducible:

      Sometimes, for example when some network or registries' disturbances occur. Or intentional ctrl+c for "oc mirror" in some specific moment (when already some changes are made in .metadata.json on client or remote registry defined in storageConfig) 

      Steps to Reproduce:

      1. Initial mirror with oc mirror and a config file with ImageSetConfiguration
      2. waiting on chanages with images OR adding/removing operators
      3. oc mirror run again and fails
      

      Actual results:

      Fails:
      looking for metadata file at "publish/.metadata.json"
      Checking metadata sequence number
      error: invalid mirror sequence order, want 2, got 3
      

      Expected results:

      It can overcome the issues, maybe operations should be atomic and sequence numbers are incremented when the whole operation is successful.

      Additional info:

       

              luzuccar@redhat.com Luigi Mario Zuccarelli
              rhn-support-obockows Olimp Bockowski
              ying zhou ying zhou
              Subhashini T K Subhashini T K
              Olimp Bockowski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: