You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error messages from ACL are really, really confusing #13445
$ oc project myproject
Already on project "myproject" on server "https://10.1.2.2:8443".
$ oc new-build -D $'FROM centos:centos7\nCMD /bin/sleep\n' test
--> Found Docker image be5b4a9 (3 days old) from Docker Hub for "centos:centos7"
* An image stream will be created as "centos:centos7" that will track the source image
* A Docker build using a predefined Dockerfile will be created
* The resulting image will be pushed to image stream "origin:latest"
* Every time "centos:centos7" changes a new build will be triggered
--> Creating resources with label build=origin ...
error: User "developer" cannot create image.openshift.io.imagestreams in project "default"
error: User "developer" cannot create image.openshift.io.imagestreams in project "default"
error: User "developer" cannot create build.openshift.io.buildconfigs in project "default"
--> Failed
@smarterclayton i doubt that something like that will pass the tests, also I don't think it is really hitting the "/apis" endpoint (oc still use the legacy client).
agree on the error is terrible, I will try to fix the source of it.
I think the problem is the test argument being interpreted as a directory, and somehow deciding to create things in default. That's a ben problem.
If you can look at making that message better in a separate issue I would appreciate it - it's pretty confusing and I know what it's trying to tell me.
@smarterclayton there are many places where the messages contain the API group... i can sweep them all the try to fix or we can put some fix in upstream. We discussed with @sttts that something like "HumanName()" used in all errors reported (404, etc.) would make the messages much nicer...
Activity
smarterclayton commentedon Mar 19, 2017
Also, that error is pretty terrible.
smarterclayton commentedon Mar 19, 2017
From a brand new oc cluster up.
mfojtik commentedon Mar 19, 2017
@smarterclayton why it is creating imagestreams and buildconfigs in project "default"?
smarterclayton commentedon Mar 19, 2017
That's the bug - it looks like it isn't recognizing those resources as being namespaced, possibly.
mfojtik commentedon Mar 19, 2017
@smarterclayton i doubt that something like that will pass the tests, also I don't think it is really hitting the "/apis" endpoint (
ocstill use the legacy client).agree on the error is terrible, I will try to fix the source of it.
smarterclayton commentedon Mar 19, 2017
oc is not using the legacy client here - with
--loglevel=8:mfojtik commentedon Mar 19, 2017
interesting, must be discovery...
smarterclayton commentedon Mar 19, 2017
I think the problem is the
testargument being interpreted as a directory, and somehow deciding to create things in default. That's a ben problem.If you can look at making that message better in a separate issue I would appreciate it - it's pretty confusing and I know what it's trying to tell me.
mfojtik commentedon Mar 19, 2017
@smarterclayton there are many places where the messages contain the API group... i can sweep them all the try to fix or we can put some fix in upstream. We discussed with @sttts that something like "HumanName()" used in all errors reported (404, etc.) would make the messages much nicer...
smarterclayton commentedon Mar 19, 2017
Hrm, no, that's not it. This is really weird. oc cluster up vs a GCE cluster behave differently.
smarterclayton commentedon Mar 19, 2017
@mfojtik the order alone is really confusing - builds.....buildconfigs.
smarterclayton commentedon Mar 19, 2017
Well, new-build is broken somehow.
mfojtik commentedon Mar 19, 2017
@smarterclayton what images you use? openshift/origin:v1.5.0-alpha.3 ?
smarterclayton commentedon Mar 19, 2017
BAH. Never mind, it was environment variables set that caused in-cluster config to be used. That's fixed.
[-]can't create dockerbuild on master[/-][+]Error messages from ACL are really, really confusing[/+]smarterclayton commentedon Mar 19, 2017
Repurposing this to just be the error messages.
mfojtik commentedon Mar 19, 2017
@smarterclayton
https://github.com/mfojtik/origin/blob/4ee21451a56f70b258967fa9c222c9779e94be15/pkg/authorization/authorizer/messages.go#L34
this explains the api group prefix instead of suffix.
smarterclayton commentedon Mar 19, 2017
Yeah this is better ^
enj commentedon Mar 20, 2017
Duplicate of #13155