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

Alias to CNAME record type changes failed #2106

Closed
moskitone opened this issue May 26, 2021 · 5 comments
Closed

Alias to CNAME record type changes failed #2106

moskitone opened this issue May 26, 2021 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@moskitone
Copy link

What happened:
New feature provided by #1867 does not work with some EKS endpoints.
We have bunch of ingresses covered by nginx-ingress and AWS NLB.
In current setup we have lots of A(alias) records in route53 zones. After upgrading external-dns to 8.0.0 and setting --aws-prefer-cname nothing has changed.
We can see lots of records in logs like
time="2021-05-26T12:53:22Z" level=debug msg="Adding bbb.aaaaaa.io. to zone aaaaaa.io. [Id: /hostedzone/ZYaaaaaa]"
time="2021-05-26T12:53:23Z" level=info msg="Desired change: UPSERT bbb.aaaaaa.io CNAME [Id: /hostedzone/ZYaaaaaa]"
time="2021-05-26T12:53:23Z" level=error msg="InvalidChangeBatch: [RRSet of type CNAME with DNS name bbb.aaaaaa.io. is not permitted as it conflicts with other records with the same DNS name in zone aaaaaa.io.]\n\tstatus code: 400, request id: 09e0b116-..."
time="2021-05-26T13:00:36Z" level=debug msg="Endpoints generated from ingress: NS/INGRESS: [bbb.aaaaaa.io 0 IN CNAME ae...-4da9....elb.us-west-2.amazonaws.com [] bbb.aaaaaa.io 0 IN CNAME ae...-4da9....elb.us-west-2.amazonaws.com []]"

What you expected to happen:
Old A record is replaced with new CNAME
Environment:

  • External-DNS version (use external-dns --version): 8.0.0
  • DNS provider: AWS route53
@moskitone moskitone added the kind/bug Categorizes issue or PR as related to a bug. label May 26, 2021
@jsravn
Copy link
Contributor

jsravn commented Aug 6, 2021

@moskitone so the old records are ALIAS, and you are trying to convert them to plain CNAME? external-dns never used to check record types at all up until #1867, so I don't see how it could have worked prior either.

external-dns can't currently differentiate between alias and cname records, so the --aws-prefer-cname flag is used to tell it what to use. If you were using ALIAS then add that flag, it will break unfortunately. To fix that, we'd need to introduce the concept of aliases more generically in external-dns.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 4, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 4, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

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.

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. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants