Re: keepalived segfaults on Centos 6.5

PENZ Robert <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hi!

Thx, that works.

Regards,
Robert


-----Ursprüngliche Nachricht-----
Von: Frank Baalbergen [mailto:[email protected]] 
Gesendet: Donnerstag, 20. November 2014 14:38
An: PENZ Robert
Cc: [email protected]
Betreff: Re: AW: [Keepalived-devel] keepalived segfaults on Centos 6.5

Hi,

What happens if you move use_vmac and vmac_xmit_base under 
virtual_router_id? For me that solves the issue.

Regards,

Frank

On 11/20/2014 01:44 PM, PENZ Robert wrote:
> Hi
>
> the config is really simple, the vmac stuff is not activated in this config.
>
> # cat /etc/keepalived/keepalived.conf
> ! Configuration File for keepalived
>
> global_defs {
>     notification_email {
>       [email protected]
>     }
>     notification_email_from [email protected]
>     smtp_server smtp.xxxxx
>     smtp_connect_timeout 60
>     router_id LVS_TSNLB
> }
>
> vrrp_script chk_haproxy {
>      script "killall -0 haproxy"  # widely used idiom
>      interval 1                   # check every 2 seconds
> }
>
>
>
> vrrp_instance VI_1 {
>      state MASTER
> !    use_vmac
> !    vmac_xmit_base
>      garp_master_refresh 15
>      interface eth0
>      virtual_router_id 100
>      priority 100
>      advert_int 1
>      authentication {
>          auth_type AH
>          auth_pass XXXXXXXXXXXXXX
>      }
>      virtual_ipaddress {
>          xxx.xxx.xxx.152
>          xxx.xxx.xxx.153
>          xxx.xxx.xxx.154
>          xxx.xxx.xxx.155
>          xxx.xxx.xxx.156
>      }
>
>      track_script {
>          chk_haproxy weight 2    # +2 if process is present
>      }
> !    notify_master /usr/local/bin/vmac_tweak.sh vrrp.100
> }
>
> Regards,
> Robert
>
>
> -----Ursprüngliche Nachricht-----
> Von: Frank Baalbergen [mailto:[email protected]]
> Gesendet: Donnerstag, 20. November 2014 13:17
> An: PENZ Robert
> Cc: [email protected]
> Betreff: Re: [Keepalived-devel] keepalived segfaults on Centos 6.5
>
> Hi Robert,
>
> When i add use_vmac and vmac_xmit_base to a test keepalived.conf i see
> in the log:
>
> Nov 20 13:10:56 logging Keepalived_vrrp[10671]: vmac: Success creating
> VMAC interface vrrp.10 for vrrp_instance test
>
> I use Debian Wheezy and keepalived 1:1.2.13-1~bpo70+1, so maybe it's a
> CentOs issue, can you share your keepalived.conf so i can try it on my
> Debian machine?
>
> Regards,
>
> Frank
>
> On 11/20/2014 12:39 PM, PENZ Robert wrote:
>> Hi,
>>
>> We've a problem with keepalived-1.2.13-4.1.el6.x86_64 on Centos 6.5. All works until I try the vmac feature. I've loaded the kernel module with modprobe macvlan and added just following to the config:
>>
>> use_vmac
>> vmac_xmit_base
>>
>>
>> and I get segfaults in dmesg
>> keepalived[19170]: segfault at 1c ip 000000000041c378 sp 00007fffeb5c20d0 error 4 in keepalived[400000+49000]
>> keepalived[19171]: segfault at 1c ip 000000000041c378 sp 00007fffeb5c20d0 error 4 in keepalived[400000+49000]
>> __ratelimit: 384 callbacks suppressed
>> keepalived[20393]: segfault at 1c ip 000000000041c378 sp 00007fffcf172c20 error 4 in keepalived[400000+49000]
>> keepalived[20394]: segfault at 1c ip 000000000041c378 sp 00007fffcf172bb0 error 4 in keepalived[400000+49000]
>>
>>
>> if I remove the 2 lines everything works again. In /var/log/messages I see following:
>>
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25698]: Opening file '/etc/keepalived/keepalived.conf'.
>> Nov 19 16:56:56 xxxxxx rsyslogd-2177: imuxsock lost 396 messages from pid 20390 due to rate-limiting
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: VRRP child process(25698) died: Respawning
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: Starting VRRP child process, pid=25699
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Netlink reflector reports IP 10.xxx.xxx.xxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Netlink reflector reports IP fe80::250:xxxx:xxxx:xxxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Registering Kernel netlink reflector
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Registering Kernel netlink command channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Registering gratuitous ARP shared channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25699]: Opening file '/etc/keepalived/keepalived.conf'.
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: VRRP child process(25699) died: Respawning
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: Starting VRRP child process, pid=25700
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Netlink reflector reports IP 10.xxx.xxx.xxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Netlink reflector reports IP fe80::250:xxxx:xxxx:xxxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Registering Kernel netlink reflector
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Registering Kernel netlink command channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Registering gratuitous ARP shared channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25700]: Opening file '/etc/keepalived/keepalived.conf'.
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: VRRP child process(25700) died: Respawning
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: Starting VRRP child process, pid=25701
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Netlink reflector reports IP 10.xxx.xxx.xxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Netlink reflector reports IP fe80::250:xxxx:xxxx:xxxx added
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Registering Kernel netlink reflector
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Registering Kernel netlink command channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Registering gratuitous ARP shared channel
>> Nov 19 16:56:56 xxxxxx Keepalived_vrrp[25701]: Opening file '/etc/keepalived/keepalived.conf'.
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: VRRP child process(25701) died: Respawning
>> Nov 19 16:56:56 xxxxxx Keepalived[20390]: Starting VRRP child process, pid=25702
>>
>> Any ideas?
>>
>> Regards,
>> Robert
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Keepalived-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
>>
>
>


-- 
Frank Baalbergen - System / Network Engineer
T +31 (0)10 2760434 | [email protected] | www.mendix.com

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.