You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gandi api seems to strip trailing . periods from the nameserver record. Terraform times-out on retry thinking the nameserver hasn't been changed. tfstate has the correct trailing period for for azure and gandi, it's as if the api returns none-trailing records.
ns1.example.com. -> tf apply -> ns1.example.com == set but tf hangs expecting ns1.example.com. as if it isn't applied.
logs:
Terraform will perform the following actions:
# gandi_nameservers.example is tainted, so must be replaced
-/+ resource "gandi_nameservers""example" {
~ id = "example.com" -> (known after apply)
~ nameservers = [
- "ns1-03.azure-dns.com",
- "ns2-03.azure-dns.net",
- "ns3-03.azure-dns.org",
- "ns4-03.azure-dns.info",
+ "ns1-03.azure-dns.com.",
+ "ns2-03.azure-dns.net.",
+ "ns3-03.azure-dns.org.",
+ "ns4-03.azure-dns.info.",
]
# (1 unchanged attribute hidden)
}
Plan: 1 to add, 0 to change, 1 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
gandi_nameservers.example: Destroying... [id=example.com]
gandi_nameservers.example: Destruction complete after 2s
gandi_nameservers.example: Creating...
gandi_nameservers.example: Still creating... [10s elapsed]
gandi_nameservers.example: Still creating... [20s elapsed]
gandi_nameservers.example: Still creating... [30s elapsed]
gandi_nameservers.example: Still creating... [40s elapsed]
gandi_nameservers.example: Still creating... [50s elapsed]
gandi_nameservers.example: Still creating... [1m0s elapsed]
╷
│ Error: Nameservers on domain example.com have not been applied yet
│
│ with gandi_nameservers.example,
│ on domain.tf line 8, in resource "gandi_nameservers""example":
│ 8: resource "gandi_nameservers""example" {
│
╵
The reason this came up is the azure resources have the period suffix;
The gandi api seems to strip trailing
.
periods from the nameserver record. Terraform times-out on retry thinking the nameserver hasn't been changed.tfstate
has the correct trailing period for for azure and gandi, it's as if the api returns none-trailing records.ns1.example.com.
-> tf apply ->ns1.example.com
== set but tf hangs expectingns1.example.com.
as if it isn't applied.logs:
The reason this came up is the azure resources have the period suffix;
trying to workaround, tf lifecycle to ingore changes. or postcheck the lists as equal but it keeps rewriting the nameservers and timing out.
New workaround, removed the resource from tfstate and
tf import gandi_nameservers.example example.com
which dropped the suffix.will see how the lifecycle works for
The text was updated successfully, but these errors were encountered: