Bug 2183466
| Summary: | User cannot determine cluster time zone | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Simon Foucek <sfoucek> |
| Component: | pacemaker | Assignee: | Ken Gaillot <kgaillot> |
| Status: | NEW --- | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.2 | CC: | cluster-maint, nwahl |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Feature Request | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Simon Foucek
2023-03-31 09:18:55 UTC
The DC (designated controller) node runs the scheduler and evaluates the rules. The evaluation of date-based rules is based on the time on the DC. It looks as if the time used for evaluation is relative to the system's configured time zone, rather than based on UTC. I suspect this was chosen for convenience: many users will find it less error-prone to configure rules based on their local time zone. So the result of the evaluation depends on which node is DC. There is no persistent "cluster-wide" time -- to the extent that there is such a thing, it's the time of the current DC. One possible solution might be to add a new "time_zone" field to rules. Another might be to have a cluster-wide time zone property that overrides the system's time zone (via pe_working_set_t:now). If I understand the logic you describe, it would be best to add the possibility to set the TZ for DC, so it would not change when moving between nodes. The user could also see which TZ is set up for the cluster. (In reply to Simon Foucek from comment #2) > If I understand the logic you describe, it would be best to add the > possibility to set the TZ for DC, so it would not change when moving between > nodes. The user could also see which TZ is set up for the cluster. The way I'm thinking about it, the property would set the time zone for the whole cluster, not just for the DC. It wouldn't have to affect the system time -- only the time that Pacemaker uses. That's probably also a lot easier to implement than another approach. That seems like a fine solution for me. I would also add the possibility of checking the property's current value. |