Skip to content

Conversation

terrykong
Copy link
Contributor

No description provided.

Signed-off-by: Terry Kong <terryk@nvidia.com>
Signed-off-by: Terry Kong <terryk@nvidia.com>
Signed-off-by: Terry Kong <terryk@nvidia.com>
Copy link
Contributor

@SahilJain314 SahilJain314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Was there a bug this fixed?

@terrykong
Copy link
Contributor Author

@SahilJain314 Yea, there was an interesting bug someone ran into on NGC where the pod they were given had a hostname that was literally an integer like 255 (which was what socket.gethostname() returned). socket.gethostbyname("255") actually doesn't give you the ip address, but converts the string to an ipv4 address like 0.0.0.255.

Ray has an API to grab ip address, so that seemed like a better offering. Tested on the bug reporter's NGC machine that this works.

@terrykong terrykong enabled auto-merge April 9, 2025 21:54
@terrykong terrykong added this pull request to the merge queue Apr 9, 2025
Merged via the queue into main with commit 98606cd Apr 9, 2025
12 checks passed
@terrykong terrykong deleted the socket-fix branch April 9, 2025 22:39
parthchadha pushed a commit that referenced this pull request Apr 11, 2025
Signed-off-by: Terry Kong <terryk@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
KiddoZhu pushed a commit that referenced this pull request May 6, 2025
Signed-off-by: Terry Kong <terryk@nvidia.com>
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.

3 participants