State which IP addresses are failing to match. (#11957)

* State which IP addresses are failing to match.

* Use f-string.

* action item?

* I could swear swear this passed with length 80 before

* wait, this is how it wants f-strings

* reword

* action item

* f

Co-authored-by: SangBin Cho <rkooo567@gmail.com>

* f

Co-authored-by: SangBin Cho <rkooo567@gmail.com>

* f

Co-authored-by: SangBin Cho <rkooo567@gmail.com>

Co-authored-by: SangBin Cho <rkooo567@gmail.com>
This commit is contained in:
dHannasch
2020-11-19 18:25:25 -07:00
committed by GitHub
parent e72abcd0aa
commit 4b2c5daf45
+9 -1
View File
@@ -258,7 +258,15 @@ def get_address_info_from_redis_helper(redis_address,
break
if relevant_client is None:
raise RuntimeError(
"Redis has started but no raylets have registered yet.")
f"This node has an IP address of {node_ip_address}, and Ray "
"expects this IP address to be either the Redis address or one of"
f" the Raylet addresses. Connected to Redis at {redis_address} and"
" found raylets at "
f"{', '.join(c['NodeManagerAddress'] for c in client_table)} but "
f"none of these match this node's IP {node_ip_address}. Are any of"
" these actually a different IP address for the same node?"
"You might need to provide --node-ip-address to specify the IP "
"address that the head should use when sending to this node.")
return {
"object_store_address": relevant_client["ObjectStoreSocketName"],