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

Google-CloudDNS: Unable to write CNAME record when txt registry is enabled. #740

Closed
shashidharatd opened this issue Oct 15, 2018 · 3 comments

Comments

@shashidharatd
Copy link

Below is the error message from Google Cloud DNS when i try to write CNAME record when txt registry is enabled.

time="2018-10-15T08:53:30Z" level=debug msg="Matching zones against domain filters: [f8n.org]"
time="2018-10-15T08:53:31Z" level=debug msg="Matched f8n.org. (zone: federation-zone)"
time="2018-10-15T08:53:31Z" level=debug msg="Considering zone: federation-zone (domain: f8n.org.)"
time="2018-10-15T08:53:31Z" level=debug msg="Matching zones against domain filters: [f8n.org]"
time="2018-10-15T08:53:31Z" level=debug msg="Matched f8n.org. (zone: federation-zone)"
time="2018-10-15T08:53:31Z" level=debug msg="Considering zone: federation-zone (domain: f8n.org.)"
time="2018-10-15T08:53:31Z" level=info msg="Change zone: federation-zone"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.f8n.org. A [192.168.99.208 192.168.99.216] 300"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.us.f8n.org. A [192.168.99.216] 300"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.us1.us.f8n.org. A [192.168.99.216] 300"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.us.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:31Z" level=info msg="Del records: fs1.default.galactic.svc.us1.us.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.f8n.org. A [192.168.99.208] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.us.f8n.org. CNAME [fs1.default.galactic.svc.f8n.org.] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.us1.us.f8n.org. CNAME [fs1.default.galactic.svc.us.f8n.org.] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.us.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:31Z" level=info msg="Add records: fs1.default.galactic.svc.us1.us.f8n.org. TXT [\"heritage=external-dns,external-dns/owner=federation\"] 300"
time="2018-10-15T08:53:32Z" level=error msg="googleapi: Error 400: The resource record set 'entity.change.additions[1]' is invalid because the DNS name 'fs1.default.galactic.svc.us.f8n.org.' may have either one CNAME resource record set or resource record sets of other types, but not both.\nMore details:\nReason: cnameResourceRecordSetConflict, Message: The resource record set 'entity.change.additions[1]' is invalid because the DNS name 'fs1.default.galactic.svc.us.f8n.org.' may have either one CNAME resource record set or resource record sets of other types, but not both.\nReason: cnameResourceRecordSetConflict, Message: The resource record set 'entity.change.additions[2]' is invalid because the DNS name 'fs1.default.galactic.svc.us1.us.f8n.org.' may have either one CNAME resource record set or resource record sets of other types, but not both.\nReason: cnameResourceRecordSetConflict, Message: The resource record set 'entity.change.additions[4]' is invalid because the DNS name 'fs1.default.galactic.svc.us.f8n.org.' may have either one CNAME resource record set or resource record sets of other types, but not both.\nReason: cnameResourceRecordSetConflict, Message: The resource record set 'entity.change.additions[5]' is invalid because the DNS name 'fs1.default.galactic.svc.us1.us.f8n.org.' may have either one CNAME resource record set or resource record sets of other types, but not both.\n"

If i use noop registry instead of txt registry, the operation is successful.

time="2018-10-15T08:55:50Z" level=debug msg="Matching zones against domain filters: [f8n.org]"
time="2018-10-15T08:55:51Z" level=debug msg="Matched f8n.org. (zone: federation-zone)"
time="2018-10-15T08:55:51Z" level=debug msg="Considering zone: federation-zone (domain: f8n.org.)"
time="2018-10-15T08:55:52Z" level=debug msg="Matching zones against domain filters: [f8n.org]"
time="2018-10-15T08:55:53Z" level=debug msg="Matched f8n.org. (zone: federation-zone)"
time="2018-10-15T08:55:53Z" level=debug msg="Considering zone: federation-zone (domain: f8n.org.)"
time="2018-10-15T08:55:53Z" level=info msg="Change zone: federation-zone"
time="2018-10-15T08:55:53Z" level=info msg="Del records: fs1.default.galactic.svc.f8n.org. A [192.168.99.208 192.168.99.216] 300"
time="2018-10-15T08:55:53Z" level=info msg="Del records: fs1.default.galactic.svc.us.f8n.org. A [192.168.99.216] 300"
time="2018-10-15T08:55:53Z" level=info msg="Del records: fs1.default.galactic.svc.us1.us.f8n.org. A [192.168.99.216] 300"
time="2018-10-15T08:55:53Z" level=info msg="Add records: fs1.default.galactic.svc.f8n.org. A [192.168.99.208] 300"
time="2018-10-15T08:55:53Z" level=info msg="Add records: fs1.default.galactic.svc.us.f8n.org. CNAME [fs1.default.galactic.svc.f8n.org.] 300"
time="2018-10-15T08:55:53Z" level=info msg="Add records: fs1.default.galactic.svc.us1.us.f8n.org. CNAME [fs1.default.galactic.svc.us.f8n.org.] 300"

Is this a known issue? Any workarounds available for this issue?

/cc @njuettner @linki

@danehans
Copy link

@shashidharatd do you see the same issue if you set --txt-prefix? See this note for details.

@danehans
Copy link

I see the same issue as @shashidharatd

@danehans
Copy link

@shashidharatd adding --txt-prefix solved the issue. See #262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants