HomeClusterLabs Projects

Fix: tools: crm_resource target-role check should use meta-attribute table

Description

Fix: tools: crm_resource target-role check should use meta-attribute table

Previously, check_role() searched the CIB for the uber-parent's target-role
attribute. That could give incorrect results if target-role 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 target-role
settings (e.g. using rules).

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

Details

Provenance
kgaillotAuthored on Apr 5 2022, 6:11 PM
Parents
rP7f8f94d0a108: Refactor: tools: functionize individual resource checks in crm_resource
Branches
Unknown
Tags
Unknown