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

telemetry: fix handling of off-GCP generic node cases #4003

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

douglas-reid
Copy link
Contributor

In certain off-GCP testing scenarios, the Stackdriver extension can be used with no platform metadata (no GCP_METADATA). This can lead to proxy crashes when trying to lookup platform metadata when building a Monitored Resource for reporting.

This PR adds a check to ensure platform metadata exists when building generic_node MRs. A test is added to ensure no crashing.

Fixes istio/istio#40201

@douglas-reid douglas-reid requested a review from a team as a code owner August 10, 2022 18:33
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 10, 2022
@douglas-reid
Copy link
Contributor Author

/cc @FrimIdan

Copy link
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

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

Thanks.

@ericvn
Copy link

ericvn commented Aug 10, 2022

/test test_proxy

@douglas-reid douglas-reid added the cherrypick/release-1.14 Set this label on a PR to auto-merge it to the release-1.14 branch label Aug 10, 2022
@istio-testing istio-testing merged commit 0f136d7 into istio:master Aug 10, 2022
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request created: #4004

@douglas-reid douglas-reid added the cherrypick/release-1.15 Set this label on a PR to auto-merge it to the release-1.15 branch label Aug 11, 2022
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request could not be created: failed to create pull request against istio/proxy#release-1.14 from head istio-testing:cherry-pick-4003-to-release-1.14: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between istio:release-1.14 and istio-testing:cherry-pick-4003-to-release-1.14"}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request created: #4006

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

Successfully merging this pull request may close these issues.

Stackdriver wasm crash when not running on GKE
4 participants