[Pacemaker] Error when managing network with ping/pingd.

Francis SOUYRI francis.souyri at apec.fr
Wed Sep 18 14:56:02 UTC 2013


Hello,

I updated ping-gateway like this but nothing change...


         <primitive class="ocf" id="ping-gateway" provider="pacemaker" 
type="ping">
           <instance_attributes id="ping-gateway-instance_attributes">
             <nvpair id="ping-gateway-instance_attributes-host_list" 
name="host_list" value="192.168.1.1"/>
             <nvpair id="ping-gateway-instance_attributes-multiplier" 
name="multiplier" value="1000"/>
             <nvpair id="ping-gateway-instance_attributes-depth" 
name="depth" value="0"/>
             <nvpair id="ping-gateway-instance_attributes-timeout" 
name="timeout" value="20s"/>
             <nvpair id="ping-gateway-instance_attributes-interval" 
name="interval" value="10"/>
             <nvpair id="ping-gateway-instance_attributes-debug" 
name="debug" value="true"/>
           </instance_attributes>
         </primitive>


Best regards.

Francis

On 09/18/2013 04:26 PM, Francis SOUYRI wrote:
> Hello,
>
>          I take an example from Internet without monitor... Do you have a
> suggestion ?
>
> Best regards.
>
> Francis
> On 09/18/2013 03:54 PM, Andreas Kurz wrote:
>> On 2013-09-18 15:44, Francis SOUYRI wrote:
>>> Hello Andreas,
>>>
>>> I do not see what is wrong in my config.
>>
>> You have no "monitor" operation defined for your "ping-gateway"
>> resource, so in fact it does never execute the connectivity check but
>> only updates the "pingd" attriute value once on start.
>>
>> Regards,
>> Andreas
>>
>> --
>> Need help with Pacemaker?
>> http://www.hastexo.com/now
>>
>>
>>>
>>> <cib epoch="122" num_updates="0" admin_epoch="0"
>>> validate-with="pacemaker-1.2" crm_feature_set="3.0.6"
>>> update-origin="noeud2.apec.fr" update-client="cibadmin"
>>> cib-last-written="Sat Sep 14 10:53:58 2013" have-quorum="1" dc-uuid="2">
>>>     <configuration>
>>>       <crm_config>
>>>         <cluster_property_set id="cib-bootstrap-options">
>>>           <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
>>> value="1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff"/>
>>>           <nvpair id="cib-bootstrap-options-cluster-infrastructure"
>>> name="cluster-infrastructure" value="corosync"/>
>>>           <nvpair id="cib-bootstrap-options-stonith-enabled"
>>> name="stonith-enabled" value="false"/>
>>>           <nvpair id="cib-bootstrap-options-last-lrm-refresh"
>>> name="last-lrm-refresh" value="1377611485"/>
>>>         </cluster_property_set>
>>>       </crm_config>
>>>       <nodes>
>>>         <node id="1" type="normal" uname="noeud1.apec.fr"/>
>>>         <node id="2" type="normal" uname="noeud2.apec.fr"/>
>>>       </nodes>
>>>       <resources>
>>>         <group id="named">
>>>           <primitive class="ocf" id="IPaddr2_named" provider="heartbeat"
>>> type="IPaddr2">
>>>             <instance_attributes id="IPaddr2_named-instance_attributes">
>>>               <nvpair id="IPaddr2_named-instance_attributes-ip" name="ip"
>>> value="192.168.1.250"/>
>>>               <nvpair id="IPaddr2_named-instance_attributes-cidr_netmask"
>>> name="cidr_netmask" value="24"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="IPaddr2_named-timeout-5s" interval="5s"
>>> name="monitor" timeout="5s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="drbd_named" provider="redhat"
>>> type="drbd.sh">
>>>             <instance_attributes id="drbd_named-instance_attributes">
>>>               <nvpair id="drbd_named-instance_attributes-resource"
>>> name="resource" value="named"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="drbd_named-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="Filesystem_named"
>>> provider="heartbeat" type="Filesystem">
>>>             <instance_attributes id="Filesystem_named-instance_attributes">
>>>               <nvpair id="Filesystem_named-instance_attributes-device"
>>> name="device" value="/dev/drbd0"/>
>>>               <nvpair id="Filesystem_named-instance_attributes-directory"
>>> name="directory" value="/named"/>
>>>               <nvpair id="Filesystem_named-instance_attributes-fstype"
>>> name="fstype" value="ext4"/>
>>>               <nvpair id="Filesystem_named-instance_attributes-interval"
>>> name="interval" value="120s"/>
>>>               <nvpair id="Filesystem_named-instance_attributes-timeout"
>>> name="timeout" value="60s"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="Filesystem_named-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>           <meta_attributes id="named-meta_attributes">
>>>             <nvpair id="named-meta_attributes-target-role"
>>> name="target-role" value="Started"/>
>>>           </meta_attributes>
>>>         </group>
>>>         <group id="dhcpd">
>>>           <primitive class="ocf" id="IPaddr2_dhcpd" provider="heartbeat"
>>> type="IPaddr2">
>>>             <instance_attributes id="IPaddr2_dhcpd-instance_attributes">
>>>               <nvpair id="IPaddr2_dhcpd-instance_attributes-ip" name="ip"
>>> value="192.168.1.252"/>
>>>               <nvpair id="IPaddr2_dhcpd-instance_attributes-cidr_netmask"
>>> name="cidr_netmask" value="24"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="IPaddr2_dhcpd-timeout-5" interval="5s"
>>> name="monitor" timeout="5"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="drbd_dhcpd" provider="redhat"
>>> type="drbd.sh">
>>>             <instance_attributes id="drbd_dhcpd-instance_attributes">
>>>               <nvpair id="drbd_dhcpd-instance_attributes-resource"
>>> name="resource" value="dhcpd"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="drbd_dhcpd-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="Filesystem_dhcpd"
>>> provider="heartbeat" type="Filesystem">
>>>             <instance_attributes id="Filesystem_dhcpd-instance_attributes">
>>>               <nvpair id="Filesystem_dhcpd-instance_attributes-device"
>>> name="device" value="/dev/drbd1"/>
>>>               <nvpair id="Filesystem_dhcpd-instance_attributes-directory"
>>> name="directory" value="/dhcpd"/>
>>>               <nvpair id="Filesystem_dhcpd-instance_attributes-fstype"
>>> name="fstype" value="ext4"/>
>>>               <nvpair id="Filesystem_dhcpd-instance_attributes-interval"
>>> name="interval" value="120s"/>
>>>               <nvpair id="Filesystem_dhcpd-instance_attributes-timeout"
>>> name="timeout" value="60s"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="Filesystem_dhcpd-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>           <meta_attributes id="dhcpd-meta_attributes">
>>>             <nvpair id="dhcpd-meta_attributes-target-role"
>>> name="target-role" value="Started"/>
>>>           </meta_attributes>
>>>         </group>
>>>         <group id="named2">
>>>           <primitive class="ocf" id="IPaddr2_named2" provider="heartbeat"
>>> type="IPaddr2">
>>>             <instance_attributes id="IPaddr2_named2-instance_attributes">
>>>               <nvpair id="IPaddr2_named2-instance_attributes-ip" name="ip"
>>> value="192.168.1.251"/>
>>>               <nvpair id="IPaddr2_named2-instance_attributes-cidr_netmask"
>>> name="cidr_netmask" value="24"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="IPaddr2_named2-timeout-5s" interval="5s"
>>> name="monitor" timeout="5s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="drbd_named2" provider="redhat"
>>> type="drbd.sh">
>>>             <instance_attributes id="drbd_named2-instance_attributes">
>>>               <nvpair id="drbd_named2-instance_attributes-resource"
>>> name="resource" value="named2"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="drbd_named2-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="Filesystem_named2"
>>> provider="heartbeat" type="Filesystem">
>>>             <instance_attributes id="Filesystem_named2-instance_attributes">
>>>               <nvpair id="Filesystem_named2-instance_attributes-device"
>>> name="device" value="/dev/drbd2"/>
>>>               <nvpair id="Filesystem_named2-instance_attributes-directory"
>>> name="directory" value="/named2"/>
>>>               <nvpair id="Filesystem_named2-instance_attributes-fstype"
>>> name="fstype" value="ext4"/>
>>>               <nvpair id="Filesystem_named2-instance_attributes-interval"
>>> name="interval" value="120s"/>
>>>               <nvpair id="Filesystem_named2-instance_attributes-timeout"
>>> name="timeout" value="60s"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="Filesystem_named2-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>         </group>
>>>         <group id="samba">
>>>           <meta_attributes id="samba-meta_attributes">
>>>             <nvpair id="samba-meta_attributes-target-role"
>>> name="target-role" value="Started"/>
>>>           </meta_attributes>
>>>           <primitive class="ocf" id="IPaddr2_samba" provider="heartbeat"
>>> type="IPaddr2">
>>>             <instance_attributes id="IPaddr2_samba-instance_attributes">
>>>               <nvpair id="IPaddr2_samba-instance_attributes-ip" name="ip"
>>> value="192.168.1.249"/>
>>>               <nvpair id="IPaddr2_samba-instance_attributes-cidr_netmask"
>>> name="cidr_netmask" value="24"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="IPaddr2_samba-timeout-5s" interval="5s"
>>> name="monitor" timeout="5s"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="drbd_samba" provider="redhat"
>>> type="drbd.sh">
>>>             <instance_attributes id="drbd_samba-instance_attributes">
>>>               <nvpair id="drbd_samba-instance_attributes-resource"
>>> name="resource" value="samba"/>
>>>               <nvpair id="drbd_samba-instance_attributes-interval"
>>> name="interval" value="120s"/>
>>>               <nvpair id="drbd_samba-instance_attributes-timeout"
>>> name="timeout" value="60s"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="drbd_samba-interval-60s" interval="60s"
>>> name="monitor"/>
>>>             </operations>
>>>           </primitive>
>>>           <primitive class="ocf" id="Filesystem_samba"
>>> provider="heartbeat" type="Filesystem">
>>>             <instance_attributes id="Filesystem_samba-instance_attributes">
>>>               <nvpair id="Filesystem_samba-instance_attributes-device"
>>> name="device" value="/dev/drbd3"/>
>>>               <nvpair id="Filesystem_samba-instance_attributes-directory"
>>> name="directory" value="/samba"/>
>>>               <nvpair id="Filesystem_samba-instance_attributes-fstype"
>>> name="fstype" value="ext4"/>
>>>               <nvpair id="Filesystem_samba-instance_attributes-interval"
>>> name="interval" value="120s"/>
>>>               <nvpair id="Filesystem_samba-instance_attributes-timeout"
>>> name="timeout" value="60s"/>
>>>             </instance_attributes>
>>>             <operations>
>>>               <op id="Filesystem_samba-timeout-60s" interval="120s"
>>> name="monitor" timeout="60s"/>
>>>             </operations>
>>>           </primitive>
>>>         </group>
>>>         <clone id="ping-gateway-clone">
>>>           <meta_attributes id="ping-gateway-clone-meta">
>>>             <nvpair id="ping-gateway-interleave" name="interleave"
>>> value="true"/>
>>>           </meta_attributes>
>>>           <primitive class="ocf" id="ping-gateway" provider="pacemaker"
>>> type="ping">
>>>             <instance_attributes id="ping-gateway-instance_attributes">
>>>               <nvpair id="ping-gateway-instance_attributes-host_list"
>>> name="host_list" value="192.168.1.1"/>
>>>               <nvpair id="ping-gateway-instance_attributes-multiplier"
>>> name="multiplier" value="1000"/>
>>>             </instance_attributes>
>>>           </primitive>
>>>         </clone>
>>>       </resources>
>>>       <constraints>
>>>         <rsc_location id="location-dhcpd-noeud1.apec.fr-50"
>>> node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>>         <rsc_location id="location-named2-noeud2.apec.fr-50"
>>> node="noeud2.apec.fr" rsc="named2" score="50"/>
>>>         <rsc_location id="location-samba-noeud2.apec.fr-50"
>>> node="noeud2.apec.fr" rsc="samba" score="50"/>
>>>         <rsc_location id="location-named-noeud1.apec.fr-50"
>>> node="noeud1.apec.fr" rsc="named" score="50"/>
>>>         <rsc_location id="pingnamed" rsc="named">
>>>           <rule id="pingnamed-rule" score-attribute="pingd">
>>>             <expression attribute="pingd" id="pingnamed-expression"
>>> operation="defined"/>
>>>           </rule>
>>>         </rsc_location>
>>>         <rsc_location id="pingnamed2" rsc="named2">
>>>           <rule id="pingnamed2-rule" score-attribute="pingd">
>>>             <expression attribute="pingd" id="pingnamed2-expression"
>>> operation="defined"/>
>>>           </rule>
>>>         </rsc_location>
>>>         <rsc_location id="pingdhcpd" rsc="dhcpd">
>>>           <rule id="pingdhcpd-rule" score-attribute="pingd">
>>>             <expression attribute="pingd" id="pingdhcpd-expression"
>>> operation="defined"/>
>>>           </rule>
>>>         </rsc_location>
>>>         <rsc_location id="pingsamba" rsc="samba">
>>>           <rule id="pingsamba-rule" score-attribute="pingd">
>>>             <expression attribute="pingd" id="pingsamba-expression"
>>> operation="defined"/>
>>>           </rule>
>>>         </rsc_location>
>>>       </constraints>
>>>       <rsc_defaults>
>>>         <meta_attributes id="rsc_defaults-options">
>>>           <nvpair id="rsc_defaults-options-resource-stickiness"
>>> name="resource-stickiness" value="100"/>
>>>         </meta_attributes>
>>>       </rsc_defaults>
>>>     </configuration>
>>> </cib>
>>>
>>> Best regards.
>>>
>>> Francis
>>>
>>>
>>> On 09/18/2013 11:00 AM, Andreas Kurz wrote:
>>>> On 2013-09-17 16:25, Francis SOUYRI wrote:
>>>>> Hello,
>>>>>
>>>>> Thank for your reply Andreas, I set the multiplier to 1000, cut the
>>>>> netword nothing append.
>>>>
>>>> Well, the ping resource-agent updates the value on every monitor event
>>>> .... looking again on your configuration, guess what operation is
>>>> missing? ;-)
>>>>
>>>> Regards,
>>>> Andreas
>>>>
>>>
>>>
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs: http://bugs.clusterlabs.org
>>
>>
>>
>>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>





More information about the Pacemaker mailing list