[Linux-HA] crm_abort: get_lrm_resource: Triggered non-fatal assert at lrm.c:864

Andrew Beekhof beekhof at gmail.com
Fri Mar 2 02:25:57 MST 2007


On 3/2/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> On 3/2/07, Pavol Gono <palo.gono at gmail.com> wrote:
> > Hi
> >
> > The same assert can be triggered in much simpler way on two-node
> > cluster with 3 resources (see attachments). I am using dev sources,
> > revision 10235 (CRM Hg Version: 07cf8b898031+ tip). Currently I have
>
> cool - thanks!
> i'll investigate now
>
> > HB with applied patch - quickier crm_resource, non-reloadable Dummy
> > resource - not important things.
> >
> > There is also another assert possible - simply execute crm_resource
> > -C. I think error message without assert is more appropriate :)
>
> possibly :-)
>

this patch should do the trick:

diff -r 7b2f09146e91 crm/crmd/lrm.c
--- a/crm/crmd/lrm.c    Fri Mar 02 09:05:30 2007 +0100
+++ b/crm/crmd/lrm.c    Fri Mar 02 10:25:19 2007 +0100
@@ -975,10 +975,12 @@ do_lrm_invoke(long long action,
                CRM_CHECK(xml_rsc != NULL, return I_NULL);

                /* only the first 16 chars are used by the LRM */
-
-               params  = find_xml_node(input->xml, XML_TAG_ATTRS,TRUE);
+               params  = find_xml_node(input->xml, XML_TAG_ATTRS, TRUE);

                if(safe_str_eq(operation, CRMD_ACTION_STOP)) {
+                       create_rsc = FALSE;
+
+               } else if(safe_str_eq(operation, CRMD_ACTION_DELETE)) {
                        create_rsc = FALSE;
                }


More information about the Linux-HA mailing list