HomeClusterLabs Projects

Fix: tools: implement crm_failcount command-line options correctly

Description

Fix: tools: implement crm_failcount command-line options correctly

They were a mess: the help text documented commands that weren't available,
deprecated crm_attribute option names were supported but not current ones,
and -l/--lifetime (which doesn't even make sense for fail counts) would print
a warning in an infinite loop.

Additionally, setting the fail count to a specific (non-zero) value, or simply
deleting the fail count, doesn't really make sense, because it won't match the
resource history and would likely lead to unexpected behavior. Now, attempts
to set a (non-zero) value are ignored, and deletes are mapped to
crm_resource --cleanup.

Details

Provenance
kgaillotAuthored on Jan 18 2017, 7:17 PM
Parents
rPd64a5be5eba2: Refactor: tools: use new functions for failure attribute names
Branches
Unknown
Tags
Unknown

Event Timeline