Bug 1802509 - Can't create "ocp4_admin.kubeconfig" with `oc config --kubeconfig`
Summary: Can't create "ocp4_admin.kubeconfig" with `oc config --kubeconfig`
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.1.z
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On: 1789857 1789869 1802505 1802506
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-13 10:29 UTC by zhou ying
Modified: 2020-02-13 13:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1802506
Environment:
Last Closed: 2020-02-13 13:53:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhou ying 2020-02-13 10:29:13 UTC
+++ This bug was initially created as a clone of Bug #1802506 +++

+++ This bug was initially created as a clone of Bug #1802505 +++

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:53:59 UTC
This is a minor problem we're not gonna backport all the way back to 4.1


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