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

[v2] oc mirror authentication error messages do not indicate an authentication error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 4.18.0
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          If oc-mirror v2 is unable to pull container images from a registry due to auth credentials it generates error messages that do not indicate to the user that there's an auth issue.

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

          4.18.6

      How reproducible:

          100%

      Steps to Reproduce:

          1. Reboot the test system to ensure there are no login credentials in the XDG directory or env var overrides
          2. Ensure ~/.docker/config.json does NOT exist
          3. Run the oc-mirror command like
      ```
      oc-mirror-4.18.6 --v2 ./imageset-config.yaml file:///opt/mirror
      ```
          4. Receive error messages about 502 bad gateway or unable to pull from a v1 registry
          5. Copy pull secret to ~/.docker/config.json
          6. Rerun the oc-mirror command
          7. All images are pulled successfully
          

      Actual results:

          oc-mirror error messages when the pull secret cannot be found do not help the user understand that there in an authentication issue

      Expected results:

          

      Additional info:

          

              Unassigned Unassigned
              dan5179 Dan Clark
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: