Rasto Levrinc wrote:

It should work with different providers for sure. One thing that DRBD-MC
requires is that the resource agent implements meta-data argument, so this
could be the problem, or something in the meta-data.

So e.g.
OCF_ROOT=/usr/lib/ocf /usr/lib/ocf/resource.d/apra/w2003R2-1 meta-data
should print out valid xml, describing itself and its parameters.

The script was buggy indeed: if called without the required variables set it hang indefinitely. Now it0s fixed but still it doesn't work in DMC:

[r...@srvha01 ~]# OCF_ROOT=/usr/lib/ocf /usr/lib/ocf/resource.d/apra/VMwareVM meta-data
<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="vmwarevm">
<version>0.1</version>
<longdesc lang="en">
OCF compliant script to control vmware server 2.0 virtual machines.
</longdesc>
<shortdesc lang="en">VMWare server 2.0 resource agent</shortdesc>

<parameters>
<parameter name="vmxpath" unique="0" required="1">
<longdesc lang="en">
VMX configuration file path
</longdesc>
<shortdesc lang="en">VMX file path</shortdesc>
<content type="string"/>
</parameter>

<parameter name="vimshbin" unique="0" required="1">
<longdesc lang="en">
vmware-vim-cmd executable path
</longdesc>
<shortdesc lang="en">vmware-vimsh path</shortdesc>
<content type="string" default="/usr/bin/vmware-vim-cmd"/>
</parameter>
</parameters>

<actions>
<action name="start"        timeout="900" />
<action name="stop"         timeout="900" />
<action name="monitor" timeout="30" interval="300" depth="0" start-delay="60" />
<action name="meta-data"    timeout="5" />
</actions>
</resource-agent>

..
APPWARNING: w2003R2-1: could not find hb script
APPWARNING: w2003R2-4: could not find hb script
APPWARNING: w2003R2-2: could not find hb script
APPWARNING: w2003R2-3: could not find hb script


Thanks for the hint anyway

--
Cristian Mammoli
APRA SISTEMI srl
Via Brodolini,6 Jesi (AN)
tel dir. 0731 719822

Web   www.apra.it
e-mail  c.mamm...@apra.it


_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to