cloudflare_record: empty non-retryable error received with allow_overwrite=true #1247
Closed
2 tasks done
Labels
workflow/pending-op-response
Indicates an issue or PR requires a response from the original poster.
Confirmation
Terraform and Cloudflare provider version
1.0.8
Affected resource(s)
cloudflare_record
Terraform configuration files
Debug output
021-10-12T12:56:41.929-0400 [INFO] backend/local: apply calling Apply
2021-10-12T12:56:41.929-0400 [INFO] terraform: building graph: GraphTypeApply
2021-10-12T12:56:41.930-0400 [DEBUG] Resource state not found for node "cloudflare_record.apim-stack", instance cloudflare_record.apim-stack
2021-10-12T12:56:41.931-0400 [DEBUG] ProviderTransformer: "cloudflare_record.apim-stack" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-10-12T12:56:41.931-0400 [DEBUG] ProviderTransformer: "cloudflare_record.apim-stack (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-10-12T12:56:41.931-0400 [DEBUG] ReferenceTransformer: "cloudflare_record.apim-stack (expand)" references: []
2021-10-12T12:56:41.931-0400 [DEBUG] ReferenceTransformer: "cloudflare_record.apim-stack" references: []
2021-10-12T12:56:41.931-0400 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/cloudflare/cloudflare"]" references: []
2021-10-12T12:56:41.932-0400 [DEBUG] Starting graph walk: walkApply
2021-10-12T12:56:41.933-0400 [DEBUG] created provider logger: level=debug
2021-10-12T12:56:41.933-0400 [INFO] provider: configuring client automatic mTLS
2021-10-12T12:56:41.965-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.1.0/windows_amd64/terraform-provider-cloudflare_v3.1.0.exe args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.1.0/windows_amd64/terraform-provider-cloudflare_v3.1.0.exe]
2021-10-12T12:56:41.970-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.1.0/windows_amd64/terraform-provider-cloudflare_v3.1.0.exe pid=50108
2021-10-12T12:56:41.970-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.1.0/windows_amd64/terraform-provider-cloudflare_v3.1.0.exe
2021-10-12T12:56:42.143-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: configuring server automatic mTLS: timestamp=2021-10-12T12:56:42.141-0400
2021-10-12T12:56:42.151-0400 [DEBUG] provider.terraform-provider-cloudflare_v3.1.0.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2021-10-12T12:56:42.151-0400
2021-10-12T12:56:42.151-0400 [DEBUG] provider: using plugin: version=5
2021-10-12T12:56:42.187-0400 [WARN] ValidateProviderConfig from "provider["registry.terraform.io/cloudflare/cloudflare"]" changed the config value, but that value is unused
2021-10-12T12:56:42.189-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [INFO] Cloudflare Client configured for user:: timestamp=2021-10-12T12:56:42.189-0400
cloudflare_record.apim-stack: Creating...
2021-10-12T12:56:42.191-0400 [INFO] Starting apply for cloudflare_record.apim-stack
2021-10-12T12:56:42.192-0400 [DEBUG] cloudflare_record.apim-stack: applying the planned Create change
2021-10-12T12:56:42.192-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] setting computed for "metadata" from ComputedKeys: timestamp=2021-10-12T12:56:42.192-0400
2021-10-12T12:56:42.192-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Data found in config: []interface {}{}: timestamp=2021-10-12T12:56:42.192-0400
2021-10-12T12:56:42.192-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare Record create configuration: cloudflare.DNSRecord{ID:"", Type:"CNAME", Name:"apim-stack", Content:"juniper-apim-stack-08f28b24.azure-api.net", Proxiable:false, Proxied:(*bool)(0xc000940c20), TTL:0, Locked:false, ZoneID:"xxx", ZoneName:"", CreatedOn:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ModifiedOn:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Data:interface {}(nil), Meta:interface {}(nil), Priority:(*uint16)(nil)}: timestamp=2021-10-12T12:56:42.192-0400
2021-10-12T12:56:42.192-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Waiting for state to become: [success]: timestamp=2021-10-12T12:56:42.192-0400
2021-10-12T12:56:42.193-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
POST /client/v4/zones/xxx/dns_records HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.0.8 terraform-plugin-sdk/2.7.1 terraform-provider-cloudflare/3.1.0
Content-Length: 223
Authorization: Bearer -redacted
Content-Type: application/json
Accept-Encoding: gzip
{
"type": "CNAME",
"name": "apim-stack",
"content": "juniper-apim-stack-08f28b24.azure-api.net",
"proxied": true,
"zone_id": "xxx",
"created_on": "0001-01-01T00:00:00Z",
"modified_on": "0001-01-01T00:00:00Z"
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.193-0400
2021-10-12T12:56:42.491-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Cf-Cache-Status: DYNAMIC
Cf-Ray: 69d1dcf0c8f71088-ATL
Content-Type: application/json
Date: Tue, 12 Oct 2021 16:56:42 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZe3M7zgTpc8m; SameSite=Lax; path=/; expires=Tue, 12-Oct-21 19:26:43 GMT; HttpOnly
Set-Cookie: __cfruid=d3e18fec252c2c31d2f6ea33445e2bd8c287c724-1634057802; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 19
{
"result": null,
"success": false,
"errors": [
{
"code": 81053,
"message": "An A, AAAA, or CNAME record with that host already exists."
}
],
"messages": []
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.491-0400
2021-10-12T12:56:42.492-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare Record already exists however we are overwriting it: timestamp=2021-10-12T12:56:42.492-0400
2021-10-12T12:56:42.492-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
GET /client/v4/zones/xxx HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.0.8 terraform-plugin-sdk/2.7.1 terraform-provider-cloudflare/3.1.0
Authorization: Bearer -redacted
Content-Type: application/json
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.492-0400
2021-10-12T12:56:42.755-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Cf-Cache-Status: DYNAMIC
Cf-Ray: 69d1dcf28b1463d5-ATL
Content-Type: application/json
Date: Tue, 12 Oct 2021 16:56:42 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Sun, 25 Jan 1981 05:00:00 GMT
Pragma: no-cache
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZe3M7zgTpc8m; SameSite=Lax; path=/; expires=Tue, 12-Oct-21 19:26:43 GMT; HttpOnly
Set-Cookie: __cfruid=d3e18fec252c2c31d2f6ea33445e2bd8c287c724-1634057802; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
{
"result": {
"id": "xxx",
"name": "junipercore.com",
"status": "active",
"paused": false,
"type": "full",
"development_mode": 0,
"name_servers": [
"anuj.ns.cloudflare.com",
"zoe.ns.cloudflare.com"
],
"original_name_servers": [
"ns67.domaincontrol.com",
"ns68.domaincontrol.com"
],
"original_registrar": "godaddy.com, llc (id: 146)",
"original_dnshost": null,
"modified_on": "2021-07-12T17:56:19.351999Z",
"created_on": "2021-03-23T21:18:50.327228Z",
"activated_on": "2021-03-23T21:24:49.186904Z",
"meta": {
"step": 2,
"wildcard_proxiable": false,
"custom_certificate_quota": 0,
"page_rule_quota": 30,
"phishing_detected": false,
"multiple_railguns_allowed": false
},
"owner": {
"id": "cb728a34f673ace5205ff9d044ca241d",
"type": "user",
"email": "max@repzio.com"
},
"account": {
"id": "f185d6fb8bd2939fd86089726e41ccb9",
"name": "Juniper by IMC"
},
"permissions": [
"#access:edit",
"#access:read",
"#analytics:read",
"#app:edit",
"#auditlogs:read",
"#billing:read",
"#cache_purge:edit",
"#dns_records:edit",
"#dns_records:read",
"#lb:edit",
"#lb:read",
"#legal:read",
"#logs:edit",
"#logs:read",
"#member:read",
"#organization:edit",
"#organization:read",
"#ssl:edit",
"#ssl:read",
"#stream:edit",
"#stream:read",
"#subscription:edit",
"#subscription:read",
"#teams:edit",
"#teams:read",
"#teams:report",
"#waf:edit",
"#waf:read",
"#webhooks:edit",
"#webhooks:read",
"#worker:edit",
"#worker:read",
"#zone:edit",
"#zone:read",
"#zone_settings:edit",
"#zone_settings:read"
],
"plan": {
"id": "a577b510288e82b26486fd1df47000ec",
"name": "Pro Website",
"price": 0,
"currency": "USD",
"frequency": "",
"is_subscribed": true,
"can_subscribe": false,
"legacy_id": "pro",
"legacy_discount": false,
"externally_managed": false
}
},
"success": true,
"errors": [],
"messages": []
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.754-0400
2021-10-12T12:56:42.755-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
GET /client/v4/zones/xxx/dns_records?name=apim-stack.junipercore.com&page=1&per_page=100&type=CNAME HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.0.8 terraform-plugin-sdk/2.7.1 terraform-provider-cloudflare/3.1.0
Authorization: Bearer -redacted
Content-Type: application/json
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.755-0400
2021-10-12T12:56:42.992-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Cf-Cache-Status: DYNAMIC
Cf-Ray: 69d1dcf41caf1078-ATL
Content-Type: application/json
Date: Tue, 12 Oct 2021 16:56:43 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZe3M7zgTpc8m; SameSite=Lax; path=/; expires=Tue, 12-Oct-21 19:26:44 GMT; HttpOnly
Set-Cookie: __cfruid=f696723d7d5ae2e092eaa1dbd1ebdc89e0dbb474-1634057803; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 3
{
"result": [
{
"id": "1fca189a8e5ac705ef682e8ef78a4b35",
"zone_id": "xxx",
"zone_name": "junipercore.com",
"name": "apim-stack.junipercore.com",
"type": "CNAME",
"content": "juniper-apim-stack-aa14a870.azure-api.net",
"proxiable": true,
"proxied": true,
"ttl": 1,
"locked": false,
"meta": {
"auto_added": false,
"managed_by_apps": false,
"managed_by_argo_tunnel": false,
"source": "primary"
},
"created_on": "2021-10-12T15:43:51.639718Z",
"modified_on": "2021-10-12T15:48:42.971393Z"
}
],
"success": true,
"errors": [],
"messages": [],
"result_info": {
"page": 1,
"per_page": 100,
"count": 1,
"total_count": 1,
"total_pages": 1
}
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:42.991-0400
2021-10-12T12:56:42.992-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Data found in config: []interface {}{}: timestamp=2021-10-12T12:56:42.992-0400
2021-10-12T12:56:42.992-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Cloudflare Record update configuration: cloudflare.DNSRecord{ID:"1fca189a8e5ac705ef682e8ef78a4b35", Type:"CNAME", Name:"apim-stack", Content:"juniper-apim-stack-08f28b24.azure-api.net", Proxiable:false, Proxied:(*bool)(0xc00063d366), TTL:0, Locked:false, ZoneID:"xxx", ZoneName:"", CreatedOn:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ModifiedOn:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Data:interface {}(nil), Meta:interface {}(nil), Priority:(*uint16)(nil)}: timestamp=2021-10-12T12:56:42.992-0400
2021-10-12T12:56:42.992-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:42 [DEBUG] Waiting for state to become: [success]: timestamp=2021-10-12T12:56:42.992-0400
2021-10-12T12:56:43.015-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:43 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
PATCH /client/v4/zones/xxx/dns_records/1fca189a8e5ac705ef682e8ef78a4b35 HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.0.8 terraform-plugin-sdk/2.7.1 terraform-provider-cloudflare/3.1.0
Content-Length: 263
Authorization: Bearer -redacted
Content-Type: application/json
Accept-Encoding: gzip
{
"id": "1fca189a8e5ac705ef682e8ef78a4b35",
"type": "CNAME",
"name": "apim-stack",
"content": "juniper-apim-stack-08f28b24.azure-api.net",
"proxied": true,
"zone_id": "xxx",
"created_on": "0001-01-01T00:00:00Z",
"modified_on": "0001-01-01T00:00:00Z"
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:43.014-0400
2021-10-12T12:56:43.271-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:43 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Cf-Cache-Status: DYNAMIC
Cf-Ray: 69d1dcf5ba4d63ce-ATL
Content-Type: application/json
Date: Tue, 12 Oct 2021 16:56:43 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZeD3o1VHKDQH; SameSite=Lax; path=/; expires=Tue, 12-Oct-21 19:26:44 GMT; HttpOnly
Set-Cookie: __cfruid=f696723d7d5ae2e092eaa1dbd1ebdc89e0dbb474-1634057803; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 13
{
"result": {
"id": "1fca189a8e5ac705ef682e8ef78a4b35",
"zone_id": "xxx",
"zone_name": "junipercore.com",
"name": "apim-stack.junipercore.com",
"type": "CNAME",
"content": "juniper-apim-stack-08f28b24.azure-api.net",
"proxiable": true,
"proxied": true,
"ttl": 1,
"locked": false,
"meta": {
"auto_added": false,
"managed_by_apps": false,
"managed_by_argo_tunnel": false,
"source": "primary"
},
"created_on": "2021-10-12T15:43:51.639718Z",
"modified_on": "2021-10-12T16:56:43.262997Z"
},
"success": true,
"errors": [],
"messages": []
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:43.270-0400
2021-10-12T12:56:43.271-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:43 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
GET /client/v4/zones/xxx/dns_records/1fca189a8e5ac705ef682e8ef78a4b35 HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.0.8 terraform-plugin-sdk/2.7.1 terraform-provider-cloudflare/3.1.0
Authorization: Bearer -redacted
Content-Type: application/json
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-10-12T12:56:43.271-0400
2021-10-12T12:56:43.512-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:43 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Cf-Cache-Status: DYNAMIC
Cf-Ray: 69d1dcf75ccc184f-ATL
Content-Type: application/json
Date: Tue, 12 Oct 2021 16:56:43 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZeD3o1VHKDQH; SameSite=Lax; path=/; expires=Tue, 12-Oct-21 19:26:44 GMT; HttpOnly
Set-Cookie: __cfruid=f696723d7d5ae2e092eaa1dbd1ebdc89e0dbb474-1634057803; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 11
{
"result": {
"id": "1fca189a8e5ac705ef682e8ef78a4b35",
"zone_id": "xxx",
"zone_name": "junipercore.com",
"name": "apim-stack.junipercore.com",
"type": "CNAME",
"content": "juniper-apim-stack-xxx.azure-api.net",
"proxiable": true,
"proxied": true,
"ttl": 1,
"locked": false,
"meta": {
"auto_added": false,
"managed_by_apps": false,
"managed_by_argo_tunnel": false,
"source": "primary"
},
"created_on": "2021-10-12T15:43:51.639718Z",
"modified_on": "2021-10-12T16:56:43.262997Z"
},
"success": true,
"errors": [],
"messages": []
}
-----------------------------------------------------: timestamp=2021-10-12T12:56:43.512-0400
2021-10-12T12:56:43.512-0400 [INFO] provider.terraform-provider-cloudflare_v3.1.0.exe: 2021/10/12 12:56:43 [DEBUG] Data found in config: []interface {}{}: timestamp=2021-10-12T12:56:43.512-0400
╷
│ Error: empty non-retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue in the provider repository.
│
│ with cloudflare_record.apim-stack,
│ on main.tf line 15, in resource "cloudflare_record" "apim-stack":
│ 15: resource "cloudflare_record" "apim-stack" {
│
╵
2021-10-12T12:56:43.523-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-10-12T12:56:43.558-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.1.0/windows_amd64/terraform-provider-cloudflare_v3.1.0.exe pid=50108
2021-10-12T12:56:43.558-0400 [DEBUG] provider: plugin exited
Panic output
No response
Expected output
The record would be updated.
Actual output
cloudflare_record.apim-stack: Creating...
╷
│ Error: empty non-retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue in the provider repository.
│
│ with cloudflare_record.apim-stack,
│ on main.tf line 15, in resource "cloudflare_record" "apim-stack":
│ 15: resource "cloudflare_record" "apim-stack" {
│
Steps to reproduce
terraform apply
to modify the record.Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: