external-dns: "Removing duplicate endpoint..." log messages
I have a dev k8 cluster running with external-dns hooked up to my PowerDNS server. I’m using Traefik as the ingress controller and everything appears to be working OK. I noticed some odd log messages and just want to find out exactly what it means and to confirm is this is “normal”
First, I deployed external-dns with the following args:
--registry=txt
--txt-owner-id=my-dev1-extdns
--provider=pdns
--pdns-server=http://10.x.x.x:8081
--pdns-api-key=XXXXX
--source=ingress
--namespace=my-ns
--domain-filter=example.com
--interval=5s
--log-level=debug
--annotation-filter=mydev1-external-dns=enabled
Then I deployed an app that Traefik picked up with host label mydev1app.example.com
. external-dns automatically created the record in PowerDNS, and I see the following messages in the external-dns log:
time="2019-06-14T18:41:16Z" level=debug msg="CREATE: mydev1app.example.com 0 IN A 10.x.x.5 []"
time="2019-06-14T18:41:16Z" level=debug msg="CREATE: mydev1app.example.com 0 IN TXT \"heritage=external-dns,external-dns/owner=my-dev1-extdns,external-dns/resource=ingress/my-ns/mydev1app.example.com\" []"
time="2019-06-14T18:41:16Z" level=debug msg="Zone List generated from Endpoints: [{Id:example.com. Name:example.com. Type_: Url:/api/v1/servers/localhost/zones/example.com. Kind:Master Rrsets:[{Name:mydev1app.example.com. Type_:A Ttl:300 Changetype:REPLACE Records:[{Content:10.x.x.5 Disabled:false SetPtr:false}] Comments:[]} {Name:mydev1app.example.com. Type_:TXT Ttl:300 Changetype:REPLACE Records:[{Content:\"heritage=external-dns,external-dns/owner=my-dev1-extdns,external-dns/resource=ingress/my-ns/mydev1app.example.com\" Disabled:false SetPtr:false}] Comments:[]}] Serial:2019080893 NotifiedSerial:2019080893 Masters:[] Dnssec:false Nsec3param: Nsec3narrow:false Presigned:false SoaEdit: SoaEditApi: ApiRectify:false Zone: Account: Nameservers:[]}]"
time="2019-06-14T18:41:16Z" level=debug msg="Struct for PatchZone:\n{\"id\":\"example.com.\",\"name\":\"example.com.\",\"url\":\"/api/v1/servers/localhost/zones/example.com.\",\"kind\":\"Master\",\"rrsets\":[{\"name\":\"mydev1app.example.com.\",\"type\":\"A\",\"ttl\":300,\"changetype\":\"REPLACE\",\"records\":[{\"content\":\"10.x.x.5\",\"disabled\":false}]},{\"name\":\"mydev1app.example.com.\",\"type\":\"TXT\",\"ttl\":300,\"changetype\":\"REPLACE\",\"records\":[{\"content\":\"\\\"heritage=external-dns,external-dns/owner=my-dev1-extdns,external-dns/resource=ingress/my-ns/mydev1app.example.com\\\"\",\"disabled\":false}]}],\"serial\":2019080893,\"notified_serial\":2019080893}"
time="2019-06-14T18:41:16Z" level=debug msg="Changes pushed out to PowerDNS in 85.490096ms\n"
This all looks normal and expected so far. I can resolve the app and functionality is OK. However, I then see messages about removing duplicate entries, as follows:
time="2019-06-14T18:41:21Z" level=debug msg="Endpoints generated from ingress: my-ns/mydev1app.example.com: [mydev1app.example.com 0 IN A 10.x.x.5 [] mydev1app.example.com 0 IN A 10.x.x.5 []]"
time="2019-06-14T18:41:21Z" level=debug msg="Removing duplicate endpoint mydev1app.example.com 0 IN A 10.x.x.5 []"
Why is this the case? It doesn’t appear to actually remove the record, nor does it affect functionality. I’ve uninstalled/reinstalled external-dns on more than one cluster and I always see the same type of log messages. Is this normal, and if so, what does it mean by “removing duplicate endpoint”?
Thank you!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 25 (4 by maintainers)
Commits related to this issue
- Remove confusing logs about deleting duplicates, fixes #1070 — committed to sheerun/external-dns by sheerun 5 years ago
- Remove confusing logs about deleting duplicates (#1070) — committed to sheerun/external-dns by sheerun 5 years ago
I’ve faced with the same issue, so I checked the source code and docs. When the same domain is used in multiple paths (for example, cert-manager’s
spec.tls.hosts
andspec.rules.host
locate in one ingress object), external-dns just adds this domain multiple times to pool of endpoints and then (in other part of source code) remove the duplicates from such pool with “removing duplicate endpoint” message 😃Can someone verify if this is still a problem with the newly release external-dns release v0.7.3?