OCF:pacemaker:o2cb broken in 14.04

Bug #1412438 reported by tonyw
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ocfs2-tools (Ubuntu)
Confirmed
Undecided
Unassigned
Precise
New
Undecided
Unassigned
Trusty
New
Undecided
Unassigned

Bug Description

The pacemaker resource agent ocf:pacemaker:o2cb requires

/usr/sbin/ocfs2_controld.pcmk

in order to execute correctly. This binary used to be in ocsf2-tools-pacemaker in earlier releases (e.g. 12.04). However, this is omitted from 14.04. As a result, resource agent is broken and pacemaker cannot be used to manage ocfs2 file systems

Tags: ubuntu-ha
Revision history for this message
tonyw (tony-whyman) wrote :

Digging deeper, it seems that the /usr/sbin/ocfs2_controld.pcmk script was removed upstream (see https://lists.debian.org/debian-user/2014/06/msg01224.html) due to openais no longer being part of the system - and oracle have yet to update the ocfs2-tools package to provide a non-openais version.

/usr/lib/ocf/resource.d/pacemaker/o2cb should probably be removed from the resource agents.

I am have managed to find what appears to be a workaround

With reference to http://drbd.linbit.com/users-guide/s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-drbd

The recommended way to configure an ocfs2 resource for pacemaker management is to use "crm configure" to add the stanzas

primitive p_controld ocf:pacemaker:controld
primitive p_o2cb ocf:ocfs2:o2cb
group g_ocfs2mgmt p_controld p_o2cb
clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=trueprimitive p_fs_ocfs2 ocf:heartbeat:Filesystem \
  params device="/dev/drbd/by-res/ocfs2/0" directory="/srv/ocfs2" \
         fstype="ocfs2" options="rw,noatime"
clone cl_fs_ocfs2 p_fs_ocfs2

Howevr, this no longer works as the ocf approach is not possible under Ubuntu 14.04. Using the lsb script appears to be the best way to manage the resource i.e.

Edit /etc/default/o2cb and set:
O2CB_ENABLED=true
Ensure that o2cb does not start automatically:
sudo update-rc.d o2cb remove

and use crm configure to add somehhing like

primitive p_o2cb lsb:o2cb \
        op monitor interval="10" timeout="30" \
        op start interval="0" timeout="120" \
        op stop interval="0" timeout="120"
clone cl_ocfs2mgmt p_o2cb \
        meta interleave="true"
primitive p_fs_disk2 ocf:heartbeat:Filesystem \
        params device=""/dev/drbd/by-res/ocfs2/0" directory="/srv/ocfs2" fstype="ocfs2" options="rw,noatime" \
        op monitor timeout="40" interval="20" depth="0"
clone cl_fs_disk2 p_fs_disk2

However, there is still a further bug to workaround before ocfs2 works with pacemaker under 14.04. See

https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/1412548

Finally with the workaround and the bug fix, it all seems to work...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ocfs2-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Valentin Vidic (vvidic) wrote :

It seems o2cb resource is not needed any more. All the modules and setup is done by the mount.ocfs2 command in the ocfs2-tools-1.8.4 working with dlm-4.0.5 and a recent kernel. As a result you only need two resources to mount the OCFS2 filesystem:

* ocf:pacemaker:controld
* ocf:heartbeat:Filesystem

More details here: http://bugs.clusterlabs.org/show_bug.cgi?id=5240

tags: added: ubuntu-ha
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Thank you for taking the time to report this bug. In an effort to keep an
up-to-date and valid list of bugs to work on, I have reviewed this report to
verify it still requires effort and occurs on an Ubuntu release in standard
support.

This is and old behavior that might still be present in current
resource-agents package agents and is being drive at:

https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1869643

I'm marking this as duplicate so I can keep track of same issues for the
recent Ubuntu versions in an easier way.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.