The Pacemaker module "ocf:heartbeat:CTDB" does not work on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resource-agents (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Pacemaker on Ubuntu 18.04 is not able to create a resource of type: ocf:heartbeat:CTDB.
It seems to be because the command
<code>
ctdb version
</code>
return Ubuntu in the vesion.
The issue is fixed upstream in the commit https:/
= To reproduce =
* apt install ctdb pacemaker corosync pcs
* passwd hacluster
* pcs cluster auth localhost -u hacluster
* pcs cluster setup --name test localhost --force --enable
* pcs cluster start --all
* echo "127.0.0.1" > /etc/ctdb/nodes
* touch /etc/default/ctdb
* pcs resource create ctdb ocf:heartbeat:CTDB ctdb_recovery_
== Actual result ==
The command
<code>
pcs resource debug-start ctdb
</code>
return
<code>
Operation start for ctdb (ocf:heartbeat:
....
</code>
== Expected result ==
<code>
pcs resource debug-start ctdb
</code>
return
<code>
Operation start for ctdb (ocf:heartbeat:
....
</code>
description: | updated |
description: | updated |
affects: | systemd (Ubuntu) → pacemaker (Ubuntu) |
description: | updated |
Thanks David for this bug report. I think this bug belongs to the resource-agents package and not to pacemaker. Please note that resource-agents is in the "universe" component of Ubuntu, and therefore only gets community support. (Ubuntu 21.10 will also offer a resource- agent-supported package offering a subset of the resource-agents with support.)
The fix you pointed to [1] was reverted shortly after being introduced for reasons that are not immediately clear. A larger refactor of those functions was made several versions later in [3], however even should it apply cleanly on Bionic's version proposing it as a SRU fix will require extra care. This is IMHO a starting point for driving the fix forward.
[1] https:/ /github. com/ClusterLabs /resource- agents/ commit/ 0c513d16259d94b 492f0fe8dd0cbc2 e5f98ee912 /github. com/ClusterLabs /resource- agents/ commit/ 489afee8c424cf8 2b398832191bbdf 4d06b2e1f2 /github. com/ClusterLabs /resource- agents/ commit/ b4df0873bb98652 4d826a5ba9b24b1 35cccc0160
[2] https:/
[3] https:/