LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Heartbeat 2.0.8 issues, OCF_RESKEY_lvs_support undocumented,

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] Heartbeat 2.0.8 issues, OCF_RESKEY_lvs_support undocumented, IPAddr broken
From: Michael Stiller <ms@xxxxxxxxxx>
Date: Fri, 06 Jul 2007 10:27:26 +0200
Hi,

playing with 2.0.8 we found some issues with heartbeat/lvs and these lvs
setups where you need an loopback alias for the application to bind on
on startup. If a loopback alias exists for a vip ip address, error
messages will be issued. Debugging this showed:

- There is an option OCF_RESKEY_lvs_support
in .../ocf/resource.d/heartbeat/IPaddr which is not really documented
but needed for this kind of setup. Where is the place to configure this
variable? 

- mentioned IPaddr is broken:

lvs_restore_loopback()

        netmask_text=`echo "$NICINFO" | cut -f2`
        broadcast=`echo "$NICINFO" | cut -f3`

cut without -d ' ' does not work here. Use awk w/print or fix the cut
options. If i remember correctly, even the field numbers are wrong
here. 

This part:

: ${OCF_RESKEY_lvs_support=0}
# Normalize the value of lvs_support
if [ "${OCF_RESKEY_lvs_support}" = "true" \
    -o "${OCF_RESKEY_lvs_support}" = "on" ]; then
    OCF_RESKEY_lvs_support=1
else
    OCF_RESKEY_lvs_support=0
fi

resets OCF_RESKEY_lvs_support to 0 if you try to enable this
(undocumented) variable with =1 instead of true / on.

Cheers,

-Michael






<Prev in Thread] Current Thread [Next in Thread>