Page MenuHomeClusterLabs Projects

Parse all local options at start-up
Open, NormalPublic

Assigned To
None
Authored By
kgaillot
Aug 8 2024, 12:28 PM
Tags
  • Restricted Project
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Currently, local (sysconfig) options are parsed when needed. This means that misconfigurations will not be detected until too late. It would be better if all options were parsed at cluster start-up so that warnings could be issued earlier.

One possible approach would be to create a new internal global struct to hold all local options, with a parser function. Any daemon that needs any local option would call the parser at start-up. The parser should probably take a bool argument for whether to log warnings so that only one daemon (likely pacemakerd) would log.

Event Timeline

kgaillot triaged this task as Normal priority.Aug 8 2024, 12:28 PM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".

As an example, for PCMK_panic_action, this will involve creating an enum for the value, which will minimize the work that panic_local() has to do. (The "sync" portion of it should likely be a flag or bool separate from the enum.)