-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
operator: log op. config cm setting when changed #12679
Conversation
98ebf39
to
c31d09f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why does this get logged every 5 minutes? Is there node handling code that is triggered every 5 minutes? I don't see where that is. I thought the node handling code was only triggered on node events, not on a timer.
every time, there is any change in nodes or somehow node watcher is called in nodeLoss scenario is also triggered and the first thing we check is if the configMap setting for nodeLoss is true or not. That's why it keeps logging. here rook/pkg/operator/ceph/cluster/watcher.go Lines 152 to 155 in 7aaf46e
|
c31d09f
to
731748a
Compare
731748a
to
135f3bd
Compare
a512643
to
d367985
Compare
d367985
to
85d9b4c
Compare
85d9b4c
to
033c17f
Compare
033c17f
to
b6eecec
Compare
b6eecec
to
0cafd9b
Compare
291bf14
to
60f7e44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, small suggestion on unit test
earlier, we're always logging when `GetValue` method is called to get operator config values which somettime spamming the logs for example `ROOK_WATCH_FOR_NODE_FAILURE` keep logging every time 5 min. Now, we'll store the settings in the map and log only when map key value is changed. Signed-off-by: subhamkrai <srai@redhat.com>
60f7e44
to
733be02
Compare
operator: log op. config cm setting when changed (backport #12679)
Description of your changes:
earlier, we're always logging when
GetValue
method iscalled to get operator config values which sometimes
spamming the logs for example
ROOK_WATCH_FOR_NODE_FAILURE
keep logging every time 5 min.
Now, we'll store the settings in the map and log only when
map key value is changed.
Which issue is resolved by this Pull Request:
Resolves #12543
Checklist:
skip-ci
on the PR.