HomeClusterLabs Projects

Fix: tools: crm_resource is-managed check should use meta-attribute table

Description

Fix: tools: crm_resource is-managed check should use meta-attribute table

Previously, check_managed() searched the CIB for the uber-parent's is-managed
attribute. That could give incorrect results if is-managed was set on a
different resource in the ancestry chain (e.g. the resource itself for a group
member, or the group for a cloned group), or if there were multiple is-managed
settings (e.g. using rules).

Now, is-managed is checked in rsc->meta, which should be fully evaluated for
inheritance and rules.

Details

Provenance
kgaillotAuthored on Apr 5 2022, 6:15 PM
Parents
rP32414475281d: Fix: tools: crm_resource target-role check should use meta-attribute table
Branches
Unknown
Tags
Unknown