Package: ctdb
Version: 1.0.112-12-1
Severity: important
Tags: squeeze patch
The script 10.interface incorrectly uses /usr/sbin/ethtool instead of
/sbin/ethtool. This makes ctdb goes in an unhealthy state.
The fix is easy (see attached patch).
This is a stability patch and I plan to upload it to squeeze-proposed-updates.
Index: ctdb-1.0.112-12/config/events.d/10.interface
===================================================================
--- ctdb-1.0.112-12.orig/config/events.d/10.interface 2011-07-22 23:58:09.000000000 +0200
+++ ctdb-1.0.112-12/config/events.d/10.interface 2011-07-22 23:58:34.000000000 +0200
@@ -164,13 +164,13 @@
;;
*)
[ -z "$IFACE" ] || {
- /usr/sbin/ethtool $IFACE | grep -q 'Link detected: yes' || {
+ ethtool $IFACE | grep -q 'Link detected: yes' || {
# On some systems, this is not successful when a
# cable is plugged but the interface has not been
# brought up previously. Bring the interface up and
# try again...
/sbin/ip link set $IFACE up
- /usr/sbin/ethtool $IFACE | grep -q 'Link detected: yes' || {
+ ethtool $IFACE | grep -q 'Link detected: yes' || {
echo "ERROR: No link on the public network interface $IFACE"
exit 1
}