| Summary: | The oc login gives mkdir /src: permission denied | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Michal Fojtik <mfojtik> |
| Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, dmace, ffranz, jokerman, jvallejo, mmccomas, xiaocwan, xxia, yanpzhan |
| Target Milestone: | --- | ||
| Target Release: | 3.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 13:55:37 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: | |
|
Description
Michal Fojtik
2016-05-02 10:19:26 UTC
This also happen when you download the 'oc' tarball from web console. Also after this error, you're not logged in... QE tried with many oc versions including oc v3.2.0.20, v1.1.3, v1.0.6 and so on, We can login successfully. We think Michal may export KUBECONFIG uncorrectly, because after we exprot KUBECONFIG=/src, login will show error: mkdir /src: permission denied. Pls check again, thanks! (In reply to Yanping Zhang from comment #3) > QE tried with many oc versions including oc v3.2.0.20, v1.1.3, v1.0.6 and so > on, We can login successfully. > We think Michal may export KUBECONFIG uncorrectly, because after we exprot > KUBECONFIG=/src, login will show error: mkdir /src: permission denied. > Pls check again, thanks! I think you're right: Σ~/.../openshift/sti-php ∎ echo $KUBECONFIG /src/github.com/openshift/origin/openshift.local.certificates/admin/.kubeconfig I have no idea where I do export this, but of course it is my problem. However, it would be nice to print what is wrong to user when the mkdir failed (it prints just /src, but it should print something like: Failed to create kubeconfig under "/full/path". Please check the $KUBECONFIG variable. Reassigning to Fabiano as a usability issue for the CLI. Related PR: https://github.com/openshift/origin/pull/9968 Not reproduced on latest origin: Verified on oc/opensift version: v1.3.0-alpha.2+768ffed |