[Pacemaker] constraints not working

Andrew Beekhof andrew at beekhof.net
Tue Mar 18 00:40:58 UTC 2014


On 14 Mar 2014, at 2:23 pm, Alex Samad - Yieldbroker <Alex.Samad at yieldbroker.com> wrote:

> I have setup constraints to have orig and clone resources on separate boxes, but after rebooting devrp1 all the resources are staying on devrp2

Can you attach the result of 'cibadmin -Ql' when the cluster is in this state please?

> 
> 
> 
> 
> pcs config
> Cluster Name: ybrp
> Corosync Nodes:
> 
> Pacemaker Nodes:
> devrp1 devrp2
> 
> Resources:
> Clone: ybrpip-clone
>  Meta Attrs: globally-unique=true clone-max=2 clone-node-max=2
>  Resource: ybrpip (class=ocf provider=heartbeat type=IPaddr2)
>   Attributes: ip=10.172.214.50 cidr_netmask=24 nic=eth0 clusterip_hash=sourceip-sourceport
>   Operations: start interval=0s timeout=60s (ybrpip-start-interval-0s)
>               monitor interval=5s timeout=20s (ybrpip-monitor-interval-5s)
>               stop interval=0s timeout=60s (ybrpip-stop-interval-0s)
> Clone: ybrpstat-clone
>  Meta Attrs: globally-unique=false clone-max=2 clone-node-max=1
>  Resource: ybrpstat (class=ocf provider=yb type=ybrp)
>   Operations: start interval=10s timeout=60s (ybrpstat-start-interval-10s)
>               monitor interval=5s timeout=20s (ybrpstat-monitor-interval-5s)
>               stop interval=10s timeout=60s (ybrpstat-stop-interval-10s)
> 
> Stonith Devices:
> Fencing Levels:
> 
> Location Constraints:
>  Resource: ybrpip
>    Enabled on: devrp1 (score:INFINITY) (id:location-ybrpip-devrp1-INFINITY)
>  Resource: ybrpip-clone
>    Enabled on: devrp2 (score:INFINITY) (id:location-ybrpip-clone-devrp2-INFINITY)
> Ordering Constraints:
>  start ybrpstat then start ybrpip (Mandatory) (id:order-ybrpstat-ybrpip-mandatory)
>  start ybrpstat-clone then start ybrpip-clone (Mandatory) (id:order-ybrpstat-clone-ybrpip-clone-mandatory)
> Colocation Constraints:
>  ybrpip with ybrpstat (INFINITY) (id:colocation-ybrpip-ybrpstat-INFINITY)
>  ybrpip-clone with ybrpstat-clone (INFINITY) (id:colocation-ybrpip-clone-ybrpstat-clone-INFINITY)
> 
> Cluster Properties:
> cluster-infrastructure: cman
> dc-version: 1.1.10-14.el6-368c726
> last-lrm-refresh: 1394682724
> no-quorum-policy: ignore
> stonith-enabled: false
> 
> 
> 
> 
> pcs status
> Cluster name: ybrp
> Last updated: Fri Mar 14 13:51:42 2014
> Last change: Thu Mar 13 16:44:24 2014 via cibadmin on devrp1
> Stack: cman
> Current DC: devrp2 - partition with quorum
> Version: 1.1.10-14.el6-368c726
> 2 Nodes configured
> 4 Resources configured
> 
> 
> Online: [ devrp1 devrp2 ]
> 
> Full list of resources:
> 
> Clone Set: ybrpip-clone [ybrpip] (unique)
>     ybrpip:0   (ocf::heartbeat:IPaddr2):       Started devrp2
>     ybrpip:1   (ocf::heartbeat:IPaddr2):       Started devrp2
> Clone Set: ybrpstat-clone [ybrpstat]
>     Started: [ devrp1 devrp2 ]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140318/489b0ed5/attachment-0004.sig>


More information about the Pacemaker mailing list