OpenVZ Forum


Home » General » Support » *SOLVED* quagga on FC5 and RHEL4
*SOLVED* quagga on FC5 and RHEL4 [message #6283] Wed, 13 September 2006 12:05 Go to next message
teleport is currently offline  teleport
Messages: 2
Registered: September 2006
Junior Member
Hi all,

I have troubles with quagga and FC5 (kernel: 2.6.15-1.2054_FC5.026test006) and RHEL4 ( CentOS 4.4, kernel: 2.6.9-023stab016.2). Quagga routing daemon (zebra) can not insert routes into kernel. Error is:

2006/09/13 14:57:17 ZEBRA: netlink_route_multipath() (single hop): RTM_NEWROUTE 10.0.1.0/24, type IPv4 nexthop
2006/09/13 14:57:17 ZEBRA: netlink_route_multipath() (single hop): nexthop via 192.168.11.23 if 4
2006/09/13 14:57:17 ZEBRA: netlink_talk: netlink-cmd type RTM_NEWROUTE(24), seq=6
2006/09/13 14:57:17 ZEBRA: netlink-cmd error: Operation not permitted, type=RTM_NEWROUTE(24), seq=6, pid=0

Ospf and bgp daemons works fine. Selinux is disabled. Everything work fine, except quagga. Is there a solution for this problem?

Thank You.

[Updated on: Wed, 04 October 2006 06:03] by Moderator

Report message to a moderator

Re: quagga on FC5 and RHEL4 [message #6284 is a reply to message #6283] Wed, 13 September 2006 12:12 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Could you strace it?
http://wiki.openvz.org/Stracing_a_program
Please, post it's output somewhere as well as kernel version.


http://static.openvz.org/openvz_userbar_en.gif
Re: quagga on FC5 and RHEL4 [message #6431 is a reply to message #6283] Sun, 17 September 2006 17:46 Go to previous messageGo to next message
teleport is currently offline  teleport
Messages: 2
Registered: September 2006
Junior Member
There is strace. Same pc, same config ( included in tar.gz ), only running kernel differs.

Re: quagga on FC5 and RHEL4 [message #7069 is a reply to message #6283] Mon, 02 October 2006 21:45 Go to previous messageGo to next message
poelzi is currently offline  poelzi
Messages: 1
Registered: October 2006
Junior Member
I ran into the same problem the last two days. I just learning bgp so it was kinda hard to find Smile

i managed to run quagga (bgpd + zebra) inside a vz instance with some hackts. 0.99.5 is the version i used and i had to change the configure parameters:

        ./configure \
                --prefix=/usr \
                --libexecdir=/usr/lib/quagga \
                --sbindir=/usr/lib/quagga \
                --sysconfdir=/etc/quagga \
                --localstatedir=/var/run/quagga \
                --enable-exampledir=$(T)/usr/share/doc/quagga/examples/ \
                \
                $(USE_SNMP) \
                --enable-vtysh \
                --enable-isisd \
                --disable-capabilities \
                --enable-watchquagga \
                --enable-ospf-te \
                --enable-opaque-lsa \
                --enable-user=root \
                --enable-group=root \
                --enable-ipv6 \
                --enable-ospfclient=yes \
                --enable-ospfapi=yes \
                --enable-multipath=64 \
                --enable-vty-group=quaggavty \
                --enable-configfile-mask=0640 \
                --enable-logfile-mask=0640 \
                --enable-rtadv \
                --enable-tcp-md5 \
                --disable-netlink \
                --with-libpam


netlink doesn't work and gets only permission denied returns. because using ioctl with capabilities didn' work eigher. Then I found that capabilities seems to be broken here, running zebra as root without capabilies compiled in, works fine. Here on ubuntu, zebra runs default under user quagga.
zebra seems to request capabilities NET_ADMIN, SYS_ADMIN and NET_RAW when i remember correctly. For my tests i gave the instance all available und running capabilities (hope this didn't screw something up). At the beginning I only gave these three and some other caps to the instance, so quagga could continue after trying cap_set_proc, which worked.

Not sure if it matters, but some of the interface in the instance are vpn tun and tap devices. On one tap device is bgpd running.

kindly regards
daniel
Re: quagga on FC5 and RHEL4 [message #7094 is a reply to message #7069] Tue, 03 October 2006 15:40 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Patch is attached

http://static.openvz.org/openvz_userbar_en.gif
Re: *SOLVED* quagga on FC5 and RHEL4 [message #7125 is a reply to message #6283] Wed, 04 October 2006 12:35 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

patch diff-ve-netlink-perm-20061004 queued for 2.6.9-023stab030 and 2.6.8-022stab078.23


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* Problem with 026test018.1 vps runs into failcnt
Next Topic: Mount in vps
Goto Forum:
  


Current Time: Fri Mar 29 12:46:40 GMT 2024

Total time taken to generate the page: 0.01897 seconds