Package: heartbeat
Version: 2.1.3-6
Severity: important

Hi,

I could not get heartbeat to mount NFS shares via a resource entry in
haresources. After some digging i found out that the shell scripts all
reference /bin/sh in the shebang and use [^...] in some regular expressions.
At least on my system that does not work as i use dash as /bin/sh which only
knows about [!...]. A quick grep found the same problen in the
following files

/usr/lib/ocf/resource.d/heartbeat/WAS6:                -e
's%[^0-9][^0-9]*.*$%%'
/usr/lib/ocf/resource.d/heartbeat/IPsrcaddr:    *[^0-9.]*) #got invalid char
/usr/lib/ocf/resource.d/heartbeat/Filesystem:[^/]*:/*)  # An NFS filesystem
specification...
/usr/lib/ocf/resource.d/heartbeat/Filesystem://[^/]*/*) # An SMB filesystem
specification...
/usr/lib/ocf/resource.d/heartbeat/IPaddr2:
[0-9a-zA-Z][1379bBdDfF][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z])
/usr/lib/ocf/resource.d/heartbeat/o2cb:         O2CB_CLUSTER=$(o2cb_ctl -I -t
cluster -o | sed -ne '/^[^#]/{ s/\([^:]*\):.*$/\1/; p }')
/usr/lib/ocf/resource.d/heartbeat/Xinetd:    *[^0-9]*) #got invalid char
/usr/lib/ocf/resource.d/heartbeat/Xinetd:           *[^\        \ +-]=*)
/usr/lib/ocf/resource.d/heartbeat/Xinetd:           *[^\        \ ][+-]=*)
/usr/lib/ocf/resource.d/heartbeat/apache:       /<Location "?([^ >"]+)/i &&
($loc=$1);
/usr/lib/ocf/resource.d/heartbeat/portblock:    *[^0-9]*) #got invalid char
/usr/lib/ocf/resource.d/heartbeat/WAS:          -e 's%[^0-9][^0-9]*.*$%%'
/usr/lib/ocf/resource.d/heartbeat/WinPopup:    *[^0-9.]*) #got invalid char
/etc/heartbeat/resource.d/WAS:      *[^0-9]*)


Changing for example the regex in /usr/lib/ocf/resource.d/heartbeat/Filesystem
fixed my NFS problem.
So i suggest changing them all to [!...]

regards

   --lars

-- System Information:
Debian Release: lenny/sid
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-6-vserver-k7
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages heartbeat depends on:
ii  add 3.102                                Add and remove users and groups
ii  gaw 1:3.1.5.dfsg-4                       GNU awk, a pattern scanning and pr
ii  ipr 20061002-3                           Professional tools to control the
ii  ipu 3:20020927-6                         Tools to test the reachability of
ii  lib 1.0.3-6                              high-quality block-sorting file co
ii  lib 2.7-6                                GNU C Library: Shared libraries
ii  lib 7.18.1-1                             Multi-protocol file transfer libra
ii  lib 2.16.1-2                             The GLib library of C routines
ii  lib 2.2.2-1                              the GNU TLS library - runtime libr
ii  lib 1.5.22-4                             A system independent dlopen wrappe
ii  lib 5.6+20080203-1                       Shared libraries for terminal hand
ii  lib 1.1.2.1-2                            library for the construction and h
ii  lib 2.6.2-3                              OpenHPI libraries (runtime and sup
ii  lib 0.79-5                               Runtime support for the PAM librar
ii  lib 0.99.7.1-5                           Pluggable Authentication Modules l
ii  lib 5.4.1~dfsg-6                         SNMP (Simple Network Management Pr
ii  lib 0.9.8g-7                             SSL shared libraries
ii  lib 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 universally unique id library
ii  lib 7.6.dbs-13                           Wietse Venema's TCP wrappers libra
ii  lib 2.6.31.dfsg-2                        GNOME XML library
ii  lib 2.6.27.dfsg-4                        XML utilities
ii  psm 22.3-1                               Utilities that use the proc filesy
ii  pyt 2.4.4-2                              An interactive high-level object-o
ii  pyt 0.6.7                                register and build utility for Pyt
ii  zli 1:1.2.3.3.dfsg-11                    compression library - runtime

Versions of packages heartbeat recommends:
ii  iptables                1.3.6.0debian1-5 administration tools for packet fi
ii  logrotate               3.7.1-3          Log rotation utility
ii  syslog-ng [system-log-d 2.0.0-1etch1     Next generation logging daemon

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to