[Pacemaker] "op monitor timeout" not supported in my RA.
N, Ravikiran
ravikiran.n at hp.com
Tue Aug 19 07:31:28 UTC 2014
Hi
I have resource as ocf:heartbeat:ocrtms. I'm trying to create resource using as pcs as
"pcs resource create hpocrtms ocf:heartbeat:ocrtms cstype=active rtmsdir=/media/sf_Desktop/rtms" but when I add "op monitor interval=3s" to this statement, resource creation fails with the following error :
ERROR: Unable to create resource/fence device
Call cib_create failed (-1003): Update does not conform to the configured schema
My metadata is as below :
meta_data() {
cat <<END
<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="hpocrtms">
<version>1.0</version>
<longdesc lang="en">
This is a Resource Agent for OC-RTMS_Server.
It outputs current cluster status to the html.
</longdesc>
<shortdesc lang="en">
Manages Collection Server.
</shortdesc>
<parameters>
<parameter name="pidfile" unique="0" required="0">
<longdesc lang="en">PID file</longdesc>
<shortdesc lang="en">PID file</shortdesc>
<content type="string" default="/var/run/rtmscs.pid" />
</parameter>
<parameter name="port" unique="0" required="0">
<longdesc lang="en">
This is the TCP port over which the RA shall interact with Collection server to
know of any configuration or presence of the collection server.
</longdesc>
<shortdesc lang="en">TCP port</shortdesc>
<content type="string" default="6789" />
</parameter>
<parameter name="user" unique="0">
<longdesc lang="en">
The user we want to run pingd as
</longdesc>
<shortdesc lang="en">The user we want to run pingd as</shortdesc>
<content type="string" default="root" />
</parameter>
<parameter name="rtmsdir" unique="0" required="0">
<longdesc lang="en">
This is the base directory of the RTMS Collection Server installation.
By Default, its value is /opt/OC/rtms/
</longdesc>
<shortdesc lang="en">RTMS Installtion directory</shortdesc>
<content type="string" default="/media/sf_Desktop/rtms" />
</parameter>
</parameters>
<actions>
<action name="start" timeout="20" />
<action name="stop" timeout="20" />
<action name="status" depth="0" timeout="20s" interval="10s" />
<action name="monitor" depth="0" timeout="20" interval="10" />
<action name="meta-data" timeout="5" />
<action name="validate-all" timeout="30" />
</actions>
</resource-agent>
END
}
Am I Missing anything here.. ?? ;)
Regards,
Ravikiran N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140819/aea486da/attachment-0003.html>
More information about the Pacemaker
mailing list