-
Notifications
You must be signed in to change notification settings - Fork 2.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
OpenStack Designate provider: failure to update existing recordset #603
Comments
I think this is related to the caching issue which we rolled out in the latest version: Could you please try to see if it works with this image: |
New version is out which fixes the issue. https://github.com/kubernetes-incubator/external-dns/releases/tag/v0.5.4 |
Unfortunately 0.5.4 does not fix the issue (apologies for not testing the PR, I've been busy).
This is using image |
FWIW, I am starting the container with these args:
I am using Helm for deployment, using the stable/external-dns chart, updated with |
Could you try to enable debugging using |
Here's the debug output after I updated the IP address on the service
|
Issue still there in master branch. Trying to debug: the endpoint labels defined for designateRecordSetID and designateZoneID in Records() function doesn't more exist when trying to read them in addEndpoint() function. Seems the labels are reseted outside the designate.go source code. |
@njuettner In the Records function of the txt registry, endpoint labels of the record are replaced by the labels of the TXT record: for _, ep := range endpoints {
if labels, ok := labelMap[ep.DNSName]; ok {
ep.Labels = labels A merge of the labels should correct the bug. |
Merging the endpoints labels works for updating records. But there is still an issue with the TXT records. External-dns tries to create them instead of updating them: That is because ApplyChanges() of the TXT registry creates TXT endpoints from scratch, instead of reusing what is returned as current records by the provider. So the labels for designateRecordSetID and designateZoneID labels for the TXT records don't exist anymore. @njuettner I've seen that the endpoint struct have a ProviderSpecific field. What is it used for? |
@sebastien-prudhomme When the PR was opened, there was already a use case for CloudFlare configuration which is not used by every provider, see #650 |
The bug is always there. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Hi, Many thanks! |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
#1136 fixes TXTRegistry to retain the endpoint labels between Records() and ApplyChanges() calls on the provider, which fixes this for us for the most part (there's still one 409 per change happening for the TXT record, but the A record is updated correctly and all subsequent reconciliations go though without errors). I'm sure this is not the right/best patch for this. This "remember stuff in labels" approach of the designate provider seems unusual; no other provider does this. |
Does the presence of a new pull request rectify to revive the issue? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
With https://github.com/kubernetes-sigs/external-dns/blob/master/CHANGELOG.md#v0517---2019-09-17 got #1136 merged which makes it at least usable. So I guess this issue here can be closed. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* Remove receipts migration * Remove receiptsmigration check from ci * Rename test * Remove oldenvironment * Code review changes
Fetch labels from existing TXT records to fix kubernetes-sigs#603
/reopen |
@frittentheke: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fetch labels from existing TXT records to fix kubernetes-sigs#603
@njuettner could you kindly reopen this issue as it's still broken and there is a PR fixing this #3049 (requires #3024 to be done first I believe) |
When trying to update the IP address of an existing record, external-dns fails to do so and displays the log entries:
Both
A
andTXT
records are correctly created in the first place, and the configured user can list the domain's recordsets using the openstack CLI.The text was updated successfully, but these errors were encountered: