Bug 1812814 - "oc adm release info --registry-config" doesn't work on OCP4 cluster with restricted network
Summary: "oc adm release info --registry-config" doesn't work on OCP4 cluster with res...
Keywords:
Status: CLOSED DUPLICATE of bug 1823143
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Sally
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-12 09:17 UTC by ryoji noma
Modified: 2023-09-07 22:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:32:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description ryoji noma 2020-03-12 09:17:01 UTC
Description of problem:
   
    On OCP4 cluster installed on restricted network, "oc adm release info --registry-config" keeps trying to access "quay.io" instead of mirror registry.
     
    Version-Release number of selected component (if applicable):
     
    My reproduce environment is 4.3
    $ oc version
    Client Version: openshift-clients-4.3.0-201910250623-88-g6a937dfe
    Kubernetes Version: v1.11.0+d4cacc0
     
    The customer's environment is 4.2.
     
    How reproducible:
     
    Steps to Reproduce:
    1.
    $ vi /var/lib/kubelet/config.json
    $ cat  /var/lib/kubelet/config.json
    {"auths":{"https://index.docker.io/v1/":{"auth":"YWRfbGzhcGU6R2labnRib21ifTE=","email":"user"}}}
    $ /var/lib/kubelet/config.json | jq
    {
      "auths": {
        "https://index.docker.io/v1/": {
          "auth": "YWRfbGzhcGU6R2labnRib21ifTE=",
          "email": "user"
        }
      }
    }
     
    2.
    $ oc adm release info  --registry-config='/var/lib/kubelet/config.json' --loglevel=6
     
    Actual results:
    It did not access the mirror registry regardless of "--registry-config" option value.
     
    Expected results:
    It should access the mirror registry.
     
    Additional info:
    I attach two commands results.
    $ oc adm release info  --registry-config='/var/lib/kubelet/config.json' --loglevel=6
    $ oc adm release info  --loglevel=6

Comment 4 Maciej Szulik 2020-05-05 13:32:20 UTC

*** This bug has been marked as a duplicate of bug 1823143 ***


Note You need to log in before you can comment on or make changes to this bug.