-
Notifications
You must be signed in to change notification settings - Fork 669
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
Add more verbose logging to IsEvictable checks #300
Add more verbose logging to IsEvictable checks #300
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi 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 |
/hold |
839875c
to
d41c69e
Compare
/kind cleanup |
@damemi I think it would be good to note in the Pod Evictions section of the README that using log level 4 will log the reason descheduler is not evicting a pod. I believe this would reduce the number of questions end users have about why pods are not being evicted. |
d41c69e
to
0a4b8b0
Compare
@seanmalloy good idea, updated |
/lgtm The hold can be removed once someone has verified what the log output actually looks like. |
Finally got to test this and the output looks good to me:
Note that this does log for a lot of pods (every pod that's not evictable) so to really debug it you need to grep the logs, but I think that's reasonable for /hold cancel |
/retest |
/test pull-descheduler-verify |
Add more verbose logging to IsEvictable checks
This makes the
IsEvictable
check more verbose atlogLevel=4
, but breaking each check into its own conditional and logging errors for each one, finally outputting the full list if the pod does not also have the "evictable" annotation.This gives output like this: