hashicorp / terraform-provider-dyn

Terraform Dyn provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
7 stars 16 forks source link

Unable to find Dyn record id on creation #24

Open lampwins opened 6 years ago

lampwins commented 6 years ago

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed. v.0.11.2

Affected Resource(s)

Please list the resources as a list, for example:

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

{
    "resource": {
        "dyn_record": {
            "doesitwork_test_net": {
                "name": "doesitwork", 
                "ttl": "3600", 
                "type": "A", 
                "value": "7.7.7.7", 
                "zone": "test.net."
            }
        }
    }
}

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

What should have happened?

Create the dyn record as normal

Actual Behavior

What actually happened?

Error applying plan:

    1 error(s) occurred:

    * dyn_record.doesitwork_cofcedutest_net: 1 error(s) occurred:

    * dyn_record.doesitwork_cofcedutest_net: Failed to find Dyn record id!

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

This has been sporadically happening since we started using terraform but now it happens every time we try to create a dyn record. From looking at the related issues and code in the upstream dyn go library, a simple retry loop is all that is needed.

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

lampwins commented 6 years ago

This is most certainly an issue with the zone publish as I can manually query the dyn api a few seconds after terraform fails to get the id of the new record and all is normal.