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

[Bug] KubeRay operator failed to watch endpoint #2080

Merged
merged 9 commits into from
Apr 17, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Apr 13, 2024

Why are these changes needed?

The Get operation in controller-runtime also requires watch permission. See kubernetes-sigs/controller-runtime#1156 for more details. This PR (1) adds the watch permission for the endpoints, and (2) improves the observability of the requests sent by curl commands so that users can log in to the curl Pod and check the response.

I observed that many requests fail due to timeout, so I think there may be resource contention if we launch 20 curl processes simultaneously. Hence, this PR also adds time.sleep(1) between each curl request.

  • TODO: Why does adding watch cause the RayService sample YAML tests to fail frequently if we don't add time.sleep(1)?

Related issue number

Closes #2073

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@kevin85421 kevin85421 force-pushed the add-watch-endpoints branch from 50b27a9 to 352439d Compare April 17, 2024 03:00
@kevin85421 kevin85421 marked this pull request as ready for review April 17, 2024 15:59
@kevin85421 kevin85421 requested a review from jjyao April 17, 2024 15:59
@kevin85421 kevin85421 merged commit 791ea37 into ray-project:master Apr 17, 2024
24 checks passed
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 this pull request may close these issues.

Kuberay operator failed to watch endpoint
2 participants