[Debian-ha-maintainers] Bug#1115577: pgsqlms resource validation function uses obsolete Pacemaker meta parameter
bruno
bruno24pt at gmail.com
Thu Sep 18 09:11:44 BST 2025
Package: resource-agents-paf
Version: 2.3.0-2
Hello,
After configuring the clone PAF resource with Pacemaker 3.0, invoking the
validation of the resource generate the following errors:
(Here, postgresql-ha refers to the pgsql-ha clone resource in the
configuration example of pgsqlms)
bruno24pt at nodea:~$ sudo pcs status
<- cut ->
Full List of Resources:
* Clone Set: postgresql-ha [postgresql] (promotable, disabled):
* Stopped (disabled): [ nodea nodeb ]
* postgresql-vip (ocf:heartbeat:IPaddr2): Stopped
bruno24pt at nodea:~$ sudo crm_resource -r postgresql-ha --validate
Operation validate for postgresql-ha (ocf:heartbeat:pgsqlms) returned 5
(Not installed: You must set meta parameter master-max=1 for your master
resource)
ocf-exit-reason:You must set meta parameter master-max=1 for your master
resource
crm_resource: Error performing operation: Not installed
The error is raised because master-max parameter has been obsoleted and
removed in Pacemaker 3.0:
Following to
https://clusterlabs.org/projects/pacemaker/doc/3.0/Pacemaker_Explained/html/collective.html,
section 9.2.4,see Deprecated Terminology note:
"Using the master-max meta-attribute instead of promoted-max"
I fixed the issue by replacing occurrences of master-max by promoted-max:
bruno24pt at nodea:~$ diff /usr/lib/ocf/resource.d/heartbeat/pgsqlms.orig
/usr/lib/ocf/resource.d/heartbeat/pgsqlms.fixed
1314c1314
< # check master-max=1
---
> # check promoted-max=1
1316,1317c1316,1317
< defined $ENV{'OCF_RESKEY_CRM_meta_master_max'}
< and $ENV{'OCF_RESKEY_CRM_meta_master_max'} eq '1'
---
> defined $ENV{'OCF_RESKEY_CRM_meta_promoted_max'}
> and $ENV{'OCF_RESKEY_CRM_meta_promoted_max'} eq '1'
1320c1320
< 'You must set meta parameter master-max=1 for your master
resource'
---
> 'You must set meta parameter promoted-max=1 for your master
resource'
bruno24pt at nodea:~$
Thanks,
Regards.
Additional packages informations:
bruno24pt at nodea:~$ cat /etc/debian_version
13.1
bruno24pt at nodea:~$ uname -a
Linux nodea 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1
(2025-08-27) x86_64 GNU/Linux
bruno24pt at nodea:~$ dpkg -l|grep pacemaker
ii crmsh 5.0.0~rc1-1
all CRM shell for the pacemaker cluster manager
ii libpacemaker30:amd64 3.0.0-2
amd64 cluster resource manager utility library
ii pacemaker 3.0.0-2
amd64 cluster resource manager
ii pacemaker-cli-utils 3.0.0-2
amd64 cluster resource manager command line utilities
ii pacemaker-common 3.0.0-2
all cluster resource manager common files
ii pacemaker-resource-agents 3.0.0-2
all cluster resource manager general resource agents
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20250918/28daf7fe/attachment.htm>
More information about the Debian-ha-maintainers
mailing list