[Debian-ha-maintainers] Bug#1141271: resource-agents: Bash syntax error in ocf-shellfuncs breaks crm_mon_no_validation on Debian 13
Jörg Frede
joerg.frede at etailer.de
Thu Jul 2 13:36:14 BST 2026
Package: resource-agents
Version: 1:4.16.0-3+deb13u1
Severity: important
Dear Maintainer,
During a rolling upgrade to Debian 13, the Pacemaker cluster failed to
start certain resource agents (like Galera) due to a syntax error in
/usr/lib/ocf/lib/heartbeat/ocf-shellfuncs.
The command "pcs resource debug-start galera" returns:
--: -c: line 2: unexpected EOF while looking for matching `)'
The root cause is a missing closing parenthesis inside the
crm_mon_no_validation() function on line 736:
--------------------------------------------------
"$SHELL" -c "CIB_file=<(${HA_SBIN_DIR}/cibadmin -Q \
${HA_SBIN_DIR}/crm_mon \$*" -- $*
--------------------------------------------------
As you can see, the process substitution "<(" is never closed because
the ")" is missing after "-Q". This triggers a hard syntax error in
modern Bash versions.
Fix:
Adding the missing parenthesis solves the issue:
"$SHELL" -c "CIB_file=<(${HA_SBIN_DIR}/cibadmin -Q) \\ ..."
Note: This has already been fixed upstream by ClusterLabs ("fixed syntax
error in crm_mon_no_validation()"). Please backport or cherry-pick the
upstream fix into the Debian package to prevent upgrades from breaking
cluster resources.
Thank you for maintaining the package!
--
Mit freundlichen Grüßen
Jörg Frede
Systemadministrator
etailer Solutions GmbH, Bruchstraße 14, 57462 Olpe
HRB 10206 Siegen, Geschäftsführer: Dietmar Reinhard
Fon: 0 27 61 / 8 36 01-42
Internet: https://www.etailer.de, E-Mail: joerg.frede at etailer.de
More information about the Debian-ha-maintainers
mailing list