-
Notifications
You must be signed in to change notification settings - Fork 652
LastHeartbeatTime is not update when plugin does not have a condition #306
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
Comments
... welp additionally not even failures get reported when conditions are removed, this is a nice trap in general, mis-spell conditions ... to bad, your plugin reports to /dev/null now 🤷♂ |
If there is no condition object, the heartbeat does not have a place to live in. I think we should just fix #304 and then you have a default condition, where you can have the heartbeat.
I think this is by design. The heartbeat is for the condition object, not for the plugin. |
Then if there is no conditions object the config should crash/be marked invalid since it will not work ? (same for if the condition does not match the rules ?) Hmm if the heartbeat is for the condition object, then it should update whenever any plugin for it runs maybe <-> whenever it is "reconsidered" ... not sure if that makes sense :) |
Why is that? No condition does not mean the plugin is not running. It means the permanent problem does not occur yet.
It can be more frequent than that. See how often it gets updated here: |
If there is no condition, the permanent problem will not get set even if it happens. |
I am lost. Why is that? When a permanent problem occur, the corresponding condition object will be created (if not existed before), right? |
only if there was |
confirmed that it never creates a status when conditions is empty or condition was not defined with the exact same name |
That sounds like a bug to me. I haven't got time to test it myself. Do you mind describing the reproduce steps here? /cc @Random-Liu |
create a custom plugin without a condition and a failing permanent rule -> never set |
Do you mind sharing your config file and how you generate the failing rule and attach the NPD logs here? |
see above, just needs a script that does not work like |
@grosser The current way that NPD works is that the #306 (comment) doesn't have it, thus no condition is set.
Agree. |
so that should be part of the validation then ? <-> fail fast when config is invalid ? |
Makes sense. Do you mind sending a fix? :) |
Just added the validation on the config in #320 |
thx 🎉 |
The fix is now included in NPD v0.6.6. @grosser, can you double check if your problem is fixed? |
deployed 0.7.0 with |
The fix is not included in 0.7.0. The fix is in v0.6.6 and will be in 0.7.1 (not yet released) |
same with 0.6.6
…On Wed, Aug 14, 2019 at 1:17 PM Zhen Wang ***@***.***> wrote:
The fix is not included in 0.7.0. The fix is in *v0.6.6* and will be in
0.7.1 (not yet released)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#306?email_source=notifications&email_token=AAACYZ5EDPBRYXJIEKBDRFDQERR4FA5CNFSM4H67VUG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4J7M3Y#issuecomment-521401967>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAACYZ2FE7LEYSBMFPYQQUDQERR4FANCNFSM4H67VUGQ>
.
|
Sorry, I misunderstood and miscommunicated. The fix on custom plugin was cherry picked. The validation for the config was not cherry picked (no plan to include in v0.6.x, will be included in 0.7.1) |
Now v0.7.1 is released, which should include the validation for the config. Can you double check again? |
finally failed now :)
|
We have a plugin that runs every 5 minutes. Previously it had a
conditions
which we removed because it causes:
LastTransitionTime
to be updated on each deploy Node conditions status reset on problem detector restart. #304LastHeartbeatTime
to be updated every minute even if it did not run... but now it does not update
LastHeartbeatTime
at all, even though we see in the logs that it runs (succeeds) every 5 minutes. So we have to chose between 2 broken states ... please add a fix or allow some config likeheartBeatMakesSense: true
that updates the heartbeat only when the plugin runs 🤷♂FYI rest of the plugin config
/cc @eatwithforks @xueweiz @wangzhen127
The text was updated successfully, but these errors were encountered: