Am Dienstag, 31. Juli 2007 schrieb Andre Heine:
> When I run this command with "OCF_ROOT=/usr/lib/ocf" I get a better
> output:)
With "-v"
nfs00001:~ # OCF_ROOT=/usr/lib/ocf /usr/sbin/ocf-tester -v -o
ip=127.0.0.20 -o netmask=32 -n
DemoIPaddr2 /usr/lib/ocf/resource.d/heartbeat/IPaddr2
+ OCF_ROOT=/usr/lib/ocf
+ /usr/sbin/ocf-tester -v -o ip=127.0.0.20 -o netmask=32 -n
DemoIPaddr2 /usr/lib/ocf/resource.d/heartbeat/IPaddr2
Beginning tests for /usr/lib/ocf/resource.d/heartbeat/IPaddr2...
Testing: meta-data
<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="IPaddr2">
<version>1.0</version>
<longdesc lang="en">
This Linux-specific resource manages IP alias IP addresses.
It can add an IP alias, or remove one.
In addition, it can implement Cluster Alias IP functionality
if invoked as a clone resource.
</longdesc>
<shortdesc lang="en">Manages virtual IPv4 addresses</shortdesc>
<parameters>
<parameter name="ip" unique="1" required="1">
<longdesc lang="en">
The IPv4 address to be configured in dotted quad notation, for example
"192.168.1.1".
</longdesc>
<shortdesc lang="en">IPv4 address</shortdesc>
<content type="string" default="" />
</parameter>
<parameter name="nic" unique="0">
<longdesc lang="en">
The base network interface on which the IP address will be brought
online.
If left empty, the script will try and determine this from the
routing table.
Do NOT specify an alias interface in the form eth0:1 or anything here;
rather, specify the base interface only.
</longdesc>
<shortdesc lang="en">Network interface</shortdesc>
<content type="string" default="eth0"/>
</parameter>
<parameter name="cidr_netmask">
<longdesc lang="en">
The netmask for the interface in CIDR format
(e.g., 24 and not 255.255.255.0)
If unspecified, the script will also try to determine this from the
routing table.
</longdesc>
<shortdesc lang="en">CIDR netmask</shortdesc>
<content type="string" default=""/>
</parameter>
<parameter name="broadcast">
<longdesc lang="en">
Broadcast address associated with the IP. If left empty, the script
will
determine this from the netmask.
</longdesc>
<shortdesc lang="en">Broadcast address</shortdesc>
<content type="string" default=""/>
</parameter>
<parameter name="iflabel">
<longdesc lang="en">
You can specify an additional label for your IP address here.
This label is appended to your interface name.
If a label is specified in nic name, this parameter has no effect.
</longdesc>
<shortdesc lang="en">Interface label</shortdesc>
<content type="string" default=""/>
</parameter>
<parameter name="lvs_support">
<longdesc lang="en">
Enable support for LVS Direct Routing configurations. In case a IP
address is stopped, only move it to the loopback device to allow the
local node to continue to service requests, but no longer advertise it
on the network.
</longdesc>
<shortdesc lang="en">Enable support for LVS DR</shortdesc>
<content type="boolean" default="false"/>
</parameter>
<parameter name="mac">
<longdesc lang="en">
Set the interface MAC address explicitly. Currently only used in case
of
the Cluster IP Alias. Leave empty to chose automatically.
</longdesc>
<shortdesc lang="en">Cluster IP MAC address</shortdesc>
<content type="string" default=""/>
</parameter>
<parameter name="clusterip_hash">
<longdesc lang="en">
Specify the hashing algorithm used for the Cluster IP functionality.
</longdesc>
<shortdesc lang="en">Cluster IP hashing function</shortdesc>
<content type="string" default="sourceip-sourceport-destport"/>
</parameter>
<parameter name="arp_interval">
<longdesc lang="en">
Specify the interval between unsolicited ARP packets in milliseconds.
</longdesc>
<shortdesc lang="en">ARP packet interval in ms</shortdesc>
<content type="integer" default="200"/>
</parameter>
<parameter name="arp_count">
<longdesc lang="en">
Number of unsolicited ARP packets to send.
</longdesc>
<shortdesc lang="en">ARP packet count</shortdesc>
<content type="integer" default="5"/>
</parameter>
<parameter name="arp_bg">
<longdesc lang="en">
Whether or not to send the arp packets in the background.
</longdesc>
<shortdesc lang="en">ARP from background</shortdesc>
<content type="string" default="yes"/>
</parameter>
<parameter name="arp_mac">
<longdesc lang="en">
MAC address to send the ARP packets too.
You really shouldn't be touching this.
</longdesc>
<shortdesc lang="en">ARP MAC</shortdesc>
<content type="string" default="ffffffffffff"/>
</parameter>
</parameters>
<actions>
<action name="start" timeout="90" />
<action name="stop" timeout="100" />
<action name="status" depth="10" timeout="20s" interval="10s"
start-delay="5s" />
<action name="monitor" depth="10" timeout="20s" interval="10s"
start-delay="5s" />
<action name="meta-data" timeout="5s" />
<action name="validate-all" timeout="20s" />
</actions>
</resource-agent>
Testing: validate-all
Checking current state
Testing: monitor
Testing: start
2007/07/31_15:36:16 INFO: ip -f inet addr add 127.0.0.20/32 brd
127.0.0.20 dev lo
2007/07/31_15:36:16 INFO: ip link set lo up
Testing: monitor
Testing: notify
usage: /usr/lib/ocf/resource.d/heartbeat/IPaddr2 {start|stop|status|
monitor|validate-all|meta-data}
Expects to have a fully populated OCF RA-compliant environment set.
* Your agent does not support the notify action (optional)
Checking for demote action
usage: /usr/lib/ocf/resource.d/heartbeat/IPaddr2 {start|stop|status|
monitor|validate-all|meta-data}
Expects to have a fully populated OCF RA-compliant environment set.
* Your agent does not support the demote action (optional)
Checking for promote action
usage: /usr/lib/ocf/resource.d/heartbeat/IPaddr2 {start|stop|status|
monitor|validate-all|meta-data}
Expects to have a fully populated OCF RA-compliant environment set.
* Your agent does not support the promote action (optional)
* Your agent does not support master/slave (optional)
Testing: stop
2007/07/31_15:36:16 INFO: ip -f inet addr delete 127.0.0.20/32 dev lo
2007/07/31_15:36:16 INFO: ip -o -f inet addr show lo
Testing: monitor
Restarting resource...
2007/07/31_15:36:16 INFO: ip -f inet addr add 127.0.0.20/32 brd
127.0.0.20 dev lo
2007/07/31_15:36:16 INFO: ip link set lo up
Testing: monitor
Testing: starting a started resource
Testing: monitor
Stopping resource
2007/07/31_15:36:16 INFO: ip -f inet addr delete 127.0.0.20/32 dev lo
2007/07/31_15:36:16 INFO: ip -o -f inet addr show lo
Testing: monitor
Testing: stopping a stopped resource
Testing: monitor
Checking for migrate_to action
usage: /usr/lib/ocf/resource.d/heartbeat/IPaddr2 {start|stop|status|
monitor|validate-all|meta-data}
Expects to have a fully populated OCF RA-compliant environment set.
Checking for reload action
usage: /usr/lib/ocf/resource.d/heartbeat/IPaddr2 {start|stop|status|
monitor|validate-all|meta-data}
Expects to have a fully populated OCF RA-compliant environment set.
* Your agent does not support the reload action (optional)
/usr/lib/ocf/resource.d/heartbeat/IPaddr2 passed all tests
nfs00001:~ #
> AFAIK looks good! All tests passed...
Greetings
Andre
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems