Project

General

Profile

Bug #9836

OpenBGPD package deamon starts twice

Added by Dirk Meyer about 2 months ago. Updated about 1 month ago.

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

100%

Estimated time:
Affected Version:
All
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.

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

History

#1 Updated by Jim Pingle about 2 months 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.

#2 Updated by Dirk Meyer about 2 months ago

Please consider the following pull request:

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

#3 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Pull Request Review

#4 Updated by Renato Botelho about 2 months 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!

#5 Updated by Jim Pingle about 1 month ago

  • Target version deleted (2.5.0)

Also available in: Atom PDF