HomeClusterLabs Projects

Log: scheduler: treat config errors as processing errors

Description

Log: scheduler: treat config errors as processing errors

libcrmcommon has two sets of variables for special error conditions:
crm_config_error and crm_config_warning for invalid usage in the CIB,
and was_processing_error and was_processing_warning for other types of
problems encountered while running the scheduler.

The crm_config_* variables affect crm_verify's exit status and a log message,
while the was_processing_* variables affect the name the CIB input is saved as
(pe-input-N, pe-error-N, pe-warn-N) and a different log message.

This commit treats all configuration errors as also being processing errors so
that both the input name and logs indicate an error has occurred.

Details

Provenance
kgaillotAuthored on May 22 2023, 4:19 PM
Parents
rPeb605b61522c: Refactor: libpe_status,libcrmcommon: move pe_proc_warn() to libcrmcommon
Branches
Unknown
Tags
Unknown