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

NETOBSERV-856 Fix infinite reconcile & add more debugging utility #262

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

jotak
Copy link
Member

@jotak jotak commented Feb 3, 2023

The infinite reconcile was due to a bad change comparison of liveness/readiness probes.

This commit is also adding better reconciliation change tracking utility for debugging.

@jotak
Copy link
Member Author

jotak commented Feb 3, 2023

@OlivierCazade @jpinsonneau I'm adding here more logs that help a lot debugging - but there's a drawback, that it is doing more logging stuff at runtime.
Actually I don't find this logger (sigs.k8s.io/controller-runtime/pkg/log) very nice to use (or maybe that's me who don't understand it well). For instance I would like more fine grained log level but it only offers Info and Error. Also, it doesn't seem possible to do something like log.IsInfoEnabled to avoid unnecessary processing when log level is Error.

Maybe we should replace it with logrus, that we use in the other repos, wdyt? (in a next PR)

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm fine with the idea of changing the logger in a followup.

FYI in loki-operator they use https://github.com/ViaQ/logerr

@openshift-ci openshift-ci bot added the lgtm label Feb 6, 2023
KalmanMeth added a commit to KalmanMeth/network-observability-operator that referenced this pull request Feb 13, 2023
* return typed model instead of generic map

* exported a few more functions

* allowed missing config.yaml file

* added ConfigFileSgtruct

* restored output of Buckets

* changed config2 to config
@openshift-ci openshift-ci bot removed the lgtm label Feb 15, 2023
The infinite reconcile was due to a bad change comparison of
liveness/readiness probes.

This commit is also adding better reconciliation change tracking
utility for debugging.
@memodi
Copy link
Contributor

memodi commented Feb 16, 2023

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Feb 16, 2023
@github-actions
Copy link

New image: ["quay.io/netobserv/network-observability-operator:9dbe447"]. It will expire after two weeks.

@jotak
Copy link
Member Author

jotak commented Feb 17, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented Feb 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 6136a57 into netobserv:main Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants