[Pacemaker] Bug in ptest -s for promotion scores?

Andrew Beekhof andrew at beekhof.net
Wed Jan 19 09:42:12 UTC 2011


Might be too old, it was quite recent

On Wed, Jan 19, 2011 at 10:37 AM, Michael Schwartzkopff
<misch at clusterbau.com> wrote:
> On Wednesday 19 January 2011 09:52:46 Andrew Beekhof wrote:
>> On Wed, Jan 19, 2011 at 9:37 AM, Michael Schwartzkopff
>>
>> <misch at clusterbau.com> wrote:
>> > Hi,
>> >
>> > I have pacemaker-1.0.10 on opensuse11.3 from the clusterlabs repo
>> > installed.
>> >
>> > When I have a ms DRBD resource with a filesystem depending on the master
>> > state of the DRBD and look at the scores I get:
>> >
>> > # ptest -sL
>> > (...)
>> > resDRBD:0 promotion score on hakurs27: 10020
>> > resDRBD:1 promotion score on hakurs28: 10000
>> > resDRBD:0 promotion score on hakurs27: 1000000
>> > resDRBD:1 promotion score on hakurs28: -1000000
>> > (...)
>> >
>> > please note that lines 1 and 3 are identical. also lines 2 and 4 a re
>> > identical. So does resDRBD:0 get 10020 points or inf? And what would be
>> > the promotion score of resDRBD:0 on node hakurs28?
>> >
>> > Anybody with a good explanation?
>>
>> For technical reasons the placement algorithm in 1.0 needs to be
>> re-executed under some conditions (I forget exactly which).  What
>> you're see is the "scores" from that recomputation.  The new scores
>> are +/-infinity because we've already been through it once.
>>
>> Basically, the first scores are the "real" ones.
>>
>> Pretty sure I removed this from 1.1
>
> hi,
>
> I moves to opensuse's pacemaker-1.1.2. Same result:
>
> # ptest -sL
> (...)
> resDRBD:1 promotion score on hakurs07: 10000
> resDRBD:0 promotion score on hakurs08: 10000
> resDRBD:1 promotion score on hakurs07: INFINITY
> resDRBD:0 promotion score on hakurs08: -INFINITY
>
> shouldn't it be
>
> resDRBD:1 ... hakurs07
> resDRBD:0 ... hakurs07
> resDRBD:1 ... hakurs08
> resDRBD:0 ... hakurs08
>
> ?
>
> --
> Dr. Michael Schwartzkopff
> Guardinistr. 63
> 81375 München
>
> Tel: (0163) 172 50 98
>
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>



More information about the Pacemaker mailing list