Bug 1700926
| Summary: | [RFE] Allow task to adjust local watchdog | |||
|---|---|---|---|---|
| Product: | [Retired] Restraint | Reporter: | Jeff Bastian <jbastian> | |
| Component: | general | Assignee: | Carol Bouchard <cbouchar> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | low | Docs Contact: | ||
| Priority: | low | |||
| Version: | 0.1.39 | CC: | asavkov, bpeck, breilly, cbeer, cbouchar, mastyk, tklohna | |
| Target Milestone: | 0.1.40 | Keywords: | FutureFeature, Triaged | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1753336 (view as bug list) | Environment: | ||
| Last Closed: | 2019-07-17 19:36:18 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1753336 | |||
|
Description
Jeff Bastian
2019-04-17 16:43:11 UTC
This is what we've discussed and I'm wondering if this works for you. Instead of having rstrt_adjust_watchdog adjust only the external_watchdog, it will adjust the local watchdog at the same time. So the results is both watchdog timers will be affected by this CLI instead of just the external_watchdog. That would be perfect, and a lot easier than having to remember to run two different commands. The EWD is usually a bit longer than LWD, if I recall correctly. It has an extra 15 minute buffer I think? I assume rstrnt_adjust_watchdog would factor this in? You're right Jeff,
current call in restraint/task.c:
restraint_task_watchdog (task, app_data, task->remaining_time + EWD_TIME);
and EWD_TIME is defined as:
#define EWD_TIME 30 * 60 // amount of time to add to local watchdog for externl watchdog
That will need to factored into this patch as well.
Thanks for the heads up. I'll investigate the affect on the external watchdog next as I didn't expect there to be any changes since that functionality already exists. I'm currently trying to shim in changes for local timers as there are 2 of them and I'd merely add to them. Believe it or not, one timer's a bit tricky and I want to work with the harmony of existing code. I've been spending time testing code without my code changes. When rstrnt_adjust_watchdog is called, I noticed the EWD_TIME is currently not added to the external watchdog. I will add it to external watchdog with this change. Restraint 0.1.40 has been released. |