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

Error when overwriting google_dns_record_set #9112

Closed
rbianchi29 opened this issue May 10, 2021 · 17 comments · Fixed by GoogleCloudPlatform/magic-modules#5191, hashicorp/terraform-provider-google-beta#3625 or #10089
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

@rbianchi29
Copy link

rbianchi29 commented May 10, 2021

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.14.4

Affected Resource(s)

  • google_dns_record_set

Terraform Configuration Files

resource "google_dns_record_set" "test-dns" {
project = "ryanb-mocb-dev"
name = "hello.testing.ryan.com."
type = "A"
ttl = 600

managed_zone = "testing-ryan-com"
rrdatas = ["10.10.10.2"]
}

# Copy-paste your Terraform configurations here.
#
# For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.
# For security, you can also encrypt the files using our GPG public key:
#    https://www.hashicorp.com/security
#
# If reproducing the bug involves modifying the config file (e.g., apply a config,
# change a value, apply the config again, see the bug), then please include both:
# * the version of the config before the change, and
# * the version of the config after the change.

Expected Behavior

We use Terraform to deploy our main environment and our disaster recovery environment. The disaster recovery environment is a replica of the main environment but deployed into a different region. The main environment includes Cloud DNS with DNS records for various VM instances. The disaster recovery environment is only deployed in the event of a region failure.

To deploy our disaster recovery environment we simply copy all of the Terraform code and change the region. When deploying the resources the DNS records that will currently point to resources in the main environment are overwritten and updated with the new IP addresses of the resources deployed into the new region for DR.

Actual Behavior

Since 3.64.0 onwards the DNS record creation will now fail with:

Error: Error creating ResourceDnsRecordSet: googleapi: Error 409: The resource 'entity.rrset' named 'hello.testing.ryan.com. (A)' already exists, alreadyExists

When using version 3.63.0 this issue doesn't occur, it simply overwrites the existing DNS record.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@edwardmedia edwardmedia self-assigned this May 10, 2021
@edwardmedia
Copy link
Contributor

@rbianchi29 can you try v3.67.0? Please share the debug log if that does not work

@rbianchi29
Copy link
Author

I just tried but I cannot download that provider version. I don't think it's been released just yet?

@ghost ghost removed waiting-response labels May 10, 2021
@edwardmedia
Copy link
Contributor

@edwardmedia
Copy link
Contributor

@rbianchi29 the release should be out now. Can you verify?

@edwardmedia
Copy link
Contributor

@rbianchi29 is this still an issue?

@rbianchi29
Copy link
Author

Apologies for the delayed response. I've just tested with 3.67.0 and it's still an issue am afraid.

@ghost ghost removed waiting-response labels May 17, 2021
@edwardmedia
Copy link
Contributor

@rbianchi29 can you post your config and the steps to repro, and the debug log?

@rbianchi29
Copy link
Author

rbianchi29 commented May 17, 2021

Sure. Below are the two config files. I run an apply on Config File 1 first to deploy the DNS record, which runs successfully. I then run an apply on Config File 2 which fails because the DNS record already exists. It used to overwrite the record. Terraform State is kept separate for both deployments. I can get a debug log for you tomorrow.

Config File 1
terraform {
required_version = "0.14.4"
}

resource "google_dns_record_set" "test-dns" {
project = "xxxxxxxxxx"
name = "xxxx.testing.ryan.com."
type = "A"
ttl = 600

managed_zone = "testing-ryan-com"
rrdatas = ["10.10.10.1"]
}

Config File 2
terraform {
required_version = "0.14.4"
}

resource "google_dns_record_set" "test-dns" {
project = "xxxxxxxxxx"
name = "xxxx.testing.ryan.com."
type = "A"
ttl = 600

managed_zone = "testing-ryan-com"
rrdatas = ["10.10.10.2"]
}

@ghost ghost removed waiting-response labels May 17, 2021
@edwardmedia
Copy link
Contributor

edwardmedia commented May 18, 2021

@rbianchi29 yes, waiting for the debug logs of both runs

@rbianchi29
Copy link
Author

rbianchi29 commented May 18, 2021

Second Run - This is the attempt to overwrite the DNS record

2021/05/18 16:24:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2021/05/18 16:24:15 [INFO] Terraform version: 0.14.4
2021/05/18 16:24:15 [INFO] Go runtime version: go1.15.6
2021/05/18 16:24:15 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2021/05/18 16:24:15 [DEBUG] Attempting to open CLI config file: /home/ryan/.terraformrc
2021/05/18 16:24:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory /home/ryan/.terraform.d/plugins
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory /home/ryan/.local/share/terraform/plugins
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2021/05/18 16:24:15 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2021/05/18 16:24:15 [INFO] CLI command args: []string{"apply"}
2021/05/18 16:24:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2021/05/18 16:24:15 [DEBUG] New state was assigned lineage "c4392544-4997-1d06-da40-d1042287439f"
2021/05/18 16:24:15 [DEBUG] checking for provisioner in "."
2021/05/18 16:24:15 [DEBUG] checking for provisioner in "/usr/local/bin"
2021/05/18 16:24:15 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2021/05/18 16:24:15 [INFO] backend/local: starting Apply operation
2021-05-18T16:24:15.771+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-18T16:24:15.797+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-18T16:24:15.800+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=239
2021-05-18T16:24:15.800+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-18T16:24:15.829+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-18T16:24:15.828+0100
2021-05-18T16:24:15.867+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin365447250 network=unix timestamp=2021-05-18T16:24:15.867+0100
2021-05-18T16:24:15.867+0100 [DEBUG] plugin: using plugin: version=5
2021-05-18T16:24:15.959+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-18T16:24:15.960+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=239
2021-05-18T16:24:15.960+0100 [DEBUG] plugin: plugin exited
2021/05/18 16:24:15 [INFO] terraform: building graph: GraphTypeValidate
2021/05/18 16:24:15 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_dns_record_set.test-dns
m *terraform.MissingProviderTransformer with new graph:
google_dns_record_set.test-dns - *terraform.NodeValidatableResource
provider["registry.terraform.io/hashicorp/google"] - *terraform.NodeApplyableProvider

2021/05/18 16:24:15 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/18 16:24:15 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
2021/05/18 16:24:15 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/google"]" references: []
2021/05/18 16:24:15 [DEBUG] Starting graph walk: walkValidate
2021-05-18T16:24:15.962+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-18T16:24:15.985+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-18T16:24:15.987+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=256
2021-05-18T16:24:15.987+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-18T16:24:16.015+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-18T16:24:16.015+0100
2021-05-18T16:24:16.052+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: network=unix address=/tmp/plugin118471731 timestamp=2021-05-18T16:24:16.052+0100
2021-05-18T16:24:16.052+0100 [DEBUG] plugin: using plugin: version=5
2021-05-18T16:24:16.180+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-18T16:24:16.182+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=256
2021-05-18T16:24:16.182+0100 [DEBUG] plugin: plugin exited
2021/05/18 16:24:16 [INFO] backend/local: apply calling Plan
2021/05/18 16:24:16 [INFO] terraform: building graph: GraphTypePlan
2021/05/18 16:24:16 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_dns_record_set.test-dns (expand)
2021/05/18 16:24:16 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/18 16:24:16 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns (expand)" references: []
2021/05/18 16:24:16 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/google"]" references: []
2021/05/18 16:24:16 [DEBUG] Starting graph walk: walkPlan
2021-05-18T16:24:16.206+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-18T16:24:16.209+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=273
2021-05-18T16:24:16.210+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-18T16:24:16.236+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-18T16:24:16.236+0100
2021-05-18T16:24:16.272+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin790484120 network=unix timestamp=2021-05-18T16:24:16.272+0100
2021-05-18T16:24:16.272+0100 [DEBUG] plugin: using plugin: version=5
2021-05-18T16:24:16.355+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:16 [INFO] Authenticating using DefaultClient...: timestamp=2021-05-18T16:24:16.355+0100
2021-05-18T16:24:16.355+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:16 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]: timestamp=2021-05-18T16:24:16.355+0100
2021/05/18 16:24:16 [DEBUG] Resource instance state not found for node "google_dns_record_set.test-dns", instance google_dns_record_set.test-dns
2021/05/18 16:24:16 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
2021/05/18 16:24:16 [DEBUG] refresh: google_dns_record_set.test-dns: no state, so not refreshing

2021-05-18T16:24:16.359+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
An execution plan has been generated and is shown below.
2021-05-18T16:24:16.361+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=273
Resource actions are indicated with the following symbols:
2021-05-18T16:24:16.361+0100 [DEBUG] plugin: plugin exited

  • create
    2021/05/18 16:24:16 [DEBUG] command: asking for input: "Do you want to perform these actions?"

Terraform will perform the following actions:

google_dns_record_set.test-dns will be created

  • resource "google_dns_record_set" "test-dns" {
    • id = (known after apply)
    • managed_zone = "testing-ryan-com"
    • name = "coyote.testing.ryan.com."
    • project = "ryanb-mocb-dev"
    • rrdatas = [
      • "10.10.10.2",
        ]
    • ttl = 600
    • type = "A"
      }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

2021/05/18 16:24:21 [INFO] backend/local: apply calling Apply
2021/05/18 16:24:21 [INFO] terraform: building graph: GraphTypeApply
2021/05/18 16:24:21 [DEBUG] Resource state not found for node "google_dns_record_set.test-dns", instance google_dns_record_set.test-dns
2021/05/18 16:24:21 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_dns_record_set.test-dns (expand)
ted graph transform *terraform.MissingProviderTransformer with new graph:
google_dns_record_set.test-dns - *terraform.NodeApplyableResourceInstance
google_dns_record_set.test-dns (expand) - *terraform.nodeExpandApplyableResource
google_dns_record_set.test-dns (expand) - *terraform.nodeExpandApplyableResource
provider["registry.terraform.io/hashicorp/google"] - *terraform.NodeApplyableProvider

2021/05/18 16:24:21 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/18 16:24:21 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/18 16:24:21 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
2021/05/18 16:24:21 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/google"]" references: []
2021/05/18 16:24:21 [DEBUG] Starting graph walk: walkApply
2021-05-18T16:24:21.834+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-18T16:24:21.860+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-18T16:24:21.864+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=290
2021-05-18T16:24:21.864+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-18T16:24:21.892+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-18T16:24:21.891+0100
2021-05-18T16:24:21.929+0100 [DEBUG] plugin: using plugin: version=5
2021-05-18T16:24:21.929+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin106321213 network=unix timestamp=2021-05-18T16:24:21.929+0100
2021-05-18T16:24:22.040+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [INFO] Authenticating using DefaultClient...: timestamp=2021-05-18T16:24:22.040+0100
2021-05-18T16:24:22.040+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]: timestamp=2021-05-18T16:24:22.040+0100
google_dns_record_set.test-dns: Creating...
2021/05/18 16:24:22 [DEBUG] EvalApply: ProviderMeta config value set
2021/05/18 16:24:22 [DEBUG] google_dns_record_set.test-dns: applying the planned Create change
2021-05-18T16:24:22.045+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [DEBUG] Creating new ResourceDnsRecordSet: map[string]interface {}{"managed_zone":"projects/ryanb-mocb-dev/global/managedZones/testing-ryan-com", "name":"coyote.testing.ryan.com.", "rrdatas":[]interface {}{"10.10.10.2"}, "ttl":600, "type":"A"}: timestamp=2021-05-18T16:24:22.045+0100
2021-05-18T16:24:22.045+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [DEBUG] Waiting for state to become: [success]: timestamp=2021-05-18T16:24:22.045+0100
2021-05-18T16:24:22.045+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-05-18T16:24:22.045+0100
2021-05-18T16:24:22.045+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-05-18T16:24:22.045+0100
2021-05-18T16:24:22.045+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:22 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
POST /dns/v1/projects/ryanb-mocb-dev/managedZones/testing-ryan-com/rrsets?alt=json HTTP/1.1
Host: dns.googleapis.com
User-Agent: Terraform/0.14.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.67.0
Content-Length: 160
Content-Type: application/json
Accept-Encoding: gzip

{
"managed_zone": "projects/ryanb-mocb-dev/global/managedZones/testing-ryan-com",
"name": "coyote.testing.ryan.com.",
"rrdatas": [
"10.10.10.2"
],
"ttl": 600,
"type": "A"
}

-----------------------------------------------------: timestamp=2021-05-18T16:24:22.045+0100
2021-05-18T16:24:23.181+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:23 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 409 Conflict
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Tue, 18 May 2021 15:24:22 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 409,
"message": "The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists",
"errors": [
{
"message": "The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists",
"domain": "global",
"reason": "alreadyExists"
}
]
}
}

-----------------------------------------------------: timestamp=2021-05-18T16:24:23.180+0100
2021-05-18T16:24:23.181+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:23 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 409 with body: HTTP/2.0 409 Conflict
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Tue, 18 May 2021 15:24:22 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 409,
"message": "The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists",
"errors": [
{
"message": "The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists",

bal",
"reason": "alreadyExists"
}
]
}
}: timestamp=2021-05-18T16:24:23.181+0100
Error: Error creating ResourceDnsRecordSet: googleapi: Error 409: The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists, alreadyExists
2021-05-18T16:24:23.181+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/18 16:24:23 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-05-18T16:24:23.181+0100
2021/05/18 16:24:23 [DEBUG] google_dns_record_set.test-dns: apply errored, but we're indicating that via the Error pointer rather than returning it: Error creating ResourceDnsRecordSet: googleapi: Error 409: The resource 'entity.rrset' named 'coyote.testing.ryan.com. (A)' already exists, alreadyExists

2021-05-18T16:24:23.220+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=290
2021-05-18T16:24:23.220+0100 [DEBUG] plugin: plugin exited
on main.tf line 5, in resource "google_dns_record_set" "test-dns":
5: resource "google_dns_record_set" "test-dns" {

@ghost ghost removed the waiting-response label May 18, 2021
@rbianchi29
Copy link
Author

First Run - This is the initial DNS record creation

2021/05/19 09:48:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2021/05/19 09:48:15 [INFO] Terraform version: 0.14.4
2021/05/19 09:48:15 [INFO] Go runtime version: go1.15.6
2021/05/19 09:48:15 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2021/05/19 09:48:15 [DEBUG] Attempting to open CLI config file: /home/ryan/.terraformrc
2021/05/19 09:48:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory /home/ryan/.terraform.d/plugins
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory /home/ryan/.local/share/terraform/plugins
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2021/05/19 09:48:15 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2021/05/19 09:48:15 [INFO] CLI command args: []string{"apply"}
2021/05/19 09:48:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2021/05/19 09:48:15 [DEBUG] New state was assigned lineage "293be149-9ae4-f5ac-4969-de460a0e7a45"
2021/05/19 09:48:15 [DEBUG] checking for provisioner in "."
2021/05/19 09:48:15 [DEBUG] checking for provisioner in "/usr/local/bin"
2021/05/19 09:48:15 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2021/05/19 09:48:15 [INFO] backend/local: starting Apply operation
2021-05-19T09:48:15.580+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-19T09:48:15.641+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-19T09:48:15.646+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=235
2021-05-19T09:48:15.646+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-19T09:48:15.696+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-19T09:48:15.696+0100
2021-05-19T09:48:15.757+0100 [DEBUG] plugin: using plugin: version=5
2021-05-19T09:48:15.757+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin087127482 network=unix timestamp=2021-05-19T09:48:15.757+0100
2021-05-19T09:48:15.879+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-19T09:48:15.882+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=235
2021-05-19T09:48:15.882+0100 [DEBUG] plugin: plugin exited
2021/05/19 09:48:15 [INFO] terraform: building graph: GraphTypeValidate
2021/05/19 09:48:15 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/19 09:48:15 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
2021/05/19 09:48:15 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/google"]" references: []
2021/05/19 09:48:15 [DEBUG] Starting graph walk: walkValidate
2021-05-19T09:48:15.886+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-19T09:48:15.928+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-19T09:48:15.933+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=252
2021-05-19T09:48:15.933+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-19T09:48:15.976+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-19T09:48:15.975+0100
2021-05-19T09:48:16.023+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin118807547 network=unix timestamp=2021-05-19T09:48:16.023+0100
2021-05-19T09:48:16.023+0100 [DEBUG] plugin: using plugin: version=5
2021-05-19T09:48:16.178+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-19T09:48:16.180+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=252
2021-05-19T09:48:16.180+0100 [DEBUG] plugin: plugin exited
2021/05/19 09:48:16 [INFO] backend/local: apply calling Plan
2021/05/19 09:48:16 [INFO] terraform: building graph: GraphTypePlan
2021/05/19 09:48:16 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_dns_record_set.test-dns (expand)
.MissingProviderTransformer with new graph:
google_dns_record_set.test-dns (expand) - *terraform.nodeExpandPlannableResource
provider["registry.terraform.io/hashicorp/google"] - *terraform.NodeApplyableProvider

2021/05/19 09:48:16 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/19 09:48:16 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns (expand)" references: []
2021/05/19 09:48:16 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/google"]" references: []
2021-05-19T09:48:16.182+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-19T09:48:16.209+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-19T09:48:16.213+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=269
2021-05-19T09:48:16.213+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-19T09:48:16.246+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-19T09:48:16.245+0100
2021-05-19T09:48:16.288+0100 [DEBUG] plugin: using plugin: version=5
2021-05-19T09:48:16.288+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: network=unix address=/tmp/plugin580825352 timestamp=2021-05-19T09:48:16.287+0100
2021-05-19T09:48:16.406+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:16 [INFO] Authenticating using DefaultClient...: timestamp=2021-05-19T09:48:16.405+0100
2021-05-19T09:48:16.406+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:16 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]: timestamp=2021-05-19T09:48:16.405+0100
2021/05/19 09:48:16 [DEBUG] Resource instance state not found for node "google_dns_record_set.test-dns", instance google_dns_record_set.test-dns
2021/05/19 09:48:16 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
2021/05/19 09:48:16 [DEBUG] refresh: google_dns_record_set.test-dns: no state, so not refreshing
2021-05-19T09:48:16.412+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-19T09:48:16.415+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=269

2021-05-19T09:48:16.415+0100 [DEBUG] plugin: plugin exited
An execution plan has been generated and is shown below.
2021/05/19 09:48:16 [DEBUG] command: asking for input: "Do you want to perform these actions?"
Resource actions are indicated with the following symbols:

  • create

Terraform will perform the following actions:

google_dns_record_set.test-dns will be created

  • resource "google_dns_record_set" "test-dns" {
    • id = (known after apply)
    • managed_zone = "testing-ryan-com"
    • name = "coyote.testing.ryan.com."
    • project = "ryanb-mocb-dev"
    • rrdatas = [
      • "10.10.10.1",
        ]
    • ttl = 600
    • type = "A"
      }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

2021/05/19 09:48:18 [INFO] backend/local: apply calling Apply
2021/05/19 09:48:18 [INFO] terraform: building graph: GraphTypeApply
2021/05/19 09:48:18 [DEBUG] Resource state not found for node "google_dns_record_set.test-dns", instance google_dns_record_set.test-dns
2021/05/19 09:48:18 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_dns_record_set.test-dns (expand)
2021/05/19 09:48:18 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/19 09:48:18 [DEBUG] ProviderTransformer: "google_dns_record_set.test-dns" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2021/05/19 09:48:18 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns (expand)" references: []
2021/05/19 09:48:18 [DEBUG] ReferenceTransformer: "google_dns_record_set.test-dns" references: []
"provider["registry.terraform.io/hashicorp/google"]" references: []
2021/05/19 09:48:18 [DEBUG] Starting graph walk: walkApply
2021-05-19T09:48:18.654+0100 [INFO] plugin: configuring client automatic mTLS
2021-05-19T09:48:18.721+0100 [DEBUG] plugin: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5]
2021-05-19T09:48:18.728+0100 [DEBUG] plugin: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=286
2021-05-19T09:48:18.728+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5
2021-05-19T09:48:18.802+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: configuring server automatic mTLS: timestamp=2021-05-19T09:48:18.801+0100
2021-05-19T09:48:18.881+0100 [DEBUG] plugin: using plugin: version=5
2021-05-19T09:48:18.881+0100 [DEBUG] plugin.terraform-provider-google_v3.67.0_x5: plugin address: address=/tmp/plugin989543457 network=unix timestamp=2021-05-19T09:48:18.881+0100
2021-05-19T09:48:19.118+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [INFO] Authenticating using DefaultClient...: timestamp=2021-05-19T09:48:19.117+0100
2021-05-19T09:48:19.118+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]: timestamp=2021-05-19T09:48:19.118+0100
2021/05/19 09:48:19 [DEBUG] EvalApply: ProviderMeta config value set
google_dns_record_set.test-dns: Creating...
2021/05/19 09:48:19 [DEBUG] google_dns_record_set.test-dns: applying the planned Create change
2021-05-19T09:48:19.129+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [DEBUG] Creating new ResourceDnsRecordSet: map[string]interface {}{"managed_zone":"projects/ryanb-mocb-dev/global/managedZones/testing-ryan-com", "name":"coyote.testing.ryan.com.", "rrdatas":[]interface {}{"10.10.10.1"}, "ttl":600, "type":"A"}: timestamp=2021-05-19T09:48:19.128+0100
2021-05-19T09:48:19.129+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [DEBUG] Waiting for state to become: [success]: timestamp=2021-05-19T09:48:19.129+0100
2021-05-19T09:48:19.130+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-05-19T09:48:19.130+0100
2021-05-19T09:48:19.131+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-05-19T09:48:19.130+0100
2021-05-19T09:48:19.131+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:19 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
POST /dns/v1/projects/ryanb-mocb-dev/managedZones/testing-ryan-com/rrsets?alt=json HTTP/1.1
Host: dns.googleapis.com
User-Agent: Terraform/0.14.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.67.0
Content-Length: 160
Content-Type: application/json
Accept-Encoding: gzip

{
"managed_zone": "projects/ryanb-mocb-dev/global/managedZones/testing-ryan-com",
"name": "coyote.testing.ryan.com.",
"rrdatas": [
"10.10.10.1"
],
"ttl": 600,
"type": "A"
}

-----------------------------------------------------: timestamp=2021-05-19T09:48:19.131+0100
2021-05-19T09:48:20.369+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 19 May 2021 08:48:19 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "coyote.testing.ryan.com.",
"type": "A",
"ttl": 600,
"rrdatas": [
"10.10.10.1"
],
"signatureRrdatas": [],
"kind": "dns#resourceRecordSet"
}

-----------------------------------------------------: timestamp=2021-05-19T09:48:20.368+0100
2021-05-19T09:48:20.369+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2021-05-19T09:48:20.369+0100
2021-05-19T09:48:20.369+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-05-19T09:48:20.369+0100
2021-05-19T09:48:20.370+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Finished creating ResourceDnsRecordSet "projects/ryanb-mocb-dev/managedZones/testing-ryan-com/rrsets/coyote.testing.ryan.com./A": map[string]interface {}{"kind":"dns#resourceRecordSet", "name":"coyote.testing.ryan.com.", "rrdatas":[]interface {}{"10.10.10.1"}, "signatureRrdatas":[]interface {}{}, "ttl":600, "type":"A"}: timestamp=2021-05-19T09:48:20.370+0100
2021-05-19T09:48:20.370+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Waiting for state to become: [success]: timestamp=2021-05-19T09:48:20.370+0100
2021-05-19T09:48:20.372+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-05-19T09:48:20.371+0100
2021-05-19T09:48:20.372+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-05-19T09:48:20.371+0100
2021-05-19T09:48:20.372+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /dns/v1/projects/ryanb-mocb-dev/managedZones/testing-ryan-com/rrsets/coyote.testing.ryan.com./A?alt=json HTTP/1.1
Host: dns.googleapis.com
User-Agent: Terraform/0.14.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.67.0
Content-Type: application/json
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2021-05-19T09:48:20.372+0100
2021-05-19T09:48:20.961+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
google_dns_record_set.test-dns: Creation complete after 2s [id=projects/ryanb-mocb-dev/managedZones/testing-ryan-com/rrsets/coyote.testing.ryan.com./A]
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 19 May 2021 08:48:20 GMT
Server: ESF

Vary: Origin
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "coyote.testing.ryan.com.",
"type": "A",
"ttl": 600,
"rrdatas": [
"10.10.10.1"
],
"signatureRrdatas": [],
"kind": "dns#resourceRecordSet"
}

-----------------------------------------------------: timestamp=2021-05-19T09:48:20.961+0100
2021-05-19T09:48:20.961+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2021-05-19T09:48:20.961+0100
2021-05-19T09:48:20.961+0100 [INFO] plugin.terraform-provider-google_v3.67.0_x5: 2021/05/19 09:48:20 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-05-19T09:48:20.961+0100
2021-05-19T09:48:20.979+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-05-19T09:48:20.987+0100 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.67.0/linux_amd64/terraform-provider-google_v3.67.0_x5 pid=286
ugin: plugin exited

@edwardmedia
Copy link
Contributor

edwardmedia commented May 19, 2021

@rbianchi29 this is 409 error from api which indicates alreadyExists

I noticed below plan in your second run which says will be created. Do you see # google_dns_record_set.test-dns must be replaced in your plan?

google_dns_record_set.test-dns will be created

Also can you see if there is any reason listed below that might fit your case? Do you have other resources that are included in the plan?

https://support.google.com/domains/answer/7037341

@rbianchi29
Copy link
Author

No the plan states it will be created, not replaced.

That link looks like it's more for the Google Workspace console rather than GCP.

If it helps this issue doesn't occur with 3.63.0 of the provider. Any version after that and I get this issue.

@ghost ghost removed the waiting-response label May 19, 2021
@edwardmedia
Copy link
Contributor

@rbianchi29 are you running on different env (not shared state) for these two executions?

@rbianchi29
Copy link
Author

That's right, different state.

@ghost ghost removed waiting-response labels May 20, 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 rileykarson removed their assignment 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