Package: resource-agents
Version: 1:4.16.0-3+deb13u1
Severity: normal
I wanted to create a DRBD resource in Pacemaker on Trixie. That used to
work in Bookworm but fails now:
#---------------------------------------------------------------
pcs resource create drbd_r0 ocf:linbit:drbd drbd_resource=r0 op monitor
interval=29s role=Promoted op monitor interval=31s role=Unpromoted --future
--agent-validation promotable meta meta promoted-max=1 promoted-node-max=1
clone-max=1 notify=true
Error: Validation result from agent (use --force to override):
ocf-exit-reason:meta parameter misconfigured, expected clone-max -le 2, but
found unset.
Error: Errors have occurred, therefore pcs is unable to continue
#---------------------------------------------------------------
As I had "clone-max=1" specified, I had not expected this error.
Next I ran the ocf-tester to see if there are general issues with this
resource agent:
#---------------------------------------------------------------
ocf-tester -n r_drbd /usr/lib/ocf/resource.d/linbit/drbd -o
drbd_resource="drbd0"
Beginning tests for /usr/lib/ocf/resource.d/linbit/drbd...
-:228: element parameter: validity error : Element parameter content does not
follow the DTD, expecting (longdesc+ , shortdesc+ , content), got (longdesc
content )
</parameter>
^
-:244: element parameter: validity error : Element parameter content does not
follow the DTD, expecting (longdesc+ , shortdesc+ , content), got (longdesc
content )
</parameter>
^
-:257: element action: validity error : Element action does not carry attribute
timeout
<action name="validate-all" />
^
* rc=4: Your agent produces meta-data which does not conform to ra-api-1.dtd
* rc=6: Validation failed. Did you supply enough options with -o ?
drbd(r_drbd)[112911]: WARNING: You may be disappointed: This RA is intended for
pacemaker 1.0 or better!
ocf-exit-reason:meta parameter misconfigured, expected clone-max -le 2, but
found unset.
Aborting tests
#---------------------------------------------------------------
I have also tried the version from Forky but had the same result.
I can override it with --force but that feels wrong.
-- System Information:
Debian Release: 13.3
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.69+deb13-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages resource-agents depends on:
ii bc 1.07.1-4
ii cluster-glue 1.0.12-24+b1
ii gawk 1:5.2.1-2+b1
ii libc6 2.41-12+deb13u1
ii libnet1 1.3+dfsg-2
ii libplumb2t64 1.0.12-24+b1
ii libqb100 2.0.8-2+b1
ii psmisc 23.7-2
ii python3 3.13.5-1
Versions of packages resource-agents recommends:
ii libxml2-utils 2.12.7+dfsg+really2.9.14-2.1+deb13u2
ii net-tools 2.10-1.3
ii python3-googleapi 2.166.0-1
resource-agents suggests no packages.
-- no debconf information