Skip to content

Conversation

@ZetaoZhuang
Copy link
Contributor

@ZetaoZhuang ZetaoZhuang commented May 12, 2025

Reason for Change:

revert the apipa endpoint gw change to .1 to resolve the nc to host connection issue in Linux contianer. This does not impact the initial change for changing the apipa network gw and loop adapter defualt gw from .1 to .2 on host.

Issue Fixed:

Requirements:

Notes:
This fix already been verified by updating the legacy runner cns with this fix for both windows and linux containers.

Copilot AI review requested due to automatic review settings May 12, 2025 18:13
@ZetaoZhuang ZetaoZhuang requested a review from a team as a code owner May 12, 2025 18:13
@ZetaoZhuang ZetaoZhuang requested a review from nairashu May 12, 2025 18:13
Copy link
Contributor

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 reverts the APIPA endpoint gateway change on Windows to use the loopback adapter IP, ensuring that the gateway value is restored to .1 to resolve the NC-to-host connectivity issue.

  • Removed the assignment of hostApipaIP using localIPConfiguration.GatewayIPAddress.
  • Updated the hcnRoute to use hnsLoopbackAdapterIPAddress for the NextHop field.
Comments suppressed due to low confidence (2)

cns/hnsclient/hnsclient_windows.go:509

  • The removal of hostApipaIP assignment is acceptable if hnsLoopbackAdapterIPAddress consistently represents the intended '.1' gateway. Please verify that hnsLoopbackAdapterIPAddress is defined and maintained correctly across the codebase.
hostApipaIP := localIPConfiguration.GatewayIPAddress

cns/hnsclient/hnsclient_windows.go:529

  • Ensure that hnsLoopbackAdapterIPAddress reliably holds the correct gateway IP (.1) as mandated by the revert. Confirm this change aligns with the overall host container networking requirements.
NextHop:           hnsLoopbackAdapterIPAddress,

@ZetaoZhuang
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ZetaoZhuang ZetaoZhuang requested a review from msvik May 12, 2025 21:21
@ZetaoZhuang ZetaoZhuang enabled auto-merge May 12, 2025 21:49
@ZetaoZhuang ZetaoZhuang added this pull request to the merge queue May 13, 2025
@ZetaoZhuang ZetaoZhuang removed this pull request from the merge queue due to a manual request May 13, 2025
Copy link
Contributor

@QxBytes QxBytes left a comment

Choose a reason for hiding this comment

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

confirmed w/ zetao that new endpoints have "endpoint gateway addr" as .1 and existing endpoints can retain their "endpoint gateway addr" as .2 without issue

@ZetaoZhuang ZetaoZhuang added this pull request to the merge queue May 14, 2025
Merged via the queue into master with commit 28331b4 May 15, 2025
15 of 16 checks passed
@ZetaoZhuang ZetaoZhuang deleted the change_apipa_endpoint_gateway_back_to_1 branch May 15, 2025 01:32
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* change apipa endpoint gateway back to .1

* lint fix

* add comment
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.

5 participants