HomeClusterLabs Projects

Log: tools: improve error messages from crm_resource --move

Description

Log: tools: improve error messages from crm_resource --move

Previously, errors would typically result in two messages, at least one of
which was completely misleading. Now, some new pcmk_err_* codes are added
for richer return values, so that a single message can be printed.

This conveniently avoids a portability issue where ENXIO is described as
"No such device or address" on Linux and "Device not configured" on *BSD,
generating different regression test output.

Details

Provenance
kgaillotAuthored on May 10 2018, 4:33 PM
Parents
rP8aaa849e9096: Low: tools: use output redirection correctly in crm_standby
Branches
Unknown
Tags
Unknown

Event Timeline