#1127740 resource-agents: drbd resource: expected clone-max -le 2, but found unset

Package:
resource-agents
Source:
resource-agents
Description:
Cluster Resource Agents
Submitter:
Christoph Haas
Date:
2026-02-17 23:53:02 UTC
Severity:
normal
#1127740#5
Date:
2026-02-12 12:31:03 UTC
From:
To:
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.

#1127740#10
Date:
2026-02-12 20:16:24 UTC
From:
To:
Hi,

I think this agent comes from a different package:

drbd-utils: /usr/lib/ocf/resource.d/linbit/drbd

#1127740#15
Date:
2026-02-13 15:27:12 UTC
From:
To:
reassign drbd-utils

thanks