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

oc-mirror hits 401 unauthorized after hanging for a while

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.13.z, 4.12.z, 4.14.z, 4.15.z
    • oc / oc-mirror
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Mirroring fails with below after oc-mirror hangs for a while. The issue seems similar to https://issues.redhat.com/browse/OCPBUGS-7465. The fix was delivered in 4.14.0 and 4.15.0 but it still doesn't work.
      
      # oc mirror --config=./imageset-config.yaml file://root/
      Logging to .oc-mirror.log
      Found: root/oc-mirror-workspace/src/publish
      Found: root/oc-mirror-workspace/src/v2
      Found: root/oc-mirror-workspace/src/charts
      Found: root/oc-mirror-workspace/src/release-signatures
      No metadata detected, creating new workspace
      
      The rendered catalog is invalid.
      
      Run "oc-mirror list operators --catalog CATALOG-NAME --package PACKAGE-NAME" for more information.
      
      error: error rendering new refs: render reference "registry.redhat.io/redhat/certified-operator-index:v4.14": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry.redhat.io/v2/redhat/certified-operator-index/blobs/sha256:144af1563390e9a694f66e8065b32e12ab836b1412de7fdf423996a229b00d21: 401 Unauthorized - Server message: unauthorized: Access to the requested resource is not authorized
      
          

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

      4.14
          

      How reproducible:

      Reproducible in customer environemnt
          

      Steps to Reproduce:

      Mirroring fails in low bandwidth environemnt
          

      Actual results:

      Mirroring fails to with 401 unauthorized error
          

      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:
            6 Start watching this issue

              Created:
              Updated: