Skip to content
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

external-dns creating CNAME record instead of A record for ap-south-2 region #3833

Closed
shreyas-3 opened this issue Aug 1, 2023 · 0 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@shreyas-3
Copy link
Contributor

shreyas-3 commented Aug 1, 2023

What happened:
Observed external-dns creating CNAME record instead of A record for ap-south-2 region .

error:
time="2023-07-31T06:45:40Z" level=error msg="Failure in zone test.com. [Id: /hostedzone/ZX0584032XXX]"
time="2023-07-31T06:45:40Z" level=error msg="InvalidChangeBatch: [RRSet of type TXT with DNS name test.ap-south-2.test.com. is not permitted because a conflicting RRSet of type CNAME with the same DNS name already exists in zone test.com.]\n\tstatus code: 400, request id: 9249c919-dafe-4c96-a536-498cc47a86b0"
time="2023-07-31T06:45:40Z" level=error msg="failed to submit all changes for the following zones: [/hostedzone/ZX0584032XXX]

What you expected to happen:
It should create A record for elb alias.

How to reproduce it (as minimally and precisely as possible):
Create ingress load balancer in ap-south-2 region and associated it with external-dns service.

https://github.com/kubernetes-sigs/external-dns/blob/master/provider/aws/aws.go need update to use ap-south-2 region for elb.
Route 53 Hosted Zone ID (Application Load Balancers, Classic Load Balancers) -> Z0173938T07WNTVAEPZN
Route 53 Hosted Zone ID (Network Load Balancers) -> Z0711778386UTO08407HT

Environment:

  • External-DNS version (use external-dns --version): v0.11.0
  • DNS provider: AWS route53
@shreyas-3 shreyas-3 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 1, 2023
shreyas-3 added a commit to shreyas-3/external-dns that referenced this issue Aug 1, 2023
Fix to add ap-south-2 region to support elb and nlb
k8s-ci-robot pushed a commit that referenced this issue Sep 1, 2023
* Update aws.go for issue #3833

Fix to add ap-south-2 region to support elb and nlb

* Update provider/aws/aws.go

Added missing quotes

Co-authored-by: Raffaele Di Fazio <raffo@github.com>

* Update provider/aws/aws.go

Added missing quotes

Co-authored-by: Raffaele Di Fazio <raffo@github.com>

---------

Co-authored-by: Raffaele Di Fazio <raffo@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant