Skip to content

GoogleC2P: remove dependency on metadata server for IPv6 node metadata#8550

Merged
dfawley merged 6 commits into
grpc:masterfrom
apolcyn:remove_ipv6
Sep 8, 2025
Merged

GoogleC2P: remove dependency on metadata server for IPv6 node metadata#8550
dfawley merged 6 commits into
grpc:masterfrom
apolcyn:remove_ipv6

Conversation

@apolcyn

@apolcyn apolcyn commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Remove reliance on metadata server since it's result is no longer needed, hardcode IPv6 support in node metadata instead.

Related c++ change: grpc/grpc#40571

Note we preserve prior behavior in case experiment NewPickFirstEnabled is disabled, because our testing/qualification has not covered that being disabled.

Related: internal issue b/407587619

RELEASE NOTES: n/a

@codecov

codecov Bot commented Sep 2, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.42%. Comparing base (29ba001) to head (fa95888).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
xds/googledirectpath/googlec2p.go 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8550      +/-   ##
==========================================
- Coverage   82.00%   81.42%   -0.58%     
==========================================
  Files         413      413              
  Lines       40523    40621      +98     
==========================================
- Hits        33230    33075     -155     
- Misses       5909     6067     +158     
- Partials     1384     1479      +95     
Files with missing lines Coverage Δ
xds/googledirectpath/googlec2p.go 85.85% <57.14%> (-7.48%) ⬇️

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apolcyn apolcyn changed the title [google-c2p] remove dependency on metadata server for IPv6 node metadata google-c2p: remove dependency on metadata server for IPv6 node metadata Sep 2, 2025
@apolcyn apolcyn changed the title google-c2p: remove dependency on metadata server for IPv6 node metadata GoogleC2p: remove dependency on metadata server for IPv6 node metadata Sep 2, 2025
@apolcyn apolcyn changed the title GoogleC2p: remove dependency on metadata server for IPv6 node metadata GoogleC2P: remove dependency on metadata server for IPv6 node metadata Sep 2, 2025
@apolcyn

apolcyn commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

@dfawley I'm having some trouble getting the PR validation to pass `This PR must have a label starting with 'Type:'. I don't have permissions to set labels.

Besides that, sending for review

@apolcyn apolcyn marked this pull request as ready for review September 2, 2025 22:35
@arjan-bal arjan-bal requested a review from dfawley September 3, 2025 07:04
@arjan-bal arjan-bal added the Type: Feature New features or improvements in behavior label Sep 3, 2025
@arjan-bal arjan-bal added this to the 1.76 Release milestone Sep 3, 2025

@dfawley dfawley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR!

Comment thread xds/googledirectpath/googlec2p.go Outdated
}
if envconfig.NewPickFirstEnabled {
// Enable dualstack endpoints in TD.
// TODO(apolcyn): remove IPv6 metadata server queries entirely after old pick first is removed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If there isn't already one, could you please file an issue (internal or on github) to track this work? Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review!

Done, filed #8561

@dfawley dfawley merged commit e60a04b into grpc:master Sep 8, 2025
16 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Type: Feature New features or improvements in behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants