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

availability sli for SLO monitoring resource #4344

Conversation

venkykuberan
Copy link
Contributor

@venkykuberan venkykuberan commented Dec 22, 2020

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

monitoring : added `availability` sli metric support for the resource `google_monitoring_slo`

fixes hashicorp/terraform-provider-google#7239

@google-cla google-cla bot added the cla: yes label Dec 22, 2020
@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@ndmckinley, please review this PR or find an appropriate assignee.

@slevenick slevenick removed the request for review from nat-henderson December 22, 2020 01:02
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 107 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 107 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 16 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=164153"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@ndmckinley, please review this PR or find an appropriate assignee.

@venkykuberan venkykuberan requested review from rileykarson and removed request for nat-henderson December 29, 2020 21:36
@venkykuberan venkykuberan marked this pull request as ready for review December 29, 2020 21:36
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 110 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 110 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 16 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=164785"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 110 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 110 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 16 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=164785"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

products/monitoring/terraform.yaml Outdated Show resolved Hide resolved
products/monitoring/api.yaml Outdated Show resolved Hide resolved
products/monitoring/api.yaml Outdated Show resolved Hide resolved
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 100 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 100 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 16 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=165347"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 131 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 4 files changed, 132 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=166121"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 131 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 131 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=166121"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 142 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 142 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 45 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=167123"

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@rileykarson
Copy link
Member

I'm seeing the following across multiple tests, can you take a look?

Test ended in panic.
------- Stdout: -------
=== RUN   TestAccMonitoringSlo_monitoringSloRequestBasedExample
=== PAUSE TestAccMonitoringSlo_monitoringSloRequestBasedExample
=== CONT  TestAccMonitoringSlo_monitoringSloRequestBasedExample
------- Stderr: -------
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 247 [running]:
github.com/hashicorp/terraform-provider-google-beta/v3/google-beta.resourceMonitoringSloEncoder(...)
  /opt/teamcity-agent/work/2e51954ade9939a/src/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_monitoring_slo.go:2293
github.com/hashicorp/terraform-provider-google-beta/v3/google-beta.resourceMonitoringSloCreate(0xc000c43400, 0x3220800, 0xc001194e00, 0x0, 0x0)

Also, do you mind adding a changelog as well?

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 4 files changed, 144 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=167972"


//Removing the dummy `enabled` attribute
if availability, ok := basSli["availability"]; ok {
Sli := obj["serviceLevelIndicator"].(map[string]interface{})
Copy link
Member

Choose a reason for hiding this comment

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

Should we check if serviceLevelIndicator is present too, or is it guaranteed to always be returned?

Copy link
Contributor Author

@venkykuberan venkykuberan Jan 21, 2021

Choose a reason for hiding this comment

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

A slo should have at least one ServiceLevelIndicator, Goal & calendar or rolling period.

@rileykarson
Copy link
Member

Rerunning VCR

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=168090"

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccActiveDirectoryDomainTrust_activeDirectoryDomainTrustBasicExample|TestAccCloudRunService_cloudRunServiceMultipleEnvironmentVariablesExample|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityCmekExample You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=168095"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 143 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 4 files changed, 144 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 46 insertions(+))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=169199"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SLO "availability" SLI metric support
3 participants