How do we handle time units in gatherers and checks? #215
Replies: 4 comments 6 replies
-
Pacemaker attributes are completely opaque so we have no way to infer what the default unit should be. |
Beta Was this translation helpful? Give feedback.
-
Hey @scmschmidt , This requires a simple implementation in the gatherer side. This way, the returned value wouldn't have any unit afterwards anymore, and the check should compare it as it was in seconds. So the check implementations remains. We will create a ticket for this on our backlog and give priority. |
Beta Was this translation helpful? Give feedback.
-
Just to have the complete story here as well, since we discussed this in the last Check Team Meeting. |
Beta Was this translation helpful? Give feedback.
-
@scmschmidt Fixed in the agent: trento-project/agent#204 |
Beta Was this translation helpful? Give feedback.
-
When testing Check 373DB8 on different clusters on AWS, I saw:
The check passes.
The check fails.
The difference is the superficial but valid(?) unit
s
for seconds.The big questions is, how to handle units? Either the check writer needs to take care of it or the gatherer normalizes values either directly or with a second attribute.
I tend to vote for the handling this inside the gatherer, because it makes check writing much safer.
This is certainly not limited to
stonith-timeout
, but to all parameters which allow units in values.Beta Was this translation helpful? Give feedback.
All reactions