HomeClusterLabs Projects
Diffusion Booth bb58699a47a7

pacemaker: Handle updated exit code of crm_ticket

Description

pacemaker: Handle updated exit code of crm_ticket

crm_ticket included since Pacemaker version 2.0.0-rc2 doesn't return
EPERM (1) error code any longer when ticket is updated without using
--force. Instead new value CRM_EX_INSUFFICIENT_PRIV (4) is used.

This return value is used in the test_atomicity function which is
failing with new enough Pacemaker.

Solution is to check also for return code 4.

Also previously when unexpected code is returned, log contained full
return value as returned by system call. This is not very readable so
use only exit status (WEXITSTATUS) instead.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Jun 8 2020, 9:38 AM
Parents
rB385cc25a3769: Merge pull request #91 from jfriesse/accept-long-config-lock-fnames
Branches
Unknown
Tags
Unknown

Event Timeline