HomeClusterLabs Projects

Refactor: libpacemaker: Fix some primitive-with-promoted-bundle colocs

Description

Refactor: libpacemaker: Fix some primitive-with-promoted-bundle colocs

If a node is a bundle node and the resource we're updating allowed nodes
for is a bundled resource, look up the colocation attribute on the
bundle node's assigned host. Likewise if the node is a guest node and
the resource has container-attribute-target set to "host".

For guest nodes, this basically aligns with the existing specification
of container-attribute-target.

Only the bundled resource can run on a bundle node. So if the bundled
resource is involved in a colocation (for example, "rscB with promoted
bundled-rscA"), then the colocation must be considered for the bundle
node's assigned host.

Ref T672

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jun 30 2023, 4:52 AM
Parents
rPb51084c0e62b: Refactor: libpacemaker: Pass target_rsc to add_colocated_node_scores()
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task