Whoops - I was mistaken (I assumed! - changed both ordering and colocations and 
didn't try each independently first!)... 

It is the colocation constraint that is the problem not the ordering. Here is 
those statements: 

colocation c_lsb_arpwatch_on_fs_arpwatch_on_drbd_arpwatch_master inf: 
p_lsb_arpwatch p_fs_arpwatch ms_drbd_arpwatch:Master 
Stop stops both lsb and fs 

colocation c_fs_arpwatch_on_drbd_arpwatch_master inf: p_fs_arpwatch 
ms_drbd_arpwatch:Master 
colocation c_lsb_arpwatch_on_fs_arpwatch inf: p_lsb_arpwatch p_fs_arpwatch 
Stop stops only lsb. 

Same questions though... something wrong with my statement logic or a bug? 

Jake 

----- Original Message -----

> From: "Jake Smith" <[email protected]>
> To: [email protected]
> Sent: Wednesday, November 2, 2011 11:27:55 AM
> Subject: [Ubuntu-ha] Issue after upgrading to the new packages with
> ordering contraints

> After upgrading to the latest Ubuntu-HA packages a script I had
> stopped working correctly. I tracked down the issue and fixed it but
> now I'm not sure whether it's a bug or I don't know how to properly
> write ordering constraints.

> If I should be posting this to the Pacemaker list instead please let
> me know!

> I have a script that stops an LSB resource, manipulates some of it's
> files, then restarts the resource. When it executes the stop it not
> only stopped the LSB resource but also the underlying file system
> resource (but not the DRBD resource under that). Prior to updating
> it only stopped the LSB resource. I modified my ordering constraints
> around the LSB and now it works as expected. Here is the before and
> after:

> Command in script: crm resource stop p_lsb_arpwatch

> Before:
> order o_drbd_arpwatch_master_before_fs_arpwatch_before_lsb_arpwatch
> inf: ms_drbd_arpwatch:promote p_fs_arpwatch:start
> p_lsb_arpwatch:start
> Command results in p_lsb_arpwatch and p_fs_arpwatch stopping

> After:
> order o_drbd_arpwatch_master_before_fs_arpwatch inf:
> ms_drbd_arpwatch:promote p_fs_arpwatch:start
> order o_fs_arpwatch_before_lsb_arpwatch inf: p_fs_arpwatch:start
> p_lsb_arpwatch:start
> Command results in only p_lsb_arpwatch stopping

> Is this a bug or do I not understand multi-resource ordering
> constraints properly?

> Thanks!

> Jake Smith
> Network Admin
> Argotec, Inc.
> _______________________________________________
> Mailing list: https://launchpad.net/~ubuntu-ha
> Post to : [email protected]
> Unsubscribe : https://launchpad.net/~ubuntu-ha
> More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help   : https://help.launchpad.net/ListHelp

Reply via email to