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

Create/Delete loop #2684

Closed
klamkma opened this issue Apr 4, 2022 · 7 comments
Closed

Create/Delete loop #2684

klamkma opened this issue Apr 4, 2022 · 7 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

@klamkma
Copy link

klamkma commented Apr 4, 2022

What happened:
We are using Infoblox.
If we create 2 services with the same DNS record name, this dns entry is being created and removed in a loop.

What you expected to happen:
The same annotation for multiple services should not be deleting/creating the dns entry in a loop.

How to reproduce it (as minimally and precisely as possible):

kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: some.cname.org
  name: test1
  namespace: default
spec:
  externalName: some.a.record.org
  sessionAffinity: None
  type: ExternalName
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: some.cname.org
  name: test2
  namespace: default
spec:
  externalName: some.a.record.org
  sessionAffinity: None
  type: ExternalName

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): v0.9.0
  • DNS provider: Infoblox
  • Others:
@klamkma klamkma added the kind/bug Categorizes issue or PR as related to a bug. label Apr 4, 2022
@alebedev87
Copy link
Contributor

@klamkma : Can you test it with v0.12.0 of external-dns? There was a fix for the duplicate endpoints: #2755.

@klamkma
Copy link
Author

klamkma commented Jun 24, 2022

@alebedev87, I tested the new v0.12.0 and the effect is worst than before.

We have multiple kubernetes clusters.
On each cluster we have external-dns where one cluster has --txt-owner-id=a and another one --txt-owner-id=b.

In the moment I applied the new service on cluster A with repeated DNS Record, we had a missive deletion/recreation of all DNS records, including records created by cluster B.

The missive removal/recreations of DNS records stopped as soon I removed the second service with duplicated dns entry.

@skalpin
Copy link
Contributor

skalpin commented Jul 21, 2022

The infoblox provider queries for the object before deleting it so it can send the reference id. In our environment that query returned several other records. So deleting 1 record resulted in deleting several others. The fix was to add "name=" to the query so that it only deletes the 1 specific record.

Maybe in your case, it sounds like cluster A is deleting records from cluster B, which shouldn't be happening if you are using a registry.

PR #2890

@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 Oct 19, 2022
@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 Nov 18, 2022
@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 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 with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2022
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

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

This bot triages issues 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 with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

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

Successfully merging a pull request may close this issue.

5 participants