Git Product home page Git Product logo

Comments (2)

c33s avatar c33s commented on June 8, 2024

maybe this would be an own ticket or its a reopen of #29 or its ok to put it here:

  • having setup a soa record for example domain with terraform
  • terraform apply runs with no errors or actions
  • add a new record to an non-existing domain (made a typo) where soa-edit-api is set to INCEPTION-INCREMENT
  • running terraform apply results in Failed to create PowerDNS Record: Error creating record set: example_com.:::MX, reason: "Could not find domain 'example_com.'" which is correct because of the typo
  • fixing the typo -> example_com -> example.com
  • terraform apply results in the error fo #29 (see below)
-/+ powerdns_record.SOA_example_com (new resource required)
id:                 "example.com.:::SOA" => <computed> (forces new resource)
name:               "example.com." => "example.com."
records.#:          "1" => "1"
records.2145257032: "dns1.example2.com. hostmaster.example.com. 2019120202 10800 3600 3600000 3000" => "" (forces new resource)
records.2374626224: "" => "dns1.example2.com. hostmaster.example.com. 2019120102 10800 3600 3600000 3000" (forces new resource)
ttl:                "3600" => "3600"
type:               "SOA" => "SOA"
zone:               "example.com." => "example.com."
* powerdns_record.SOA_example_com (destroy): 1 error(s) occurred:

* powerdns_record.SOA_example_com: Error deleting PowerDNS Record: Error deleting record: example.com. SOA, reason: "No SOA found for domain 'example.com.'"
* powerdns_record.MX_example_com: 1 error(s) occurred:

* powerdns_record.MX_example_com: Failed to create PowerDNS Record: Error creating record set: example.com.:::MX, reason: "No SOA found for domain 'example.com.'"

i have to connect to powerdns and change the soa-edit for the domain to '' and rerun terraform apply

shouldn't the soa record be set via powerdns_zone and such conflicts handled in the provider?

from terraform-provider-powerdns.

ion1 avatar ion1 commented on June 8, 2024

Would it make sense to support a special SOA serial such as 0 one could use in combination with soa-edit-api which will override the serial anyway? The provider would just need to ignore changes to it if the resource uses the special value.

from terraform-provider-powerdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.