Package: corosync
Version: 1.3.0-3
Severity: minor
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmpq7bAUZ
In Ubuntu, the attached patch was applied to achieve the following:

When the cluster resources are started, the Resource Agents expect 
'/var/run/resource-agents/'
to exists. However, the RA's nor any other piece of software creates the 
directory. This has
been discussed upstream and it was recommended [1] to verify/create such 
directory on the init
scripts (corosync/heartbeat/pacemaker mcp)

[1]: http://developerbugs.linux-foundation.org/show_bug.cgi?id=2378#c17

  * Resync from debian unstable (LP: #787062).
  * debian/corosync.init: Ensure that '/var/run/resource-agents' is created;
    otherwise cluster operations will fail as RA's expect it (LP: #751344).


Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty'), 
(100, 'natty-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-5-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru corosync-1.3.0/debian/corosync.init corosync-1.3.0/debian/corosync.init
--- corosync-1.3.0/debian/corosync.init	2011-03-29 12:26:34.000000000 -0400
+++ corosync-1.3.0/debian/corosync.init	2011-05-23 11:45:49.000000000 -0400
@@ -20,6 +20,7 @@
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 PIDFILE=/var/run/corosync.pid
+RARUNDIR=/var/run/resource-agents
 
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
@@ -27,6 +28,9 @@
 # Read configuration variable file if it is present
 [ -r /etc/default/corosync ] && . /etc/default/corosync
 
+# Make sure the Resource Agents run dir exists. Otherwise create it.
+[ -d "$RARUNDIR" ] || mkdir -p $RARUNDIR
+
 if [ "$START" != "yes" ]; then
 	exit 0
 fi

Reply via email to