mongodb-atlas-kubernetes
mongodb-atlas-kubernetes copied to clipboard
AtlasDatabaseUser - message - unable to list: test because of unknown namespace for the cache
Have a version of operator 1.7.1 and decide to upgrade to the latest in cluster. Create local env
- k8s - by docker desktop v 1.25.4
- operator v1.7.1
- Add AtlasDeployment and AtlasDatabaseUser
- Upgrade to v2.2.0 ( helm upgrade crd then upgrade operator )
- Fix AtlasDeployment
- Check logs of operator get error aka
{"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
- 1.7.1 -> 2.2.0
Kubernetes Cluster Information
- Docker Desktop
- 1.25.4
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"}}