On Nov 3, 2010, at 7:24 PM, Alan Jones wrote:

> I running with Pacemaker 1.0.9.1 and Corosync 1.2.7.
> I have a simple config below where colocation seems to have the opposite 
> effect.
> Note that if you force myprim's location then mystateful's Master will
> colocate correctly.
> The command I use to force is: location myprim-loc myprim -inf:
> node-not-to-run-myprim
> My understanding is that the colocation rule for mystateful should
> apply to the location of myprim regardless of what rules placed myprim
> on that node.
> Is this a known bug in 1.0.9.1?
> Alan
> 
> primitive myprim ocf:pacemaker:Dummy
> primitive mystateful ocf:pacemaker:Stateful
> ms mystateful-ms mystateful meta master-max="1" master-node-max="1" \
>    clone-max="2" clone-node-max="1" notify="true"
> colocation mystateful-ms-loc inf: mystateful-ms:Master myprim
> 

For what it worth, it works as expected for me:

Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b

 myprim (ocf::pacemaker:Dummy): Started xen-11
 Master/Slave Set: mystateful-ms
     Masters: [ xen-11 ]
     Slaves: [ xen-12 ]


And after 
# crm configure location myprim-loc myprim -inf: xen-11

 myprim (ocf::pacemaker:Dummy): Started xen-12
 Master/Slave Set: mystateful-ms
     Masters: [ xen-12 ]
     Slaves: [ xen-11 ]

Vadym



_______________________________________________
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to