Project

General

Profile

Actions

Bug #9836

closed

OpenBGPD package deamon starts twice

Added by Dirk Meyer over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Very Low
Category:
openbgpd
Target version:
-
Start date:
10/20/2019
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:

Description

After reboot with OpenBGPD package
the bgpd starts twice.

logfile:
Oct 20 11:44:50 router bgpd53729: startup
Oct 20 11:44:50 router bgpd54011: session engine ready
Oct 20 11:44:50 router bgpd53907: route decision engine ready
Oct 20 11:44:50 router bgpd56386: startup
Oct 20 11:44:50 router bgpd56492: route decision engine ready
Oct 20 11:44:50 router bgpd56586: session engine ready
Oct 20 11:44:50 router bgpd56386: rereading config
Oct 20 11:44:50 router bgpd53729: rereading config
Oct 20 11:44:50 router bgpd53729: cannot bind to 0.0.0.0:179: Address already in use
Oct 20 11:44:50 router bgpd56386: control_init: chmod: /var/run/bgpd.sock: No such file or directo
ry
Oct 20 11:44:50 router bgpd56386: fatal in parent: control socket setup failed
Oct 20 11:44:50 router bgpd56586: fatal in SE: session_dispatch_imsg: pipe closed
Oct 20 11:44:50 router bgpd56492: fatal in RDE: rde_dispatch_imsg_parent: pipe closed
Oct 20 11:44:50 router bgpd54011: SE reconfigured

The sessions with neighbors that have set "local-address" gets establised,
but the the socket for bgpdctl "/var/run/bgpd.sock" is missing,

Shell and WEB-UI reports:
bgpctl: connect: /var/run/bgpd.sock: No such file or directory

openbgpd_restart();
is faiing in this case.

Suggested fixes:
a) avoid to start the deamon twice.
b) check the exitcode of "bgpctl", it fails then kill and restart it.
c) check the presense /var/run/bgpd.sock, if missing then kill and restart it.

as as workaround I added a "restartbgpd" for the PWP shell.


Files

restartbgpd (229 Bytes) restartbgpd Dirk Meyer, 10/20/2019 06:25 AM
Actions #1

Updated by Jim Pingle over 4 years ago

  • Priority changed from Normal to Very Low

Nobody is currently maintaining the OpenBGPD package. It has been deprecated in favor of FRR, but remains available for the time being for compatibility/preference. Pull requests will be considered if submitted, but we recommend transitioning to the FRR package.

Actions #2

Updated by Dirk Meyer over 4 years ago

Please consider the following pull request:

https://github.com/pfsense/FreeBSD-ports/pull/690

Actions #3

Updated by Jim Pingle over 4 years ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Renato Botelho over 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.5.0
  • % Done changed from 0 to 100
  • Affected Version set to All

PR has been merged. Thanks!

Actions #5

Updated by Jim Pingle over 4 years ago

  • Target version deleted (2.5.0)
Actions #6

Updated by Viktor Gurov over 4 years ago

  • Status changed from Feedback to Resolved

tested 2.5.0.a.20200122.2323 on with OpenBGPD 0.11_11

starts fine

Actions

Also available in: Atom PDF