[Linux-HA] Invalid parameter with IPaddr2
Michael Schwartzkopff
misch at multinet.de
Thu Oct 8 02:01:01 MDT 2009
Am Donnerstag, 8. Oktober 2009 08:36:43 schrieb Yves Schumann:
> Hi Michael
>
> linux-ha-bounces at lists.linux-ha.org wrote on 07.10.2009 20:53:42:
> > does the cluster know on what interface the IP should be added? Perhaps
>
> you
>
> > add a "nic" and a "cidr_netmask" attribute.
>
> I've tried this but it makes no difference, the error message is still the
> same. :-(
>
> Configuration looks now like this:
>
> <resources>
> <group id="oanRscGroup">
> <meta_attributes id="oanRscGroupMetaAttrs">
> <nvpair id="oanRscGroupMetaattrIsManaged" name="is-managed"
> value="true"/>
> </meta_attributes>
> <primitive class="ocf" id="rscIpaddr2" provider="heartbeat"
> type="IPaddr2">
> <operations id="rscIpaddr2Operations">
> <op id="rscIpaddr2OpMonitor10s" interval="10s" name="monitor"
> start-delay="0" timeout="20s"/>
> </operations>
> <instance_attributes id="rscIpaddr2InstanceAttributes">
> <nvpair id="rscIpaddr2InstanceAttributesIp" name="ip"
> value="172.17.206.169"/>
> <nvpair id="rscIpaddr2InstanceAttributesNic" name="nic"
> value="eth0"/>
> <nvpair id="rscIpaddr2InstanceAttributesMask"
> name="cidr_netmask" value="255.255.255.0"/>
> </instance_attributes>
> <meta_attributes id="rscIpaddr2MetaAttributes">
> <nvpair id="rscIpaddr2MetaAttributesTargetRole"
> name="target-role" value="Started"/>
> </meta_attributes>
> </primitive>
> <primitive class="lsb" id="rsc_asterisk" type="asterisk">
> <operations id="snmpWatchOperations">
> <op id="rscOperations_asterisk" interval="15s" name="monitor"
> start-delay="15" timeout="15s"/>
> </operations>
> <meta_attributes id="rsc_asterisk_MetaAttrs">
> <nvpair id="rsc_asterisk_MetaAttrTargetRole" name="target-role"
> value="Started"/>
> </meta_attributes>
> </primitive>
> </group>
> </resources>
> <constraints>
> <rsc_location id="cliPreferOanRscGroup" rsc="oanRscGroup">
> <rule id="cliPreferRuleOanRscGroup" score="INFINITY"
> boolean-op="and">
> <expression id="cliPreferExprOanRscGroup" attribute="#uname"
> operation="eq" value="oan-master" type="string"/>
> </rule>
> </rsc_location>
> </constraints>
>
>
>
> It is confusing for me that this error leads into the status section of the
> cib because of its name "rscIpaddr2_monitor_0":
>
> ...
> <node_state id="392d5983-173c-41f9-9746-16c9000e7e3e"
> uname="oan-master" ha="active" in_ccm="true" crmd="online" join="member"
> crm-debug-origin="do_update_resource" expected="member" shutdown="0">
> <transient_attributes id="392d5983-173c-41f9-9746-16c9000e7e3e">
> <instance_attributes
> id="status-392d5983-173c-41f9-9746-16c9000e7e3e">
> <nvpair
> id="status-392d5983-173c-41f9-9746-16c9000e7e3e-probe_complete"
> name="probe_complete" value="true"/>
> </instance_attributes>
> </transient_attributes>
> <lrm id="392d5983-173c-41f9-9746-16c9000e7e3e">
> <lrm_resources>
> <lrm_resource id="rscIpaddr2" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="rscIpaddr2_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
> transition-key="7:3:7:8c2b1586-1818-4141-a65d-10ab8448c56a"
> transition-magic="0:2;7:3:7:8c2b1586-1818-4141-a65d-10ab8448c56a"
> call-id="2" rc-code="2" op-status="0" interval="0" last-run="1254990722"
> last-rc-change="1254990722" exec-time="60" queue-time="0"
> op-digest="07737dce74cd847dd179fca525414a86"/>
> </lrm_resource>
> ...
>
>
> What is a "lrm_rsc_op"?
>
> Regards,
hi,
the resource rscIpaddr2 as defined above starts find in my cluster. Please check
in your log files why the resource agent returns the error code 2 (rc-
code="2"). Please search your logs for "lrm.*resIpaddr2". The logs contains
the output of the agent. Especially search for "ERROR".
The lrm ist the local resoure manager that manages resources locally on a
node. Ths daemon gets its orders from the cluster.
Greetings,
--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75
mail: misch at multinet.de
web: www.multinet.de
Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens
---
PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
More information about the Linux-HA
mailing list