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
wenningerkCommitted on May 18 2020, 3:22 AM
Parents
rP126a59cacc08: Fix: fencer: avoid possible use-of-NULL when parsing metadata
Branches
Unknown
Tags
Unknown

Event Timeline