Skip to content

Conversation

@hippogr
Copy link
Contributor

@hippogr hippogr commented Oct 20, 2025

Copy pai-config to cluster local storage docker image to avoid DNS error

@hippogr hippogr requested review from Copilot, yukirora and zhogu October 20, 2025 11:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes DNS resolution errors in the cluster local storage service by implementing hostname-to-IP mapping from a configuration file. The changes allow the service to resolve hostnames to IP addresses directly, avoiding DNS lookup failures.

  • Added hostname-to-IP mapping functionality using the pai-cluster-config layout file
  • Modified all SSH commands to use IP addresses instead of hostnames when available
  • Mounted the pai-configuration configMap to provide access to the layout configuration

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/cluster-local-storage/src/service.py Implements hostname-to-IP mapping and modifies SSH commands to use resolved IPs
src/cluster-local-storage/deploy/cluster-local-storage.yaml.template Adds volume mount for pai-configuration configMap to access layout file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yukirora yukirora closed this Oct 31, 2025
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