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

Cannot retrieve image info from Dev sandbox internal registry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Normal
    • None
    • 4.12.0
    • Image Registry
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      Cannot retrieve image info from internal registry

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

      4.12.0

      How reproducible:

       

      Steps to Reproduce:

      1. For my Dev Sandbox initially doing this command:
      ./oc registry login
      2. That login saves auth data into my ~/.docker/config.json. From that I take that and do base64 --decode
      3. Now I use curl like such to retrieve my image tags:
      $ curl -X GET -u <base64_auth_decoded> https://default-route-openshift-image-registry.apps.sandbox-m3.1530.p1.openshiftapps.com/v2/andrejusc-dev/caller-function/tags/list
      {"name":"andrejusc-dev/caller-function","tags":["latest"]}
      4. After that I'm trying to achieve similar via oc CLI and it fails:
      $ ./oc image info andrejusc-dev/caller-function:*
      Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
      error: errors:
      denied: requested access to the resource is denied
      unauthorized: authentication required
      
      Why?

      Actual results:

       

      Expected results:

       

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              fmissi Flavian Missi
              andrejusc@yahoo.com Andrejus Chaliapinas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: