How severe does this issue affect your experience of using Ray?
- High: It blocks me to complete my task.
I could start TLS-enabled ray cluster the following command, and running $ RAY_USE_TLS=1 RAY_TLS_ SERVER_CERT=... -snip- ... ray start --address="10.xxx.yyy.zzz:8000"
works well as connecting a new one.
RAY_USE_TLS=1 \
RAY_TLS_SERVER_CERT=<path-to-cert> \
RAY_TLS_SERVER_KEY=<path-to-key> \
RAY_TLS_CA_CERT=<path-to-cert> \
ray start --head --node-ip-address="10.xxx.yyy.zzz" --port="8000" --include-dashboard=False --disable-usage-stats
However, I can’t connect in my Python script. In some issue about connecting TLS-enabled head-node, they use the following snippet. I tried but didn’t go well.
import os
import ray
os.environ["RAY_USE_TLS"] = "1"
os.environ["RAY_TLS_SERVER_CERT"] = "<path-to-cert>"
os.environ["RAY_TLS_SERVER_KEY"] = "<path-to-key>"
os.environ["RAY_TLS_CA_CERT"] = "<path-to-ca-cert>"
RAY_HOST = "10.xxx.yyy.zzz"
ray.init()
ref:
- [Ray Client] Unable to connect to Ray Cluster with ray.init · Issue #26338 · ray-project/ray · GitHub
- [Ray: Core] - Unable to enable TLS on the ray head node · Issue #28534 · ray-project/ray · GitHub
Does it really work?