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

readyz endpoint returns incorrect status on DB agent when using dynamic registration #10077

Closed
nickbrennan1 opened this issue Feb 1, 2022 · 0 comments · Fixed by #11160
Closed
Assignees
Labels
bug c-cv Internal Customer Reference database-access Database access related issues and PRs

Comments

@nickbrennan1
Copy link
Contributor

When using dynamic registration for DB endpoints, if a new DB agent is started, after it joins the cluster the readyz agent will report status

{"status":"teleport is starting and hasn't joined the cluster yet"}

...until a DB resource is launched on that agent. Once the agent has a DB resource assigned the readyz endpoint will then return

{"status":"ok"}

The endpoint on that agent then behaves as expected and returns ok status, even if the DB resource is deleted. However, if the DB resource is deleted so the agent is serving no databases, and the agent is then restarted, readyz will then return a status of not having joined the cluster, even though a reverse tunnel to the proxy exists.

Expected behaviour would be that once the agent has joined the cluster and a reverse tunnel is in place, readyz would return ok consistently.

Reproduction Steps

As minimally and precisely as possible, describe step-by-step how to reproduce the problem.

  1. Create DB agent and watch it join the cluster
  2. curl http://localhost:3000/readyz.
  3. Add DB resource and repeat scenario as described above

Server Details

  • Teleport version (run teleport version): 8.1.1
  • Server OS (e.g. from /etc/os-release): Ubuntu 20.04
  • Where are you running Teleport? (e.g. AWS, GCP, Dedicated Hardware): AWS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c-cv Internal Customer Reference database-access Database access related issues and PRs
Projects
None yet
4 participants