Skip to contentSkip to conversation

drbd-utils v9.20.2

DRBD-announce Roland Kammerer 1 participant 1 message Jan 31, 2022

lore
Share & tools
lore
#0 lore raw

Dear DRBD users,

this is drbd-utils v9.20.2. It it is a minor bugfix release for Pacemaker/crm-fence-peer users. If you don't use Pacemaker, or you have a Pacemaker version that works with 9.20.1, you don't need to upgrade.

As this is a single commit bugfix release let's just quote Lars:

Quoted 16 lines

crm-fence-peer: fix timeout with Pacemaker 2.0.5: milli seconds vs seconds

Addendum to 8a28be74bc6efa93931c957e54c01abb18b984fe Commit message of the above cited here:

Quoted 10 lines

crmadmin timeout was in milli seconds for <= 2.0.x, but became a TIMESPEC with default seconds in >= 2.1.

Up to 2.0.4, atoi() was used, which effectively ignores "trailing garbage", so we could get away with always appending "ms".
But with 2.0.5, it became g_option_context_parse G_OPTION_ARG_INT, which "Cannot parse integer value “200ms” for --timeout" :-|

So grep the help message for "timeout.*milliseconds", and if not present, append an explicit "ms" unit.

Quoted 7 lines

And this is where I got it wrong :-(
somewhere later they re-organised the help text
so now I would need to parse --help-all.

Instead try to actually call "crmadmin -t 100ms --version". If that works, it apparently understands (or ignores) the "ms" unit.

Regards, rck

GIT: https://github.com/LINBIT/drbd-utils/tree/9.20.2
TGZ: https://pkg.linbit.com//downloads/drbd/utils/drbd-utils-9.20.2.tar.gz
PPA: https://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack