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.
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:/