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
Tries to create records in Route53 that already exist (v1.12.2) #3007
Comments
We got the same error. After some investigation I figured out that it happens if you set Looking at the code I think the bug is here After the first iteration |
This issue seems very similar to #2421 and #2793 (possibly duplicates?). Same error. Tried upgrading 0.11.0 → 0.13.1 (and bitnami chart 6.2.7 → 6.12.1), to no avail.
I instead tried modifying
|
I have another (hopefully clearer) example of this problem. Initially, it was attempting to create the 3 records (old-style TXT, new-style cname-TXT, and a substantive A record) for one ingress. This batch was consistently failing (with a message that the two TXT records already exist). I checked in Route 53 and confirmed that those TXT records already existed, and no substantive record for this ingress existed. The following errors were repeating ad infinitum:
I then set
I then also tried deleting just the new-style TXT record, or all three records. In both cases external-dns promptly replaced them with no errors. (Deleting only the substantive A record would replicate the transient error. Deleting only the old-style TXT record would be tolerated without any effect.) As a separate experiment, I tried deleting and immediately recreating an annotated ClusterIP service (so that the target address would change), and I found that all three records were successfully UPSERT'ed, rather than getting re-CREATE'd. (Modifying the hostname annotation caused 3 deletions and 3 creations.) Multiple aspects seem weird to me:
|
Im having the exact same problem on multiple clusters; external-dns keeps trying to create records that already exist (it created them), and thus errors out nonstop....the worst part is some of these unnecessary retries are batched in with real records I do need created due to new ingresses, and thus one apps DNS's issues are now breaking other apps from having their DNS records created. Very annoying, and I can't figure out why it's happening. |
I'm having the exact same issue on 0.12 and I'm in a similar boat as @jbilliau-rcd where the batch size is causing issues for the actual records I need. External-dns wants to create a record that prefixes "cname" to the actual dns for some reason, which is same as the txt record that's created before upgrading. |
This issue is blocking our upgrade from v0.11.0... the migration from the old-style to new-style TXT registry records seems fundamentally broken. |
Can we just get added some sort of "overwrite" functionality? If the record already exists, just overwrite it; why would I ever care about a record being overwritten with the same value? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What happened: external-dns is frequently failing to create DNS records in Route53 as it is trying to create a record that already exists. For example these records are in Route53:
And external-dns is trying to create them again, resulting in an error
What you expected to happen: Records that already exist are left alone
How to reproduce it (as minimally and precisely as possible): Unknown so far
Environment: AWS
external-dns --version
): v1.12.2The text was updated successfully, but these errors were encountered: