-
Notifications
You must be signed in to change notification settings - Fork 66
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
AtlasDatabaseUser - message - unable to list: test because of unknown namespace for the cache #1515
Comments
Thanks for reporting this issue @qtranton ! Could you give us a minimum YAML sample we could use to reproduce the issue? |
Sure, i have cleanup i guess my yaml here
|
cc @roothorp |
@qtranton can you check if you happen to have the |
i.e. it looks like the |
In helm i see this
So i have check pod and
|
In roles i also see some mention of this variable, but since it empty no additional roles was created
Plus it works on older version so older version could read secrets i guess |
Validate secrets as well
Get error like
Back labels in place get error
|
@josvazg @s-urbaniak hey have some time to debug issue, so on my local cluster for some reason on version 2.2.2 i do not see status.name parameters.
To
Here
|
Update: Recheck on v 1.7 and name in status appear |
Thanks for your reports. I managed to reproduce the same. I am debugging it now. |
Seems we found the issue, we are working on a fix. In the meantime, you could pass the list of namespaces you want to get checked. ie: helm install ... --set watchNamespaces=test,... |
@josvazg on local machine yeah, but for main cluster we have too much namespace :) i will wait, not so critical |
BTW this #1619 already fixes the issue but it includes unrelated refactors. I am working on a specific test to cover this bug which was not previously detected by our test suite. |
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
I will check build locally then :) |
@josvazg jfyi
Get this error now |
@josvazg just build and put docker container to helm chart 2.2.2 nothing change from in deployment |
@josvazg After few additional crd ( not in upstream yet :D ) user status becomes true. We will do some additional tests according to our infra. |
* Add reproducing test Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com> * Fix cache and predicate setup * test/e2e/cache_watch_test.go: improve e2e test * Fix gets labels and ns names Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com> * Rename controller predicates helper * Move trim to env reading line --------- Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com> Co-authored-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
Have a version of operator 1.7.1 and decide to upgrade to the latest in cluster.
Create local env
{"level":"INFO","time":"2024-04-16T12:12:14.543Z","msg":"Status update","atlasdatabaseuser":"test/operator-upgrade-test","lastCondition":{"type":"DatabaseUserReady","status":"False","lastTransitionTime":null,"reason":"DatabaseUserStaleConnectionSecrets","message":"unable to list: test because of unknown namespace for the cache"}}
What did you expect?
After all step operator just should work as expected
What happened instead?
AtlasDatabaseUser status always in False state
Operator Information
Kubernetes Cluster Information
Additional context
Try to figure out why AtlasDatabaseUser CRD failed.
It's created proper secrets and creates users in AtlasUI but CRD itself always in Ready - False state
status: conditions: - lastTransitionTime: "2024-04-16T12:03:17Z" status: "False" type: Ready - lastTransitionTime: "2024-04-16T11:44:08Z" status: "True" type: ResourceVersionIsValid - lastTransitionTime: "2024-04-16T11:44:08Z" status: "True" type: ValidationSucceeded - lastTransitionTime: "2024-04-16T12:03:18Z" message: 'unable to list: test because of unknown namespace for the cache' reason: DatabaseUserStaleConnectionSecrets status: "False" type: DatabaseUserReady
If possible, please include:
{"level":"DEBUG","time":"2024-04-16T12:17:12.709Z","msg":"Ensured connection Secret up-to-date","atlasdatabaseuser":"test/operator-upgrade-test","secretname":"HIDDEN"} {"level":"INFO","time":"2024-04-16T12:17:12.709Z","msg":"Status update","atlasdatabaseuser":"test/operator-upgrade-test-","lastCondition":{"type":"DatabaseUserReady","status":"False","lastTransitionTime":null,"reason":"DatabaseUserStaleConnectionSecrets","message":"unable to list: test because of unknown namespace for the cache"}}
The text was updated successfully, but these errors were encountered: