#741244 Ucarp does not work correctly after upgrading to Wheezy.

Package:
ucarp
Source:
ucarp
Description:
user-space replacement to VRRP automatic IP fail-over
Submitter:
Trevor Burt
Date:
2015-03-16 13:03:08 UTC
Severity:
normal
#741244#5
Date:
2014-03-10 11:15:35 UTC
From:
To:
Version: 1.5.2-1+nmu1

After upgrading from 2.6.32-48squeeze4 to Debian Wheezy 3.2.0-4-amd64. I
noticed that ucarp no longer works on a vlan interface.

After checking the vip-up script, I found it runs /sbin/ifup $1:ucarp

After trying to run this script manually:-

ifup wan-2.3076:ucarp

I found it returns the following error:-

RTNETLINK answers: Numerical result out of range
Failed to bring up wan-2.3076:ucarp.

It looks like an issue with ifup, so I downgraded from ifupdown 0.7.8 to
ifupdown_0.6.10_amd64.deb and ucarp started to work, although I broke other
packages in the downgrade.

I then noticed that the example file in Debian for ucarp now uses the
interface :254 instead of :ucarp.

So I adjusted my /etc/network/interfaces file and change all :ucarp entries
to :254, making the same changes to the vip-up and vip-down replacing
:ucarp with :254.

So vip-up now contains /sbin/ifup $1:254 instead of /sbin/ifup S1:ucarp.

I am able to manually bring up the ucarp interface for example:-

ifup wan-2.3076:254 but the ucarp interface will it not load automatically.

How do I debug this issue further?

Can anyone confirm if ucarp supports IPv6?

Is there an alternative to ucarp? I have tried email Eric Evans a few times
to report this bug with no response.

Is this package being maintained?

#741244#10
Date:
2014-03-11 02:39:56 UTC
From:
To:
[ Trevor Burt ]

I'm not able to reproduce this here, though I do not have any vlan
interfaces.  Can you provide information on reproducing your setup?

Also, the example vip-up/vip-down scripts use /sbin/ip to bring the
interface up/down.  I'd be interested to see how that works; Can you give
that a shot and report back here?

No, ucarp does not support IPv6, this is a known issue[1].  The interface
mentioned above isn't IPv6, is it?

Yes.


[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529383

#741244#17
Date:
2014-03-14 16:40:45 UTC
From:
To:
Hi Eric,

As requested I have tested various configurations and enclose my findings
below.
------------------------------------------------------------------------------------------ Ucarp running on a vlan under Debian Wheezy. Example configuration for /etc/network/interfaces
------------------------------------------------------------------------------------------ #Test Ucarp on a vlan iface eth0.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface eth0.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 You can manually bring up the ucarp interface typing:- ifup eth0.3076:ucarp If you however rename the eth0 interface (using udev) to something like wan-2 and use then following config for /etc/network/interfaces. #Test ucarp on a vlan with a renamed interface. iface wan-2.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface wan-2.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 When you try to manually bring up the ucarp interface typing:- ifup wan-2.3076:ucarp You get the following error:- RTNETLINK answers: Numerical result out of range Failed to bring up wan-2.3076:ucarp. This problem seems to be caused by the new version of ifupdown 0.7.8 in Wheezy. If you go back to the previous version available for Squeeze :- ifupdown 0.6.10 you can bring up the interface. As requested I attempted to bring up the interface using /sbin/ip Here is my example syntax below, notice I did not include the /24 (as per the example) after the IP address as the subnet mask might differ per ucarp interface. /sbin/ip addr add 192.168.254.180 dev wan-2.3076:ucarp 192.168.254.180 pings but does display when running ifconfig. I modified the /usr/share/ucarp/vip-up script like so- #! /bin/sh exec 2> /dev/null /sbin/ip addr add "$2" dev "$1:ucarp" No matter what I do the ucarp interface will not come up automatically on a vlan interface. If I run "tcpdump -i wan-2.3076 vrrp" I can see no vrrp announcements. Therefore it appears ucarp is not running on a vlan interface, something which it did previously. On the new Debian Wheezy release there is no need to install the package vlan. Is there any dependency for this in ucarp? I can't see it in the package dependency and assume this is due to the problem found with ifupdown. If you want to run this test on Debian Squeeze, you will need to install vconfig "apt-get install vlan" and change your network interfaces file like so:- #Test Ucarp on a vlan in Debian Squeeze using a renamed interface. iface wan-2.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password pre-up vconfig add wan-2 3076 post-down vconfig rem wan-2.3076 ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface wan-2.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 How do I debug ucarp to see why it is not automatically bringing up the ucarp interface? There is nothing detailed in syslog or messages. Best Regards, Trevor
#741244#22
Date:
2015-03-16 12:58:40 UTC
From:
To:
Hi,

I've exactly the same problem here.
My ucarp interface doesn't come up.

Please find my configuration below :
# loopback

auto lo

iface lo inet loopback

auto eth2

iface eth2 inet manual

   up ethtool -G $IFACE rx 4096 || true

   up ethtool -G $IFACE tx 4096 || true

   up ip link set txqlen 10000 dev $IFACE

auto eth3

iface eth3 inet manual

   up ethtool -G $IFACE rx 4096 || true

   up ethtool -G $IFACE tx 4096 || true

   up ip link set txqlen 10000 dev $IFACE

auto bond0

iface bond0 inet manual

   bond_mode 802.3ad

   bond_xmit_hash_policy layer2+3

   slaves eth2 eth3

   up ip link set txqlen 10000 dev $IFACE

auto bond0.2015

iface bond0.2015 inet static

   vlan-raw-device bond0

   address 10.115.77.7

   netmask 255.255.0.0

   gateway 10.115.255.253

   ucarp-vid 77

   ucarp-vip 10.115.77.11

   ucarp-password mysecret

   ucarp-advskew 10

   ucarp-advbase 1

   ucar-master yes

   up ip link set txqlen 10000 dev $IFACE

iface bond0.2015:ucarp inet static

   vlan-raw-device bond0

   address 10.115.77.11

   netmask 255.255.0.0


When i try to bring up the interface i've the following error :

ifup bond0.2015:ucarp
RTNETLINK answers: Numerical result out of range
Failed to bring up bond0.2015:ucarp

Do you need more detail ? am i in the right thread ?

Regards,