[Linux-HA] heartbeat ignoring my rsc_order directive

Andrew Beekhof beekhof at gmail.com
Thu Oct 11 00:07:36 MDT 2007


On 10/10/07, Raoul Bhatia [IPAX] <r.bhatia at ipax.at> wrote:
> Andrew Beekhof wrote:
> > On 10/10/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> >> On 10/10/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> >>> On 10/9/07, Raoul Bhatia [IPAX] <r.bhatia at ipax.at> wrote:
> >>>> hi,
> >>>>
> >>>> during my tests with clustered ips+drbd+ocfs2+services, i encountered a
> >>>> strange problem.
> >>>>
> >>>> i have a drbd clone:
> >>>>>   <master_slave id="ms_drbd_www">
> >>>>>     <primitive class="ocf" id="drbd_www" provider="heartbeat" type="drbd">
> >>>>>       ...
> >>>>>     </primitive>
> >>>>>   </master_slave>
> >>>> with the rsc_order/rsc_colocation rules:
> >>>>
> >>>>>  <rsc_order id="drbd_before_ocfs2_www" action="start" from="clone_ocfs2_www" type="after" to_action="promote" to="ms_drbd_www" />
> >>>>>  <rsc_colocation id="colo_ddrbd_ocfs2_www" to="ms_drbd_www"   to_role="master" from="clone_ocfs2_www" score="INFINITY"/>
> >>>> any ideas, why ocfs2_www is started before drbd_www?
> >>> alas its a bug
> >>> and one i'm not quite sure how to fix yet... stay tuned
> >>>
> >> ok, the PE now does the correct thing for your input... the trick now
> >> is to make it pass all the regression tests as well
> >>
> >
> > done
> >
> > http://hg.beekhof.net/lha/crm-dev/rev/0c14cfe57dd9
>
> don't know whether i should post this on the devel mailinglist, but i am
> getting a compile error about "action->implied_by_stonith = TRUE;" in
> crm/pengine/native.c. perhaps it is missing in
> include/crm/pengine/status.h. ?

nod, i missed that file when committing

diff -r 0c14cfe57dd9 include/crm/pengine/status.h
--- a/include/crm/pengine/status.h      Wed Oct 10 13:52:23 2007 +0200
+++ b/include/crm/pengine/status.h      Thu Oct 11 08:06:45 2007 +0200
@@ -185,6 +186,7 @@ struct action_s
                gboolean runnable;
                gboolean optional;
                gboolean failure_is_fatal;
+               gboolean implied_by_stonith;
                gboolean allow_reload_conversion;

                enum rsc_start_requirement needs;



More information about the Linux-HA mailing list