[Linux-ha-dev] Ordering of OCF Start, Stop and Monitor actions

Doug Knight dknight at wsi.com
Fri Mar 30 09:15:55 MDT 2007


I've done some more looking at the cib_attrs.c module find_attr_details
function, and it seems that the call to find_xml_children filtering by
node eventually finds a match (match_found = 1 in
xml.c/find_xml_children) terminating the recursive search. Later in the
module, the call to find_xml_children filtering by name gets a match but
continues to search. I never see the "search by set:" in the debug log,
nor the printf I've placed in my version right after the call to
find_xml_children. In fact, it seems that somehow find_xml_children
loops within itself, though I must really be missing something there.

Doug

On Fri, 2007-03-30 at 08:20 -0400, Doug Knight wrote:

> Andrew, FYI, the one I ran has some debug statements in it that I put
> in there. Let me know if you want cleaner output...
> 
> Doug
> On Fri, 2007-03-30 at 07:44 -0400, Doug Knight wrote:
> 
> > Hi Andrew,
> > I'll get to this today. I've been digging through some of the
> > source, putting in some additional logging, etc, just to see where
> > the problem occurs. 
> > 
> > Thanks,
> > Doug
> > 
> > On Fri, 2007-03-30 at 10:32 +0200, Andrew Beekhof wrote:  
> > 
> > > On 3/29/07, Doug Knight <dknight at wsi.com> wrote:
> > > >
> > > >  Results: Using the dev version or crm_master I still spin at the top of the
> > > > CPU stack. What's next?
> > > 
> > > probably time to log a bug...
> > > 
> > > can you include the logs of the crm_master command when you add
> > >    -VVVVVVVV
> > > (an insance amount of logging) to your normal command line
> > > 
> > > and your current CIB please
> > > 
> > > >
> > > >  Doug
> > > >
> > > >
> > > >  On Thu, 2007-03-29 at 10:06 -0400, Doug Knight wrote:
> > > >
> > > >  OK, ConfigureMe make is complete. As when I built the baseline 2.0.8, I had
> > > > two compile errors, and had to make some minor source code mods (see
> > > > attached error message and file diffs). Not sure if this is related or not.
> > > > I've done a make install in the crm/admin directory to replace the
> > > > crm_master used by the system. I'll test that out in a bit.
> > > >
> > > >  Doug
> > > >
> > > >  On Thu, 2007-03-29 at 15:38 +0200, Andrew Beekhof wrote:
> > > >  On 3/29/07, Doug Knight <dknight at wsi.com> wrote:
> > > > >
> > > > > I went ahead and installed via RPM automake, autoconf, and libtool, even
> > > > > though they were not needed for the 2.0.8 baseline build (I believe
> > > > libtool
> > > > > at least may have been installed previously). ConfigureMe bootstrap ran
> > > > > fine. From the output I gather it includes the equivalent of the
> > > > ConfigureMe
> > > > > configure run, and now I just need to do the make?
> > > >
> > > > right
> > > >
> > > > >
> > > > > Doug
> > > > >
> > > > > On Thu, 2007-03-29 at 09:23 -0400, Doug Knight wrote:
> > > > >
> > > > > OK, Tried that, no luck. It still complains about libtool, autoconf, and
> > > > > automake. When I copy over the same basic files from the 2.0.8 directory,
> > > > > bootstrap still does not work, but ConfigureMe configure does (at least to
> > > > > the point where it starts looking for the Makefile.in files).
> > > > >
> > > > > Doug
> > > > >
> > > > > On Thu, 2007-03-29 at 09:50 +0200, Andrew Beekhof wrote:
> > > > > pretty sure you need:
> > > > > ./ConfigureMe bootstrap
> > > > >
> > > > > On 3/28/07, Doug Knight <dknight at wsi.com> wrote:
> > > > > >
> > > > > > Alan and Lars,
> > > > > > After much effort, I have had no success in building from the mercurial
> > > > > > version. Here's what I tried, and since this is the first time I've
> > > > tried
> > > > > to
> > > > > > build a dev version, maybe you can see where I'm going wrong:
> > > > > >
> > > > > > Downloaded tar from hg.linux-ha.org/dev
> > > > > > Unpacked it in a subdirectory to my root account, HA
> > > > > > Attempted a quick ConfigureMe configure, got errors that it couldn't
> > > > find
> > > > > > libtool, automake, autoconf
> > > > > > Did a side-by-side comparison to the HA 2.0.8 I built successfully and
> > > > am
> > > > > > running with, found no libltdl.tar or libltdl directory under the dev
> > > > > > version. Copied these from my original stable release tar into the
> > > > > directory
> > > > > > structure for the dev version.
> > > > > > Ran ConfigureMe configure, which then complained about all the
> > > > Makefile.in
> > > > > > files missing. Copied those over as well from the side-by-side. Also
> > > > > pulled
> > > > > > include/ha_config.h.in and linux-ha/config.h.in since it complained
> > > > about
> > > > > > those missing too.
> > > > > > ConfigureMe configure runs to completion
> > > > > > ConfigureMe make exits with the following:
> > > > > >
> > > > > > In file included from base64.c:18:
> > > > > > ../../include/heartbeat.h:38:23: error: hb_config.h: No
> > > > > > such file or directory
> > > > > > ../../include/heartbeat.h:98:1: error: "HB_RC_DIR" redefined
> > > > > > In file included from ../../include/lha_internal.h:37,
> > > > > > from base64.c:17:
> > > > > > ../../linux-ha/config.h:504:1: error: this is the location of the
> > > > previous
> > > > > > definition
> > > > > > In file included from base64.c:18:
> > > > > > ../../include/heartbeat.h:102:1: error: "HALIB"
> > > > redefined
> > > > > > <command line>:1:1: error: this is the location of the previous
> > > > definition
> > > > > > gmake[2]: *** [base64.lo] Error 1
> > > > > > gmake[2]: Leaving directory
> > > > > > `/root/HA/Heartbeat-Dev-829e377e00bd/lib/clplumbing'
> > > > > > gmake[1]: *** [all-recursive] Error 1
> > > > > > gmake[1]: Leaving directory
> > > > > > `/root/HA/Heartbeat-Dev-829e377e00bd/lib'
> > > > > > gmake: *** [all-recursive] Error 1
> > > > > >
> > > > > >
> > > > > > Any ideas?
> > > > > >
> > > > > > Doug
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Sun, 2007-03-25 at 16:06 -0600, Alan Robertson wrote:
> > > > > > Doug Knight wrote:
> > > > > > > Got it. The attached file contains the strace from the second attempt
> > > > by
> > > > > > > heartbeat to start the resource up as master, right up until it was
> > > > > > > killed. The resource already showed failed on the gui. I zipped it up
> > > > > > > using gzip.
> > > > > >
> > > > > > Lars asked a good question as well...
> > > > > >
> > > > > > Could you kindly reproduce this with the current Mercurial tip version?
> > > > > >
> > > > > > Thanks1
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________________
> > > > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > > > Home Page: http://linux-ha.org/
> > > > > >
> > > > > >
> > > > > _______________________________________________________
> > > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > > Home Page: http://linux-ha.org/
> > > > >
> > > > >
> > > > > _______________________________________________________
> > > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > > Home Page: http://linux-ha.org/
> > > > >
> > > > >
> > > > > _______________________________________________________
> > > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > > Home Page: http://linux-ha.org/
> > > > >
> > > > >
> > > > _______________________________________________________
> > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > Home Page: http://linux-ha.org/
> > > >
> > > >
> > > >  _______________________________________________________
> > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > Home Page: http://linux-ha.org/
> > > >
> > > >
> > > > _______________________________________________________
> > > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > > Home Page: http://linux-ha.org/
> > > >
> > > >
> > > _______________________________________________________
> > > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > > Home Page: http://linux-ha.org/
> > > 
> > 
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> 
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20070330/2b67fa5d/attachment.html


More information about the Linux-HA-Dev mailing list