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

DNS provider incorrectly replaces TXT record: never stabilizes #9416

Closed
Labels
persistent-bug Hard to diagnose or long lived bugs for which resolutions are more like feature work than bug work size/m
Milestone

Comments

@mike-at-spotify
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

0.15.5

Affected Resource(s)

  • google_dns_record_set

Terraform Configuration Files

main.tf

terraform {
  backend "gcs" {
    bucket = "alf-testing-terraform-state"
    prefix = "terraform/state/demozone-com"
  }
}

resource "google_dns_managed_zone" "google_zones" {
  dns_name = "demozone.com."
  name     = "demozone-com"
}

resource "google_dns_record_set" "this" {
  name         = "txt1.demozone.com."
  managed_zone = "demozone-com"
  type         = "TXT"
  ttl          = 300
  rrdatas      =  ["v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtJSh7KoLT+LnUDMK Ef1gTSwbHsMQ/VBR7v58ALwSUL173mtLvgR9/jqJmjLlJn6NcgJsPWFOO2Kh GBkH1rmTDUTl6XDRPEwXYB5SlSSTlcGRneyLq07h6nNprICMBQsOsBa2OzxQ JA92xJJZ5AGmf8xFdNihy8KwU93IQfSX69oMgvYJLV0zkxd1ErxMHoAVIBJx j/yudSowINRwpeD5JsHuWaCkRwb7+gpZiiL18VKkGMOjzdF8f2hr0ruOF8aH XpWfK/51Ob0Bd5SV5LPMSQZ4pubQUFdcKh+v4e39gLBUKZV9hEVBTFsgyrba Da+cLyf+sgGZxYu1CJ/vAo6xxQIDAQAB"]
}

providers.tf

provider "google" {
  project = "alf-testing"
}

versions.tf

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 3.73.0"
    }
  }
  required_version = ">= 0.13"
}

Debug Output

https://gist.github.com/mike-at-spotify/a6e0ebc6de33eee2e2fa15798a7da3f8

Panic Output

Expected Behavior

When terraform apply is run twice consecutively without changing the resources, the second terraform apply should not make any changes.

Actual Behavior

Every terraform apply makes the same change in spite of the fact that the main.tf has not changed and also in spite of the fact that the previous terraform apply succeeded.

In other words, the infrastructure never becomes stable.

Steps to Reproduce

  1. terraform apply
  2. terraform apply
  3. terraform apply
  4. terraform apply

Important Factoids

This is about as simple as it gets. The infrastructure should be stable after the first apply, but it isn't.

References

@venkykuberan venkykuberan self-assigned this Jun 22, 2021
@venkykuberan
Copy link
Contributor

fix for this #9112 should take care of this issue as well

@rileykarson rileykarson removed their assignment Jul 14, 2021
@rileykarson rileykarson added persistent-bug Hard to diagnose or long lived bugs for which resolutions are more like feature work than bug work and removed bug labels Jul 14, 2021
@rileykarson
Copy link
Collaborator

Note: the solution to #9257 is almost certainly the solution to this

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
persistent-bug Hard to diagnose or long lived bugs for which resolutions are more like feature work than bug work size/m
Projects
None yet
3 participants