Skip to content
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

Message "the cache is not started, can not read objects" when starting the operator #809

Closed
jpkrohling opened this issue Dec 4, 2019 · 1 comment · Fixed by #814
Closed

Comments

@jpkrohling
Copy link
Contributor

Starting with the Operator SDK 0.12.0 (controller-runtime 0.3.0), the Jaeger Operator shows messages like the following during bootstrap:

WARN[0000] failed to upgrade managed instances           error="the cache is not started, can not read objects"
ERRO[0000] error cleaning orphaned deployment            error="the cache is not started, can not read objects"

This is caused by a change in the controller-runtime, which returns an error when the cache hasn't been started yet. Before this change, the client would just silently fail, meaning that our upgrade mechanism and the routine to clean orphaned deployments wasn't working properly.

To suppress the messages, we downgraded to 0.11.0 in #808, but a proper solution is to run the procedures above only when the cache has started. Determining when it happened is tricky, and it was suggested in the operator-sdk slack channel that we should make use of API clients instead.

@jpkrohling
Copy link
Contributor Author

cc @rubenvp8510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant