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

Francis SOUYRI francis.souyri at apec.fr
Thu Aug 29 09:32:28 UTC 2013


Hello,

Below the result of the scoreshow script 
(https://github.com/ClusterLabs/pacemaker/blob/master/extra/showscores.sh) 
and in attachment the output of "pcs config"

drbd ocf:redhat:drbd.sh
Filesystem: ocf:heartbeat:Filesystem
IPaddr2: ocf:heartbeat:Ipaddr2
ping: ocf:pacemaker:ping

# ./scoreshow
Resource          Score      Node          Stickiness #Fail 
Migration-Threshold
drbd_dhcpd        200       noeud1.apec.fr 100        0
drbd_dhcpd        -INFINITY noeud2.apec.fr 100        0
drbd_named        200       noeud1.apec.fr 100        0
drbd_named2       200       noeud2.apec.fr 100        0
drbd_named2       -INFINITY noeud1.apec.fr 100        0
drbd_named        -INFINITY noeud2.apec.fr 100        0
drbd_samba        200       noeud2.apec.fr 100        0
drbd_samba        -INFINITY noeud1.apec.fr 100        0
Filesystem_dhcpd  100       noeud1.apec.fr 100        0
Filesystem_dhcpd  -INFINITY noeud2.apec.fr 100        0
Filesystem_named  100       noeud1.apec.fr 100        0
Filesystem_named2 100       noeud2.apec.fr 100        0
Filesystem_named2 -INFINITY noeud1.apec.fr 100        0
Filesystem_named  -INFINITY noeud2.apec.fr 100        0
Filesystem_samba  100       noeud2.apec.fr 100        0
Filesystem_samba  -INFINITY noeud1.apec.fr 100        0
IPaddr2_dhcpd     0         noeud2.apec.fr 100        0
IPaddr2_dhcpd     350       noeud1.apec.fr 100        0
IPaddr2_named     0         noeud2.apec.fr 100        0
IPaddr2_named2    0         noeud1.apec.fr 100        0
IPaddr2_named2    350       noeud2.apec.fr 100        0
IPaddr2_named     350       noeud1.apec.fr 100        0
IPaddr2_samba     0         noeud1.apec.fr 100        0
IPaddr2_samba     350       noeud2.apec.fr 100        0
ping-gateway:0    100       noeud2.apec.fr 100        0
ping-gateway:0    -INFINITY noeud1.apec.fr 100        0
ping-gateway:1    0         noeud2.apec.fr 100        0
ping-gateway:1    100       noeud1.apec.fr 100        0

Best regards.

Francis

On 08/29/2013 10:49 AM, Francis SOUYRI wrote:
> Hello Emmanuel,
>
> Yes I think also but why... that the question, I checked the Net for
> information about how the score is calculated without success.
>
> I retrieved a "schoreshow" script but I do not understand the result.
>
> Best regards.
>
> Francis
>
> On 08/29/2013 10:32 AM, emmanuel segura wrote:
>> I think your score is wrong in your rule expression
>>
>>
>> 2013/8/29 Francis SOUYRI <francis.souyri at apec.fr
>> <mailto:francis.souyri at apec.fr>>
>>
>>      Hello,
>>
>>      I have a corosync/pacemaker with 2 nodes and 2 nets by nodes,
>>      192.168.1.0/24 <http://192.168.1.0/24> for cluster access,
>>      10.1.1.0/24 <http://10.1.1.0/24> for drbd in bond, both used by
>>      corosync.
>>      I try to used ocf:pacemaker:ping to monitor the 192.168.1.0/24
>>      <http://192.168.1.0/24> I have the configuration below, but when I
>>      remove the cable of the noeud1 the named group resource do not
>>      migrate to noeud2.
>>
>>      When I used these command "crm_attribute -G -t status -N  -n pingd"
>>      I have this.
>>
>>      Could not map uname=-n to a UUID: The object/attribute does not exist
>>      scope=status   value=(null)
>>      Error performing operation: cib object missing
>>
>>      ##### CONFIG
>>      ...
>>             <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="100"/>
>>                 </instance_attributes>
>>               </primitive>
>>             </clone>
>>           </resources>
>>           <constraints>
>>             <rsc_location id="location-named-noeud1.__apec.fr-50"
>>      node="noeud1.apec.fr <http://noeud1.apec.fr>" rsc="named" score="50"/>
>>             <rsc_location id="location-dhcpd-noeud1.__apec.fr-50"
>>      node="noeud1.apec.fr <http://noeud1.apec.fr>" rsc="dhcpd" score="50"/>
>>             <rsc_location id="location-named2-noeud1.__apec.fr-50"
>>      node="noeud1.apec.fr <http://noeud1.apec.fr>" rsc="named2" score="50"/>
>>             <rsc_location id="location-samba-noeud1.__apec.fr-50"
>>      node="noeud1.apec.fr <http://noeud1.apec.fr>" rsc="samba" 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>
>>           </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>
>>      ....
>>      ##### END CONFIG
>>
>>      Best regards.
>>
>>      Francis
>>
>>      _________________________________________________
>>      Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>      <mailto:Pacemaker at oss.clusterlabs.org>
>>      http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
>>      <http://oss.clusterlabs.org/mailman/listinfo/pacemaker>
>>
>>      Project Home: http://www.clusterlabs.org
>>      Getting started:
>>      http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
>>      <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>>      Bugs: http://bugs.clusterlabs.org
>>
>>
>>
>>
>> --
>> esta es mi vida e me la vivo hasta que dios quiera
>
>
> _______________________________________________
> 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
>
>

-------------- next part --------------
# pcs config
Corosync Nodes:
 10.1.1.1 10.1.1.2 
Pacemaker Nodes:
 noeud1.apec.fr noeud2.apec.fr 

Resources: 
 Group: named
  Resource: IPaddr2_named (type=IPaddr2 class=ocf provider=heartbeat)
   Attributes: ip=192.168.1.250 cidr_netmask=24 
   Operations: monitor interval=5s timeout=5s
  Resource: drbd_named (type=drbd.sh class=ocf provider=redhat)
   Attributes: resource=named 
   Operations: monitor interval=120s timeout=60s
  Resource: Filesystem_named (type=Filesystem class=ocf provider=heartbeat)
   Attributes: device=/dev/drbd0 directory=/named fstype=ext4 interval=120s timeout=60s 
   Operations: monitor interval=120s timeout=60s
 Group: dhcpd
  Resource: IPaddr2_dhcpd (type=IPaddr2 class=ocf provider=heartbeat)
   Attributes: ip=192.168.1.252 cidr_netmask=24 
   Operations: monitor interval=5s timeout=5
  Resource: drbd_dhcpd (type=drbd.sh class=ocf provider=redhat)
   Attributes: resource=dhcpd 
   Operations: monitor interval=120s timeout=60s
  Resource: Filesystem_dhcpd (type=Filesystem class=ocf provider=heartbeat)
   Attributes: device=/dev/drbd1 directory=/dhcpd fstype=ext4 interval=120s timeout=60s 
   Operations: monitor interval=120s timeout=60s
 Group: named2
  Resource: IPaddr2_named2 (type=IPaddr2 class=ocf provider=heartbeat)
   Attributes: ip=192.168.1.251 cidr_netmask=24 
   Operations: monitor interval=5s timeout=5s
  Resource: drbd_named2 (type=drbd.sh class=ocf provider=redhat)
   Attributes: resource=named2 
   Operations: monitor interval=120s timeout=60s
  Resource: Filesystem_named2 (type=Filesystem class=ocf provider=heartbeat)
   Attributes: device=/dev/drbd2 directory=/named2 fstype=ext4 interval=120s timeout=60s 
   Operations: monitor interval=120s timeout=60s
 Group: samba
  Resource: IPaddr2_samba (type=IPaddr2 class=ocf provider=heartbeat)
   Attributes: ip=192.168.1.249 cidr_netmask=24 
   Operations: monitor interval=5s timeout=5s
  Resource: drbd_samba (type=drbd.sh class=ocf provider=redhat)
   Attributes: resource=samba interval=120s timeout=60s 
   Operations: monitor interval=60s
  Resource: Filesystem_samba (type=Filesystem class=ocf provider=heartbeat)
   Attributes: device=/dev/drbd3 directory=/samba fstype=ext4 interval=120s timeout=60s 
   Operations: monitor interval=120s timeout=60s
 Clone: ping-gateway-clone
  Resource: ping-gateway (type=ping class=ocf provider=pacemaker)
   Attributes: host_list=192.168.1.1 multiplier=100 

Location Constraints:
  Resource: named2
    Enabled on: noeud2.apec.fr (score:50)
  Resource: named
    Enabled on: noeud1.apec.fr (score:50)
  Resource: samba
    Enabled on: noeud2.apec.fr (score:50)
  Resource: dhcpd
    Enabled on: noeud1.apec.fr (score:50)
Ordering Constraints:
Colocation Constraints:

Cluster Properties:
 dc-version: 1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff
 cluster-infrastructure: corosync
 stonith-enabled: false
 last-lrm-refresh: 1377611485



More information about the Pacemaker mailing list