Hide Forgot
Description of problem: $ oc login https://api.dev-preview-int.openshift.com --token=xxx Logged into "https://api.dev-preview-int.openshift.com:443" as "mfojtik" using the token provided. Using project "mfojtik-blog". error: mkdir /src: permission denied Version-Release number of selected component (if applicable): $ oc version oc v1.1.6 kubernetes v1.2.0-36-g4a3f9c5 This is happening on OSX (haven't tested the Linux binary). The 'oc' was installed from brew (but seems like it is pretty recent). Actual results: error: mkdir /src: permission denied Expected results: Should not see this error (where does it come from?) Additional info:
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