Page MenuHomeClusterLabs Projects

Handle output objects in pcmk_update_configured_schema()
Open, NormalPublic

Assigned To
Authored By
kgaillot
Dec 6 2023, 12:27 PM
Tags
  • Restricted Project
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

crm_verify calls pcmk_verify() which calls pcmk_update_configured_schema() with to_logs == false. That causes messages to be sent to stderr.

We need the messages to go to the output object so they are displayed in the user's requested format.

We should be able to reuse the config warn/error handlers used by pcmk__config_err() and pcmk__config_warn().

to_logs also filters down to pcmk__update_schema(), apply_upgrade(), and the validate_with() error handler; they might be affected as well. We'll have to come up with test cases that cause each function to generate a message.

pcmk_update_configured_schema() is public API, so we'll need a new internal function to take an output object argument, and the current function can become a wrapper for it.

Event Timeline

kgaillot triaged this task as Normal priority.Dec 6 2023, 12:27 PM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".
kgaillot renamed this task from Handle output objects in cli_config_update() to Handle output objects in pcmk_update_configured_schema().Jun 12 2024, 10:31 AM
kgaillot updated the task description. (Show Details)