Switch ipv6_edge_router to quagga #8

Closed
jeltz wants to merge 13 commits from quagga into master
14 changed files with 174 additions and 257 deletions

View file

@ -1,186 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFvRo7oBEADH/lEeQBaRW4Lpmzhpn7W53hhMUefgj1bJ7ISpMC3qOlgSIeof
sQjZ5Hr0RHxz5bRVRtcOhPhKRvL0wCmTpROvKBVyrOHDn4AAh+D7bqhzrEZezJwu
on2fBRA5prT97r99WKpIPjyqeKHWY3GsbkKMYAcFMGNwYZudEm9bqFaZ9F1CX96i
VHTArZiZZgPPycOW6fZzrdPDa5/07WA4tJ4PXnMFEd3bLpRDW/t46XqBeNOitBcN
TrRY7LY/rLnfAUfTWlQVm1wb5gl1E0e4LDlaAysqZCVDriAUwNzk9aRnLQw14h18
af3sIi649fQ/uv/JwQ9hc1os/gu23N4wKSwSvQGYo3V6oqbxkhIQ5TR0MgXIxfF9
LoSFgnrXvUpUc+V4qXJJV+hLbTEoAKrHaON0f7BQHAiTsKB1R7FLVCMFIRtuZ1RD
iUCL9jFFXmAikHsTUFE2EOCW7+kqRSQ5ICu3IqMbXXA1dHz4tN2ji5LPZ4OKh/1O
zZQCBev4IZ3KWibFZwNxDwWFSoFQeuNKnVujsfR31SuFRWmASqZGGpN/Jr+zVNsb
iUXUBrnSj8PXYs1zSLrfVVlaga6EI29o5ozUweZDvn5VnRycHaTVjVEmYynnf0ss
axkRKDgP4e0czNTbH9Rze+AL/Xfc5F0CVQ3jGZQwLgspqpj2UNicZhTzQwARAQAB
tCtEYXZpZCBMYW1wYXJ0ZXIgPGVxdWlub3gtZGViaWFuQGRpYWMyNC5uZXQ+iQJO
BBMBCAA4FiEEPZlorJrnvhFpKI3bH9WDmJX1f9oFAlvRo7oCGwEFCwkIBwIGFQgJ
CgsCBBYCAwECHgECF4AACgkQH9WDmJX1f9pNHg//VS3bICTNEjjmXRtHdsKyRs2s
Nl6BefYDuOPy6NWIra9oLZzo1G15Zt8wH1LLHIB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JclT6LAhsMAAoJEHTe7UOrGU2/kToP/il4dvWMMJS4pgXuDPcwTaYc
e8T9a8Uf0B2BOOKJgLZk2kvI21bwHnGxXc3zuUHCzZ81Y89/IpX+s37J+frvLbqd
xOfE39+5plK9BDn7G9UsTzg7mXuGWpMQA6Mvki4LslY/qCfUqzVeFPNZquH4Emxr
z1u0SldhaqctrkKwW1teTTmqbCtGrRpb0v8x42TBw+WvBJopelpgtdy3TnRbKk86
NkiiPFVRnfC0RjyMlLxa095t5s8irrqjnAAKMvwKiuzt97CQ/U68WbsOYLyv42PT
ClfbbFJw6ghTZ7SRxiGwUVz7EwQ31MsiffmyJKRca81yqSQfrPS4MkEXChZBt8wF
C1IhG9I9zbHKt9saXWPYCbL8Zs2x3c1md62dl4mrH/VwLV9T+7PaJCM8qrFtkWlu
cYntgBhLW1KY9dWkCtZ7ML70n8FyIyHMD35mZb3lw+c1dBusuwGwZLSksH9ucOQz
Zh3+rlZ8PkYXXosKTkp9qBDVoSgNU5AH8F+K/Uw1uVm+JqqFP/ieQQydS8wAVYAv
ax/ZP+wTHhLvmHUoI70K51osk+sLcFh+h9L6sK+kq9i2mrJs/d2Sk6jau96RJCFe
pHI+29yZoK5ZpOkvFAFvbNXMFd2sn5O60y9LAvr9u2QRNlTvmQ7B1o2/US62SoD4
HGxIKIAggOUujclydhvu
=+/L/
-----END PGP PUBLIC KEY BLOCK-----

View file

@ -1,5 +1,11 @@
--- ---
- name: restart frr - name: restart bgpd
service: service:
name: frr name: bgpd
state: restarted state: restarted
- name: restart zebra
service:
name: zebra
state: restarted
...

View file

@ -1,39 +1,56 @@
--- ---
- name: install GPG - name: Install quagga
apt: apt:
name: gnupg name: quagga
- name: Add FRR repo key - name: Tweak sysctl for table size
apt_key: ansible.posix.sysctl:
data: "{{ lookup('file', 'frr-apt-key.asc') }}" name: net.ipv6.route.max_size
state: present value: '500000'
sysctl_set: yes
- name: Add FRR apt repository - name: Setup Quagga configuration
apt_repository:
repo: deb https://deb.frrouting.org/frr buster frr-stable
state: present
notify: restart frr
- name: Install frr
apt:
name: frr
- name: setup frr daemons
template: template:
src: daemons.j2 src: "{{ item }}.j2"
dest: /etc/frr/daemons dest: "/etc/quagga/{{ item }}"
mode: 0644 mode: u=rw,g=r,o=
notify: restart frr loop:
- daemons
- zebra.conf
- bgpd.conf
# FIXME: re-activate when failover is working
#notify:
# - restart bgpd
# - restart zebra
- name: setup frr.conf - name: enable+start bgpd and quagga
template:
src: frr.conf.j2
dest: /etc/frr/frr.conf
mode: 0644
notify: restart frr
- name: enable+start frr
service: service:
name: frr name: "{{ item }}"
state: started state: started
enabled: true enabled: true
loop:
- bgpd.service
- zebra.service
- name: Install quagga prometheus exporter
template:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
mode: '{{ item.mode }}'
loop:
- src: quagga.py.j2
dest: /usr/share/prometheus-node-exporter/quagga.py
mode: "0755"
- src: prometheus-node-exporter-quagga.service.j2
dest: /etc/systemd/system/prometheus-node-exporter-quagga.service
mode: "0644"
- src: prometheus-node-exporter-quagga.timer.j2
dest: /etc/systemd/system/prometheus-node-exporter-quagga.timer
mode: "0644"
- name: Enable node-exporter
service:
name: prometheus-node-exporter.service
enabled: yes
state: started
...

View file

@ -1,17 +1,5 @@
log syslog informational
log stdout
hostname routeur-aurore
password Tux
enable password Tux
interface lo
line vty
# Aurore AS.
router bgp 43619 router bgp 43619
#no synchronization no synchronization
bgp router-id 45.66.111.254 bgp router-id 45.66.111.254
# Remote-AS: Zayo. # Remote-AS: Zayo.
@ -21,4 +9,5 @@ router bgp 43619
neighbor 2001:1b48:2:103::d7:1 activate neighbor 2001:1b48:2:103::d7:1 activate
exit-address-family exit-address-family
! !
log file /var/log/quagga/bgpd.log
log stdout

View file

@ -1,24 +1,5 @@
# This file tells the frr package which daemons to start.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/frr/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "frr", else
# the daemon will not be started by /etc/init.d/frr. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "frrvty" and set to ug=rw,o= though. Check /etc/pam.d/frr, too.
#
# The watchfrr and zebra daemons are always started.
#
{% if 'backup' in inventory_hostname %}
bgpd=no
{% else %}
bgpd=yes bgpd=yes
{% endif %} zebra=yes
ospfd=no ospfd=no
ospf6d=no ospf6d=no
ripd=no ripd=no

View file

@ -0,0 +1,6 @@
[Unit]
Description=Collect quagga metrics for prometheus-node-exporter
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/usr/share/prometheus-node-exporter/quagga.py | sponge /var/lib/prometheus/node-exporter/quagga.prom"

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run quagga metrics collection every 15 minutes
[Timer]
OnBootSec=0
OnUnitActiveSec=15min
[Install]
WantedBy=timers.target

View file

@ -0,0 +1,56 @@
#!/usr/bin/python3
import re
import subprocess
def parse_bgp_summary(summary):
header = 'Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd\n'
res = {'routes': 0, 'uptime': 0}
try:
index = summary.index(header) + len(header)
except ValueError:
return res
summary = summary[index:]
match = re.match(r'(?P<neighbor>[^\s\n])+\n?\s+(?P<version>4)\s+(?P<as>\d{1,5})\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+(?P<uptime>[^\s]+)\s+(?P<routes>\d+)\n', summary)
if match is None:
return res
res['routes'] = int(match.group('routes'))
uptime = match.group('uptime')
if re.fullmatch(r'[0-9]+:[0-9]+:[0-9]+', uptime) is not None:
uptime = uptime.split(':')
uptime = int(uptime[0])*3600 + int(uptime[1])*60 + int(uptime[2])
else:
uptime_match = re.fullmatch(r'([0-9]+)d([0-9]+)h([0-9]+)m', uptime)
if uptime_match is not None:
uptime = int(uptime_match.group(1))*86400 + int(uptime_match.group(2))*3600 + int(uptime_match.group(3))*60
else:
uptime_match = re.fullmatch(r'([0-9]+)w([0-9]+)d([0-9]+)h', uptime)
if uptime_match is not None:
uptime = int(uptime_match.group(1))*604800 + int(uptime_match.group(2))*86400 + int(uptime_match.group(3))*3600
else:
uptime_match = re.fullmatch(r'([0-9]+)y([0-9]+)w([0-9]+)d', uptime)
if uptime_match is not None:
uptime = int(uptime_match.group(1))*220752000 + int(uptime_match.group(2))*604800 + int(uptime_match.group(3))*86400
else:
uptime = 0
res['uptime'] = uptime
return res
def prompt(version='ipv4'):
bgp_unicast_summary = subprocess.run(['/usr/bin/vtysh', '-c', f'show bgp {version} unicast summary'], capture_output=True).stdout.decode('utf-8')
bgp_routes_uptime = parse_bgp_summary(bgp_unicast_summary)
routes = bgp_routes_uptime['routes']
uptime = bgp_routes_uptime['uptime']
print(f'# HELP quagga_bgp_{version}_routes Number of {version} routes added by quagga')
print(f'# TYPE quagga_bgp_{version}_routes gauge')
print(f'quagga_bgp_{version}_routes {routes}')
print(f'# HELP quagga_bgp_{version}_uptime {version} BGP connection uptime')
print(f'# TYPE quagga_bgp_{version}_uptime gauge')
print(f'quagga_bgp_{version}_uptime {uptime}')
if __name__ == '__main__':
prompt('ipv4')
prompt('ipv6')

View file

@ -0,0 +1,8 @@
hostname routeur-aurore
password Tux
enable password Tux
log file /var/log/quagga/zebra.log
interface lo
line vty

View file

@ -1,7 +1,7 @@
--- ---
- name: restart keepalived - name: reload keepalived
systemd: systemd:
state: restarted state: reloaded
name: keepalived name: keepalived
enabled: true enabled: true

View file

@ -80,15 +80,22 @@
src: keepalived.conf src: keepalived.conf
dest: /etc/keepalived/keepalived.conf dest: /etc/keepalived/keepalived.conf
mode: 0644 mode: 0644
notify: restart keepalived notify: reload keepalived
when: "'routeur-aurore' not in ansible_hostname" when: "'routeur-aurore' not in ansible_hostname"
- name: install notify-quagga on routeur-aurore*
template:
src: notify-quagga.j2
dest: /usr/local/sbin/notify-quagga
mode: u=rx,g=r,o=r
when: "'routeur-aurore' in ansible_hostname"
- name: configure keepalived for routeur-aurore* - name: configure keepalived for routeur-aurore*
template: template:
src: keepalived-aurore.conf src: keepalived-aurore.conf
dest: /etc/keepalived/keepalived.conf dest: /etc/keepalived/keepalived.conf
mode: 0644 mode: 0644
notify: restart keepalived notify: reload keepalived
when: "'routeur-aurore' in ansible_hostname" when: "'routeur-aurore' in ansible_hostname"
- name: Configure cron - name: Configure cron

View file

@ -11,7 +11,6 @@ iface lo inet loopback
auto ens18 auto ens18
iface ens18 inet static iface ens18 inet static
address 10.129.0.{{ router_hard_ip_suffix }}/16 address 10.129.0.{{ router_hard_ip_suffix }}/16
gateway 10.129.0.1
iface ens18 inet6 static iface ens18 inet6 static
address 2a09:6840:129::0:{{ router_hard_ip_suffix }}/64 address 2a09:6840:129::0:{{ router_hard_ip_suffix }}/64

View file

@ -127,5 +127,9 @@ vrrp_instance VI_ROUT_aurore_IPv6 {
2a09:6840:50::/64 via 2a09:6840:129::5:254 dev ens18 2a09:6840:50::/64 via 2a09:6840:129::5:254 dev ens18
2a09:6840:51::/64 via 2a09:6840:129::5:254 dev ens18 2a09:6840:51::/64 via 2a09:6840:129::5:254 dev ens18
} }
notify_master "/usr/local/sbin/notify-quagga master"
notify_backup "/usr/local/sbin/notify-quagga backup"
notify_fault "/usr/local/sbin/notify-quagga fault"
} }

View file

@ -0,0 +1,21 @@
#!/bin/bash
{{ ansible_managed | comment }}
if [[ $# = 0 ]]; then
echo "Invalid number of arguments" >&2
exit 1
fi
case $1 in
master)
systemctl start zebra.service
systemctl start bgpd.service
;;
backup | fault)
systemctl stop zebra.service
systemctl stop bgpd.service
;;
*)
echo "Invalid argument" >&2
exit 1
esac