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

Increase logging output #103

Closed
linki opened this issue Mar 17, 2017 · 9 comments
Closed

Increase logging output #103

linki opened this issue Mar 17, 2017 · 9 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Milestone

Comments

@linki
Copy link
Member

linki commented Mar 17, 2017

external-dns currently doesn't log anything if it's not running in dry-run mode. Change that!

@linki linki modified the milestones: v1.0, v0.4 Apr 3, 2017
@linki linki added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 10, 2017
@hjacobs
Copy link
Contributor

hjacobs commented Apr 11, 2017

At least all performed DNS changes should be logged as INFO (one line per change, not some verbose dump).

hjacobs added a commit that referenced this issue Apr 12, 2017
hjacobs added a commit that referenced this issue Apr 13, 2017
@linki linki mentioned this issue Apr 24, 2017
12 tasks
@hjacobs
Copy link
Contributor

hjacobs commented Apr 24, 2017

@ideahitme can you prepare a small proposal on where to log what? I have some minimum expectations (just what comes to my mind right now):

  • DNS records which are not owned by External DNS should be logged on DEBUG level (so users can clearly see that they are skipped and for what reason)
  • DNS records which are filtered by the --domain option should be logged on DEBUG level (so users can clearly see that they are skipped and for what reason)

@ideahitme
Copy link

ideahitme commented Apr 24, 2017

Logging should include (without --debug enabled) :

  • External-dns final changes passed to dns provider - this needs to be logged in DNS Provider mainly due to RecordType information
  • All errors regarding retrieving ingress/service and dns provider API calls:
    • Failure to retrieve ingress/service list, failure to retrieve record list should be logged in controller
    • Failure to update records in a hosted zone, logged in dns provider with zoneID and list of records - this is a rare scenario
  • External-dns has empty update list for dns provider - this should be transparent, i.e. each dns provider call to update records should be concluded with number of owned records (k8s resources) and number of changes pushed to DNS Provider

Debug logging should include:

  • External-dns is unable to determine a hosted zone for the record - this information is only available in DNS provider and should be logged there
  • External-dns is not responsible for the record (TXT record is missing) - this information is only available in TXT Registry
  • External-dns skips endpoint because another controller annotation is present or dnsname could not be figured out - this information should be logged in corresponding source implementation
  • External DNS policy does not allow deletion, this information should be logged with a list of record which are not being deleted due to the policy
  • External DNS resorting to compatibility mode (if flag enabled) should be seen by user - e.g. "mate zalando.org/dnsname annotation is found, using example.org as dns name"
  • External DNS should print general information regarding collected k8s resources [DNSName Target]

@hjacobs
Copy link
Contributor

hjacobs commented Apr 24, 2017

Also debug logging should include if a change is not performed because of the policy (e.g. a DELETE would be needed but is not allowed by policy).

@hjacobs
Copy link
Contributor

hjacobs commented Apr 24, 2017

External-dns has empty update list for dns provider

I think this could be a nice summary logging the number of owned records and performed changes.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Apr 21, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 May 21, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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.

lou-lan pushed a commit to lou-lan/external-dns that referenced this issue May 11, 2022
Fixes kubernetes-sigs#97.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. 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

5 participants