-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployments fail with User "system:anonymous" cannot get replicationcontrollers
error
#2918
Comments
make sure you have the latest origin-deployer docker image. It now reads a service account API token to talk to the API |
Unfortunately, I have the latest code and images already, and I double confirmed that with:
and:
beside of that, I have tried with tagging the latest origin-deployer image with v0.5.4 before starting openshift server, which result in the same error:
|
Make sure the "deployer" service account in your namespace has API tokens generated before running deployments ( |
Seems that (no api tokens) is not the reason, I confirmed the tokens were generated before deploying registry, see log as below (step 7):
|
Can you docker inspect the failed deployer container and pastebin the result? |
Here is the container inspect result: |
User "system:anonymous" cannot get replicationcontrollers
error
A few questions:
Can you try running from master with --latest-images=true (ensure you have the latest openshift/origin-deployer pulled)... additional logging was added to the deployer image to help diagnose this |
Hi @liggitt , thanks for taking look on this, I've just confirmed it's caused by docker version (RHEL7.1 x86_64 + Docker 1.6.0), with '--latest-images=true', I saw log as:
After I upgrade docker to 1.6.2, the issue does not exist anymore. |
For reference, this was the RHEL issue with secret mounts being masked: #2921 (comment) |
Closing this issue, since it is resolved by the RHEL docker 1.6.2-8 fix. It is still possible to create a build or deployment pod immediately after creating a project before the serviceaccount API tokens have been generated, and no token will be mounted. The QPS changes in #3003 greatly narrowed the window where that was possible, but I will open another issue to track resolving that. |
Yes, thanks very much, actually I just figured out it's https://bugzilla.redhat.com/show_bug.cgi?id=1229319 , and not my version upgrade solved the issue, it's my RHEL-docker (1.6.0) -> upstream (1.6.2) docker solved the issue, and confirmed upstream 1.6.0 works fine too. |
opened #3035 to track issue with pods created before API tokens have been generated |
I'm having the same issue with the docker registry, but not only.
I'm using the openshift/origin:v0.6 docker image in boot2docker (docker 1.6.2), and Thanks |
For the record, it started to fail with v0.5.4, not v0.6. v0.5.3 is working fine. |
there are three separate issues that exhibit the same symptom ("User "system:anonymous" cannot get replicationcontrollers"):
|
@gravis the issue with boot2docker is actually a secret mounting issue... we just started using secrets in 0.5.4 in a way that the failures were noticeable |
We're also having this with a fresh new atomic installation (centos), shipping with docker 1.6.0, which makes impossible to run openshift out of the box :( |
I believe the CentOS Docker tracks upstream and doesn't include our patches. I'd be surprised if "rhel mounted /var/run/secrets which masked the secret" applies to the CentOS RPM. |
Could you translate that for redhat noobs please :) |
We have some patches to Docker in our Fedora and RHEL RPMs. 1 of these patches caused an issue with some of the 1.6.x RHEL RPMs, and it was fixed in 1.6.2-8. Again, this was for RHEL only. We probably need to spin up a CentOS VM and see if we can reproduce your issue. |
Ok thanks for the explanation. We have a strong Debian background, and all these flavors are pretty new to us :) |
@gravis can you open a separate issue to track the issue with secrets on CentOS, and include the results of |
Centos and RHEL have the same patches, even though the Centos does not use the secrets. |
@rhatdan I thought CentOS was pure upstream? |
running the latest code (commit 4518893), docker-registry failed to be deployed with error:
steps:
$ cd go/src/github.com/openshift/origin/examples/sample-app
$ openshift start &> logs/openshift.log &
wait for server to finish start
$ oadm registry --create --credentials=openshift.local.config/master/openshift-registry.kubeconfig --config=openshift.local.config/master/admin.kubeconfig
$ oc status --config=openshift.local.config/master/admin.kubeconfig
$ docker ps -a
$ docker logs e127ff84a12c
The text was updated successfully, but these errors were encountered: