HomeClusterLabs Projects

Fix: libpe_status: Handle filtering of inactive resources.

Description

Fix: libpe_status: Handle filtering of inactive resources.

Inactive resources aren't running on any node, so
pe__rsc_running_on_any_node_in_list was always returning false. This
means inactive resources would never get printed out even when not
filtering by nodes.

Fix pe__rsc_running_on_any_node_in_list to take inactive resources into
account. If a resource is inactive, it should still be printed if the
filtered node list is "*". This fixes things for when no filtering was
requested. If the filtered node list contains some nodes, eveything
should already be working correctly.

Details

Provenance
clumensAuthored on May 7 2020, 10:37 AM
Parents
rPec00d30a8e1d: Fix: tools: Print inactive resources by default with crm_mon xml output.
Branches
Unknown
Tags
Unknown

Event Timeline