-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Powerdns record with count and hyphen in name fails on refresh #5228
Labels
Comments
Fixed by #5229. |
For anyone who finds this, and needs to manually update their state file:
|
bigkraig
pushed a commit
to bigkraig/terraform
that referenced
this issue
Mar 1, 2016
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. |
ghost
locked and limited conversation to collaborators
Apr 27, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
provider fails to retrieve record information if name contains hyphens.
Reason: poor choice of
recordId
separator character here.Powerdns don't include unique identifier of rrsets, thus a tuple
(name, type)
was used to correlate terraform's resourceId with pdns record. But I totally missed the factor of allowed dns hostname characters and 've put allowed hyphen as separator between name and type, thus making impossible reverse parsing of resourceId likeredis-1.example.com-A
While fix seems simple - to choose different separator (
*$#&
) that's not it allowed set, i understand this is a complete FUBAR. Change of internal resource representation will make all existing records effectively invalid after update. Is there some internal migration mechanism in terraform that can be applied? But if not - I don't think this provider attracted lots of users, so impact shouldn't be huge.The text was updated successfully, but these errors were encountered: