HomeClusterLabs Projects

Log: controller: improve action result messages

Description

Log: controller: improve action result messages

Previously, processing a graph event could produce a mishmash of several
obscure log messages. Now, there is one log message per event (at notice or
info level, because the scheduler will log an error or warning if appropriate),
and the messages for different results are consistently formatted.

This allows the code to be significantly simplified as well.

Example:

warning: Action 5 (FencingPass_monitor_0) on node2 failed (target: 7 vs. rc: 0): Error
info: Action FencingPass_monitor_0 (5) confirmed on node2 (rc=0)
info: Detected action (32.5) FencingPass_monitor_0.22=ok: failed

->

notice: Transition 32 action 5 (FencingPass_monitor_0 on node2): expected 'not running' but got 'ok'

Details

Provenance
kgaillotAuthored on Jul 16 2019, 11:07 AM
Parents
rP2467de2f993c: Refactor: controller: confirm cancel actions by task key and node UUID
Branches
Unknown
Tags
Unknown

Event Timeline