HomeClusterLabs Projects

Refactor: crmd: use new attrd op to clear fail counts

Description

Refactor: crmd: use new attrd op to clear fail counts

Previously, crmd's CRM_OP_CLEAR_FAILCOUNT handler cleared the fail-count and
last-failure attributes by name. Now, it uses attrd's ATTRD_OP_CLEAR_FAILURE
operation. This simplifies the code and will make future changes in
failure handling easier.

Since only the DC schedules clear ops, and we are bumping the CRM_FEATURE_SET
with this release, all nodes are guaranteed to support the new op, so
there is no problem with backward compatibility in mixed-version clusters.

Details

Provenance
kgaillotAuthored on Feb 23 2017, 5:38 PM
Parents
rP6191ea52c9f8: Fix: tools: crm_resource -C should clear last-failure
Branches
Unknown
Tags
Unknown

Event Timeline