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

oc-mirror error :unauthorized: Access to the requested resource is not authorized, but succeed on second time without any change

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when I run the oc-mirror copy action for OCI Images , the first time copy command failed with error: unauthorized: Access to the requested resource is not authorized, didn't do any change , just run the command for second time, will succeed.

      error: unable to push registry.redhat.io/openshift4/ose-cluster-kube-descheduler-operator: failed to retrieve blob sha256:5d5771e51f28e6b3e7609ebb505bfb1411539e7725ef4ffb34264b8b731088fd: unauthorized: Access to the requested resource is not authorized
      error: unable to open source layer sha256:4459419314e3136e041b46009112e189e0ad4fbff3e6c81526fc978c44ecd51c to copy to file://openshift4/ose-cluster-kube-descheduler-operator/e2959e2320724b440e4f59b33461147af730988f91d898ecfdb8880e66788cd1: unauthorized: Access to the requested resource is not authorized
      info: Mirroring completed in 11m12.46s (868kB/s)
      error: copying images one or more errors occurred while uploading images

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

      oc-mirror 4.12

       

      How reproducible:
      sometimes

       

      Steps to Reproduce:

      1. oc-mirror --config imageset-copy.yaml oci:///home/ocmirrortest/Oci  --use-oci-feature --oci-feature-action=copy
      
      Actual results:
      {code:none}
      uploading: file://openshift4/ose-cluster-kube-descheduler-operator/e2959e2320724b440e4f59b33461147af730988f91d898ecfdb8880e66788cd1 sha256:9ed68b94598760816e142fcf7f8e9572af00b5567df5cc818ddb0810919627a6 73.08MiB
      sha256:31401756d1516d1daae2796182b4701c074f5d3c7ffaf207097a41f12860a82d file://openshift4/ose-cluster-kube-descheduler-operator-bundle/31401756d1516d1daae2796182b4701c074f5d3c7ffaf207097a41f12860a82d
      error: unable to push registry.redhat.io/openshift4/ose-cluster-kube-descheduler-operator: failed to retrieve blob sha256:5d5771e51f28e6b3e7609ebb505bfb1411539e7725ef4ffb34264b8b731088fd: unauthorized: Access to the requested resource is not authorized
      error: unable to open source layer sha256:4459419314e3136e041b46009112e189e0ad4fbff3e6c81526fc978c44ecd51c to copy to file://openshift4/ose-cluster-kube-descheduler-operator/e2959e2320724b440e4f59b33461147af730988f91d898ecfdb8880e66788cd1: unauthorized: Access to the requested resource is not authorized
      info: Mirroring completed in 11m12.46s (868kB/s)
      error: copying images one or more errors occurred while uploading images

      Expected results:

      no error 
      
      

       

      Additional info:

      Didn't do any change , just run the command again, will succeed

       

       

            luzuccar@redhat.com Luigi Mario Zuccarelli
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Red Hat Employee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: