Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tcp telemetry for service-oriented waypoints #5968

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

keithmattix
Copy link
Contributor

What this PR does / why we need it:
The metadata_exchange filter only looks at downstream metadata; this PR configures it to check upstream metadata and store it in filter state (with the appropriate key) if it exists. Note that workload oriented waypoints are still broken because those endpoints have no metadata. /cc @howardjohn on where to make the control plane adjustments there.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): part of istio/istio#53593

Special notes for your reviewer:
Replaces #5963 for adding a compdb script; if you want to review #5963 on its own; I'll rebase this PR once that one is done.

@keithmattix keithmattix requested a review from a team as a code owner November 30, 2024 21:51
@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 30, 2024
Copy link
Member

@zirain zirain left a comment

Choose a reason for hiding this comment

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

LGTM, can you rebase and just keep the core logic in this PR?

cc @howardjohn @kyessenov

@keithmattix keithmattix force-pushed the fix-tcp-ambient-metrics branch from 47449a6 to 2750f0f Compare December 26, 2024 22:36
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Dec 27, 2024
@keithmattix keithmattix force-pushed the fix-tcp-ambient-metrics branch from 2750f0f to 4c1a543 Compare December 27, 2024 19:44
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Dec 27, 2024
@keithmattix keithmattix force-pushed the fix-tcp-ambient-metrics branch from 4c1a543 to 5024ae9 Compare December 27, 2024 22:32
@keithmattix keithmattix force-pushed the fix-tcp-ambient-metrics branch from 5024ae9 to 738c6e2 Compare December 27, 2024 22:34
@keithmattix keithmattix requested a review from zirain December 27, 2024 22:53
@istio-testing istio-testing merged commit 1450780 into istio:master Dec 30, 2024
7 checks passed
@keithmattix keithmattix added cherrypick/release-1.22 Set this label on a PR to auto-merge it to the release-1.22 branch cherrypick/release-1.23 Set this label on a PR to auto-merge it to the release-1.23 branch cherrypick/release-1.24 Set this label on a PR to auto-merge it to the release-1.24 branch labels Dec 30, 2024
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.22":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	test/envoye2e/stats_plugin/stats_test.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/stats_plugin/stats_test.go
Auto-merging test/envoye2e/inventory.go
CONFLICT (content): Merge conflict in test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.24":

Applying: format
Using index info to reconstruct a base tree...
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

1 similar comment
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.23":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.22":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	test/envoye2e/stats_plugin/stats_test.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/stats_plugin/stats_test.go
Auto-merging test/envoye2e/inventory.go
CONFLICT (content): Merge conflict in test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.24":

Applying: format
Using index info to reconstruct a base tree...
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.22":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	test/envoye2e/stats_plugin/stats_test.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/stats_plugin/stats_test.go
Auto-merging test/envoye2e/inventory.go
CONFLICT (content): Merge conflict in test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.23":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

1 similar comment
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.23":

Applying: format
Using index info to reconstruct a base tree...
M	source/extensions/filters/network/metadata_exchange/BUILD
M	source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
M	test/envoye2e/inventory.go
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
Auto-merging test/envoye2e/inventory.go
Auto-merging source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
CONFLICT (content): Merge conflict in source/extensions/filters/network/metadata_exchange/metadata_exchange.cc
Auto-merging source/extensions/filters/network/metadata_exchange/BUILD
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: #5968 failed to apply on top of branch "release-1.24":

Applying: format
Using index info to reconstruct a base tree...
M	testdata/testdata.gen.go
Falling back to patching base and 3-way merge...
Auto-merging testdata/testdata.gen.go
CONFLICT (content): Merge conflict in testdata/testdata.gen.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 format

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

1 similar comment
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new issue could not be created for failed cherrypick: status code 410 not one of [201], body: {"message":"Issues are disabled for this repo","documentation_url":"https://docs.github.com/v3/issues/","status":"410"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick/release-1.22 Set this label on a PR to auto-merge it to the release-1.22 branch cherrypick/release-1.23 Set this label on a PR to auto-merge it to the release-1.23 branch cherrypick/release-1.24 Set this label on a PR to auto-merge it to the release-1.24 branch size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants