Bug 1812814

Summary: "oc adm release info --registry-config" doesn't work on OCP4 cluster with restricted network
Product: OpenShift Container Platform Reporter: ryoji noma <rnoma>
Component: ocAssignee: Sally <somalley>
Status: CLOSED DUPLICATE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, jokerman, maszulik, mfojtik
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-05 13:32:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***