-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Errors thrown when converting Route53 CNAME record from simple routing policy to weighted #3141
Comments
This is affecting me as well, we are migrating the majority of our external_dns managed records from simple to weighted routing. Digging in a bit further, I see that #1411 was closed, but I'm not sure that it was actually ever resolved. In #1867 the |
I'm seeing this with 0.13.5. I run with --upsert-only because the zone is shared with more than one cluster. If I run with --sync it will delete the non-weighted simple entry and create a new one. I can create a new issue for this, if needed, but I see the same error message from AWS. I ran it through a go debugger and it looks like this stems from the TXT registry is keyed off of a combination of the name and the identifier that is being added with the set-identifier annotation. |
I have same problem in v0.13.4. I think this problem is not resolved. |
What happened:
Same issue in #1411 and fixed by #1555 which was included in release v0.7.3.
We used this annotation on a
kind: Service
withtype: LoadBalancer
This created a record echo-server.dev.example.internal in the correct route53 hosted zone using a simple policy
We then added the following annotations to switch to a weighted record
And we saw this error
What you expected to happen:
Switch from simple to weighted without throwing an error
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
external-dns --version
):We're using the latest helm chart https://github.com/kubernetes-sigs/external-dns/releases/tag/external-dns-helm-chart-1.11.0 which uses v0.12.2 and we have not tested with v0.13.1
#1411 was closed a while ago but it seems like there may be a regression.
Our current workaround is to manually (clickops) change the AWS Route53 record from simple to weighted with the appropriate weight number and set identifier and then we see this in the external-dns logs
external-dns/provider/aws/aws.go
Line 436 in b83dbf8
external-dns/provider/aws/aws.go
Lines 443 to 452 in b83dbf8
So we want it to fall into the delete and create block but to do that it has to either meet one of these conditions
If it's the same record type, it will not meet one of the above conditions.
We have to add a new condition to hit the delete and create block if either
There should also be adequate tests and currently there are none for the
createUpdateChanges
function.The text was updated successfully, but these errors were encountered: