On Tue, Nov 02, 2010 at 06:45:08PM +0100, Dejan Muhamedagic wrote:
> On Tue, Nov 02, 2010 at 04:26:40PM +0100, Eberhard Kuemmerle wrote:
> > On 2 Nov 2010 16:15 02.11.2010 16:18, Eberhard Kuemmerle wrote:
> > > Hi,
> > > here is what you requested:
> > >
> > > TEST 1:
> > > stonith -t rcd_serial -p "test /dev/ttyS0 rts 2000" test
> > > ** (process:2928): DEBUG: rcd_serial_set_config:called
> > > Alarm clock
> > > # echo $?
> > > 142
> > >
> > > TEST 2:
> > > stonith -t rcd_serial hostlist="node2" ttydev="/dev/ttyS0" dtr_rts="rts"
> > > msduration="2000" -S
> > > ** (process:6851): DEBUG: rcd_serial_set_config:called
> > > stonith: rcd_serial device OK.
> > > # echo $?
> > > 0
> > >
> > > TEST 3:
> > > stonith -t rcd_serial hostlist="node2" ttydev="/dev/ttyS0" dtr_rts="rts"
> > > msduration="2000" -T reset node2
> > > ** (process:8142): DEBUG: rcd_serial_set_config:called
> > > Alarm clock
> > > # echo $?
> > > 142
> > >
> > > TEST 1 as well as TEST 2 caused a reboot of node2!
> > >
> > SORRY, that's wrong!
> > I wanted to say:
> > TEST 1 as well as TEST 3 caused a reboot of node2!
> 
> Well, then there seems to be a problem with rcd_serial.
> According to the exit code (142 = 128 + 14), it seems like the
> plugin instance gets killed by the ALRM signal. The signal
> should've been caught, but there is something wrong with the
> registration of the signal handler.
> 
> Looks like this fails unexpectedly:
> 
> #if !defined(HAVE_POSIX_SIGNALS)
> 
> because our autoconf doesn't do tests for signal implementation.
> 
> Can you please try the attached patch? You'll have to rebuild
> the package for that.

If you've wondered which patch, here's finally one.

Thanks,

Dejan

> Thanks,
> 
> Dejan
> 
> > ------------------------------------------------------------------------------------------------
> > ------------------------------------------------------------------------------------------------
> > Forschungszentrum Juelich GmbH
> > 52425 Juelich
> > Sitz der Gesellschaft: Juelich
> > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> > Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
> > Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
> > Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> > Prof. Dr. Sebastian M. Schmidt
> > ------------------------------------------------------------------------------------------------
> > ------------------------------------------------------------------------------------------------
> > 
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > 
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: 
> > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: 
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

# HG changeset patch
# User Dejan Muhamedagic <de...@hello-penguin.com>
# Date 1288719637 -3600
# Node ID 0ee595000549451a4f7f5269acb79cc17572cecd
# Parent  12e39615469b92ed08c1301e71e904eb8620e5e4
Medium: configure: test for POSIX signals (fixes rcd_serial)

diff -r 12e39615469b -r 0ee595000549 configure.ac
--- a/configure.ac	Thu Oct 28 10:40:34 2010 +0200
+++ b/configure.ac	Tue Nov 02 18:40:37 2010 +0100
@@ -717,6 +717,18 @@
     AC_DEFINE(HAVE_SYSLOG_FACILITYNAMES,1,[ ])
 fi
 
+dnl Check for POSIX signals
+dnl
+AC_CACHE_CHECK([have POSIX signals],ac_cv_HAVE_POSIX_SIGNALS,[
+AC_TRY_COMPILE([
+#include <signal.h>
+],
+[ struct sigaction act, oact; sigaction(0, &act, &oact); return 0;],
+ac_cv_HAVE_POSIX_SIGNALS=yes,ac_cv_HAVE_POSIX_SIGNALS=no,ac_cv_HAVE_POSIX_SIGNALS=cross)])
+if test x"$ac_cv_HAVE_POSIX_SIGNALS" = x"yes"; then
+    AC_DEFINE(HAVE_POSIX_SIGNALS,1,[ ])
+fi
+
 dnl 'reboot()' system call: one argument (e.g. Linux) or two (e.g. Solaris)?
 dnl
 AC_CACHE_CHECK([number of arguments in reboot system call],
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to