HomeClusterLabs Projects

Low: fencer: handle topology level registration errors better

Description

Low: fencer: handle topology level registration errors better

Rename stonith_level_register() to fenced_register_level() for consistency, and
refactor it to return a full result rather than a legacy return code.

Return a protocol error for missing information in the request XML, and log
invalid level numbers at warning level. Use a new combination of
PCMK_EXEC_INVALID with CRM_EX_INVALID_PARAM for invalid levels, so it gets
mapped back to the legacy code -EINVAL (which was returned before).

Details

Provenance
kgaillotAuthored on Nov 29 2021, 6:06 PM
Parents
rP9601b2aff1ea: Refactor: fencer: track full result for local fencing
Branches
Unknown
Tags
Unknown

Event Timeline