Skip to content

Conversation

@Damenly
Copy link
Contributor

@Damenly Damenly commented Nov 17, 2025

Here is a patchset which adds supports of drbd.ocf for OCF 1.1 standard.
The motivation is that drbd RA is broken with pacemaker built without option '--enable-compat-2.0'.
The ocf and crm-fence-peer.9.sh needed to be adjusted.

This version keeps backward compatibility with old versions pacemaker.

The crm_master command has been deprecated and replaced with a new
crm_attribute --promotion option that defaults to --lifetime=reboot
(example: crm_master -l reboot -v 10 becomes
crm_attribute --promotion -v 10. The old command will still work for
now, but the new one should be used if available.

Also define ocf_promotion_score() as
resource-agents/heartbeat/ocf-shellfuncs.in if it doesn't exist.

Signed-off-by: Su Yue <[email protected]>
According to [1], the commit
1. Bumps drbd ocf version to 1.5.
2. Updates the <version> element to 1.1 for declare support of OCF 1.1.
3. advertises new role names 'Unpromoted' and 'Unpromoted' instead of
    'Master' and 'Slave' if crm_feature_set is newer than 3.9.0.

Also update default role value in crm-fence-peer.9.sh.

Links: https://projects.clusterlabs.org/w/development/update_resource_agent_for_ocf_1.1/
Signed-off-by: Su Yue <[email protected]>
@rck rck requested a review from lge November 19, 2025 08:03
@lge lge self-assigned this Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants