-
Notifications
You must be signed in to change notification settings - Fork 462
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] Environment variable to select Ray container is lower case sensitive. #1078
Comments
Good catch! Would you mind opening a PR to fix it? |
In my understanding, It is better to still set the ray container to be the first container (containers[0]). There are segments of code that do not utilize the
A thorough examination may need to fix this issue. |
@kevin85421 Sure, just let me know about the final decision, e.g. case sensitive or not, both for key and value.
@Yicheng-Lu-llll That is a strict restriction, and from user point of view having this env var option (and documenting it clearly) would be a better alternative. |
|
I believe it silently causes unexpected behavior. Say I define 2 containers, linkerd and main respectively. Operator will check for linkerd container as it’s the first one, override its command and args (via merging the original one with ray start) - since linkerd command does not have “ray start”. In that case the other container which is supposed to be Ray worker will be useless. Consider the case where linkerd container resources are relatively small compared to the main one, or pre-installed libraries do not exist in the linkerd but main container, etc. So I don’t think it always causes failure, but causes other problems that are going to be visible only when pod is inspected through describe, operator annotations, etc. |
#1379 enforces the Ray container must be the first app container in a Pod. |
Search before asking
KubeRay Component
ray-operator
What happened + What you expected to happen
RAY=true environment variable to identify Ray container does not seem to be working properly due to the check here:
kuberay/ray-operator/controllers/ray/common/pod.go
Line 495 in 2019b4b
where the check does not match with the command a few lines below:
kuberay/ray-operator/controllers/ray/common/pod.go
Line 496 in 2019b4b
It actually checks for
ray=true
env variable in a case sensitive manner.Reproduction script
--
Anything else
It must align with the logged statement for
RAY=true
format. Also not sure if that is still valid as I have not seen that within the docs but in the source.Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: