Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Re: v1.x -> v2.x stonith device external / segv

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


alanr at unix

Aug 8, 2007, 6:30 AM

Post #1 of 5 (489 views)
Permalink
Re: v1.x -> v2.x stonith device external / segv

Leroy van Logchem wrote:
> Hi all,
>
> 1)
> I'am trying to go from 1.2.5 to heartbeat 2.1.2-2.
> We used to run a script to handle our stonith device (due complex setup;
> 3 PSU's).
> I can't find the stonith device external, is there still a simple way?
>
> 2)
> stonith -h gives "Segmentation fault" on CentOS 5 x86_x64
> using the default rpm's from the extra repository.
> Signature:
> DSA/SHA1, Wed 01 Aug 2007 01:02:21 AM CEST, Key ID a8a447dce8562897
>
> ---
> Program received signal SIGSEGV, Segmentation fault.
> 0x00002aaaab33f280 in ?? ()
> (gdb) bt
> #0 0x00002aaaab33f280 in ?? ()
> #1 0x0000003c95e42b02 in g_slice_free1 () from /lib64/libglib-2.0.so.0
> #2 0x0000003c95e20ee4 in g_hash_table_remove () from
> /lib64/libglib-2.0.so.0
> #3 0x0000003c96603177 in DelPILPluginUniv () from /usr/lib64/libpils.so.1
> #4 0x0000003c96602ebb in ?? () from /usr/lib64/libpils.so.1
> #5 0x0000003c96603ccf in PILGetDebugLevel () from /usr/lib64/libpils.so.1
> #6 0x0000003c96604894 in PILLoadPlugin () from /usr/lib64/libpils.so.1
> #7 0x0000003c96603917 in PILGetDebugLevel () from /usr/lib64/libpils.so.1
> #8 0x0000003c96603a30 in PILGetDebugLevel () from /usr/lib64/libpils.so.1
> #9 0x0000003c96603c5f in PILGetDebugLevel () from /usr/lib64/libpils.so.1
> #10 0x0000003c96603d49 in PILIncrIFRefCount () from /usr/lib64/libpils.so.1
> #11 0x0000003c97e030b0 in stonith_delete () from /usr/lib64/libstonith.so.1
> #12 0x0000000000401527 in confhelp ()
> #13 0x0000000000401222 in usage ()
> #14 0x0000000000401c46 in main ()

Well, we spent a bit of time looking at this before the release went
out, and thought we had fixed it. In fact, is is fixed on SUSE Linux,
but obviously not really fixed :-(.

R2 external STONITH handling is much more sophisticated, and much
better. But, there is no separate external device, but it supports
external devices.

Could you take out a bugzilla for this?


--
Alan Robertson <alanr [at] unix>

"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


leroy.vanlogchem at wldelft

Aug 8, 2007, 6:54 AM

Post #2 of 5 (442 views)
Permalink
Re: v1.x -> v2.x stonith device external / segv [In reply to]

Alan Robertson wrote:
> Well, we spent a bit of time looking at this before the release went
> out, and thought we had fixed it. In fact, is is fixed on SUSE Linux,
> but obviously not really fixed :-(.
>
http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1678

> R2 external STONITH handling is much more sophisticated, and much
> better. But, there is no separate external device, but it supports
> external devices.
>
The 2cib converter translated this v1 line:
stonith_host * external foo /etc/ha.d/wti.pl

into:

---<SNIP>---
<primitive class="stonith" id="stonith_6" provider="heartbeat"
type="external">
<operations>
<op id="stonith_6_mon" interval="5s" name="monitor" prereq="nothing"
timeout="20s"/>
<op id="stonith_6_start" name="start" prereq="nothing" timeout="20s"/>
</operations>
<instance_attributes id="stonith_6_inst_attr">
<attributes>
<nvpair id="stonith_6_attr_2" name="ibmrsa" value="foo"/>
<nvpair id="stonith_6_attr_3" name="riloe" value="/etc/ha.d/wti.pl"/>
</attributes>
</instance_attributes>
</primitive>
---<SNIP>---

This looks futile, what would be the R2 way to use a script to handle
the stonith?


--
Leroy
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Aug 8, 2007, 8:24 AM

Post #3 of 5 (443 views)
Permalink
Re: Re: v1.x -> v2.x stonith device external / segv [In reply to]

On Wed, Aug 08, 2007 at 03:54:48PM +0200, Leroy van Logchem wrote:
> Alan Robertson wrote:
> >Well, we spent a bit of time looking at this before the release went
> >out, and thought we had fixed it. In fact, is is fixed on SUSE Linux,
> >but obviously not really fixed :-(.
> >
> http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1678
>
> >R2 external STONITH handling is much more sophisticated, and much
> >better. But, there is no separate external device, but it supports
> >external devices.
> >
> The 2cib converter translated this v1 line:
> stonith_host * external foo /etc/ha.d/wti.pl
>
> into:
>
> ---<SNIP>---
> <primitive class="stonith" id="stonith_6" provider="heartbeat"
> type="external">
> <operations>
> <op id="stonith_6_mon" interval="5s" name="monitor" prereq="nothing"
> timeout="20s"/>
> <op id="stonith_6_start" name="start" prereq="nothing" timeout="20s"/>
> </operations>
> <instance_attributes id="stonith_6_inst_attr">
> <attributes>
> <nvpair id="stonith_6_attr_2" name="ibmrsa" value="foo"/>
> <nvpair id="stonith_6_attr_3" name="riloe" value="/etc/ha.d/wti.pl"/>
> </attributes>
> </instance_attributes>
> </primitive>
> ---<SNIP>---
>
> This looks futile,

A very silly output ;-) It should have reported error (I'll fix
that), because your cf line should have been sth like:

stonith_host * external/foo /etc/ha.d/wti.pl

> what would be the R2 way to use a script to handle
> the stonith?

It's just a resource of the stonith class. Set attributes which
the stonith agent supports (get a list from "stonith -n -t
agent"). There is one example here
http://linux-ha.org/ConfiguringStonithPlugins

>
>
> --
> Leroy
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


alanr at unix

Aug 8, 2007, 9:36 AM

Post #4 of 5 (444 views)
Permalink
Re: v1.x -> v2.x stonith device external / segv [In reply to]

Leroy van Logchem wrote:
> Alan Robertson wrote:
>> Well, we spent a bit of time looking at this before the release went
>> out, and thought we had fixed it. In fact, is is fixed on SUSE Linux,
>> but obviously not really fixed :-(.
>>
> http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1678
>
>> R2 external STONITH handling is much more sophisticated, and much
>> better. But, there is no separate external device, but it supports
>> external devices.
>>
> The 2cib converter translated this v1 line:
> stonith_host * external foo /etc/ha.d/wti.pl
>
> into:
>
> ---<SNIP>---
> <primitive class="stonith" id="stonith_6" provider="heartbeat"
> type="external">
> <operations>
> <op id="stonith_6_mon" interval="5s" name="monitor" prereq="nothing"
> timeout="20s"/>
> <op id="stonith_6_start" name="start" prereq="nothing" timeout="20s"/>
> </operations>
> <instance_attributes id="stonith_6_inst_attr">
> <attributes>
> <nvpair id="stonith_6_attr_2" name="ibmrsa" value="foo"/>
> <nvpair id="stonith_6_attr_3" name="riloe" value="/etc/ha.d/wti.pl"/>
> </attributes>
> </instance_attributes>
> </primitive>
> ---<SNIP>---
>
> This looks futile, what would be the R2 way to use a script to handle
> the stonith?

The external API is very different for R2, so your script will have to
change.

But, for this particular mistake, I blame Dejan ;-)

--
Alan Robertson <alanr [at] unix>

"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


leroy.vanlogchem at wldelft

Aug 9, 2007, 2:12 AM

Post #5 of 5 (439 views)
Permalink
Re: v1.x -> v2.x stonith device external / segv [In reply to]

> The external API is very different for R2, so your script will have to
> change.
>
Thanks, I'll have a look at
http://www.linux-ha.org/ExternalStonithPlugins :)

--
Leroy

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.