Bug 1802505

Summary: Can't create "ocp4_admin.kubeconfig" with `oc config --kubeconfig`
Product: OpenShift Container Platform Reporter: zhou ying <yinzhou>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED DUPLICATE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.zCC: aos-bugs, jokerman, mfojtik, xxia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1802506 (view as bug list) Environment:
Last Closed: 2020-02-13 13:52:10 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:
Bug Depends On:    
Bug Blocks: 1802506, 1802509    

Description zhou ying 2020-02-13 10:26:24 UTC
Description of problem:
Can't create "ocp4_admin.kubeconfig" with `oc config --kubeconfig`

Version-Release number of selected component (if applicable):
oc client: v4.3.2


How reproducible:
always

Steps to Reproduce:
When run automation cases: 
`oc config set-credentials admin --client-certificate=/root/workdir/dhcp-140-138-root/bbbb --client-key=/root/workdir/dhcp-140-138-root/aaaa --embed-certs=true --server=https://xxx --kubeconfig=/root/workdir/dhcp-140-138-root/ocp4_admin.kubeconfig --insecure-skip-tls-verify=true`

Actual results:
Can't create the config file 'ocp4_admin.kubeconfig'

Expected results:
3. Should create. 

Additional info:
`oc config --kubeconfig=/root/workdir/dhcp-140-138-root/ocp4_admin.kubeconfig` works well.

Comment 1 Maciej Szulik 2020-02-13 13:52:10 UTC

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