]> git.proxmox.com Git - mirror_frr.git/commit
If on-shutdown is configured to a large value and 'service quagga restart'
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:03:59 +0000 (18:03 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:03:59 +0000 (18:03 -0700)
commit804fb5c1e5a01bc522c2d6f6d0b64c78f0484a45
tree346dc41c993193cec6c7941c61fb04eaf62207f8
parentb7250fa012b62bdc01d885e5de245ed886bf7eb3
If on-shutdown is configured to a large value and 'service quagga restart'
is executed, then the init.d/quagga script doesnt wait more than 120 seconds
for the daemon do stop, worse, it goes ahead and starts the new daemon
regardless. This can result into two ospfd processes running on the same config.
Which leads to many issues including but not limited to high cpu usage.
Thats because the two processes are mixing packets on adjancencies thus
causing churn on the box and network.

As long as OSPF is able to reliably send the max-metric router-lsa before
exiting thats mostly good enough for this purpose anyways.

As a solution to this situation, bringing the maximum configurable value of
the on-shutdown timer below the maximum retry to stop a daemon in init.d/quagga

Notes: This may not be an upstreamable patch, still we needed to find
a solution for init.d/quagga and this command this co-exist.
ospfd/ospf_vty.c