Mailing List Archive

Fixed Issue using VIPArip agent
Hello,

We found an issue when using the VIPArip resource agent: It keeps
restarting (stops at the first monitor call, then comes back up again).

Here's my envirornment :
Cent OS 6.4
CMAN 3.0.12.1-59
corosync 2.3.3-1.1
Pacemaker 1.1.12
VIPArip RA version : 1.0

The issue was that the configuration file created had its permissions
looking like this (400) :
-r-------. 1 root root 369 Sep 26 17:42
/var/run/resource-agents/VIPArip-ripd.conf

These permissions were too restrictive for the resource agent. Here are the
generated logs:
Sep 26 16:39:17 [2080] node1.cluster lrmd: notice:
operation_finished: res_VIPArip_ClusterRipIP_start_0:9037:stderr [
vty_read_config: failed to open configuration file
/var/run/resource-agents/VIPArip-ripd.conf: Permission denied ]
Sep 26 16:39:17 [2080] node1.cluster lrmd: notice:
operation_finished: res_VIPArip_ClusterRipIP_start_0:9037:stderr [
can't open configuration file [/var/run/resource-agents/VIPArip-ripd.conf] ]

In order to override the default file creation permission, we added at line
105 (inside new_config_file) this line :
*umask 022*
Resulting in :
new_config_file() {

echo new_config_file $1 $2 $3
* umask 022*
cat >$RIPDCONF <<END
...

New configuration file permissions :
-rw-r--r--. 1 root root 369 Sep 26 17:42
/var/run/resource-agents/VIPArip-ripd.conf

This solved the issue. Resource is up and running

Regards,
--
NOUSHI Fayçal
GSM : +212 661 56 03 37
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems