Package: heartbeat
Version: 1.2.3-9sarge4
Severity: important

The script uses ifconfig to find interfaces and ifconfig only shows first 9
characters of interface name. Thus, if aliased interface name has more than 9
symbols (and original has more than 7) IPaddr fails to release the ip and
heartbeat immediately reboots machine.

Sample session:
[EMAIL PROTECTED]:~# sh /etc/ha.d/resource.d/IPaddr 10.4.99.9 start
2005/12/24_16:14:38 info: /sbin/ifconfig nic1.499:1 10.4.99.9 netmask 
255.255.255.0     broadcast 10.4.99.255
2005/12/24_16:14:38 info: Sending Gratuitous Arp for 10.4.99.9 on nic1.499:1 
[nic1.499]
2005/12/24_16:14:38 /usr/lib/heartbeat/send_arp -i 1010 -r 5 -p 
/var/lib/heartbeat/rsctmp/send_arp/send_arp-10.4.99.9 nic1.499 10.4.99.9 auto 
10.4.99.9 ffffffffffff

[EMAIL PROTECTED]:~# sh /etc/ha.d/resource.d/IPaddr 10.4.99.9 stop
2005/12/24_16:15:21 info: /sbin/route -n del -host 10.4.99.9
SIOCDELRT: No such process
2005/12/24_16:15:21 info: /sbin/ifconfig nic1.499: down
SIOCSIFFLAGS: Cannot assign requested address
2005/12/24_16:15:21 WARN: IP Address 10.4.99.9 NOT released

I'd suggest switching the default ip script to IPaddr2 on linux platforms 
which uses ip and doesn't have this limitation.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-686xen0-smp
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages heartbeat depends on:
ii  adduser                    3.63          Add and remove users and groups
ii  iproute                    20041019-3    Professional tools to control the 
ii  iputils-ping               3:20020927-2  Tools to test the reachability of 
ii  libc6                      2.3.2.ds1-22  GNU C Library: Shared libraries an
ii  libglib1.2                 1.2.10-9      The GLib library of C routines
ii  libnet1                    1.1.2.1-2     library for the construction and h
ii  libpils0                   1.2.3-9sarge4 Plugin and Interface Loading Syste
ii  libstonith0                1.2.3-9sarge4 Interface for remotely powering do
ii  python                     2.3.5-2       An interactive high-level object-o

-- no debconf information


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

Reply via email to