Skip to content

Adding -w option to frr_global_options field in /etc/frr/daemons prevents frr from starting #18107

@ben-raskin

Description

@ben-raskin

Description

Adding -w option to frr_global_options field in /etc/frr/daemons prevents frr from starting. It appears that the watchfrr daemon doesn't have a -w option which is causing the service to fail.

Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2259]:  * Starting watchfrr with command: '  /usr/lib/frr/watchfrr  -d -w -F traditional   zebra mgmtd bgpd staticd'
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: /usr/lib/frr/watchfrr: invalid option -- 'w'
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Invalid option.
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Invalid options.
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Usage : watchfrr [OPTION...] <daemon name> ...
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Watchdog program to monitor status of frr daemons and try to restart
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: them if they are down or unresponsive.  It determines whether a daemon is
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: up based on whether it can connect to the daemon's vty unix stream socket.

Version

FRRouting 10.2.1 (dev-rot-yyz-01) on Linux(6.8.0-52-generic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--sbindir=/usr/lib/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-rpki' '--disable-scripting' '--enable-pim6d' '--disable-grpc' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3'

How to reproduce

Add -w option to frr_global_options field in /etc/frr/daemons.

Expected behavior

The frr service should start, allowing the user to create network namespace VRFs.

Actual behavior

The entire frr service fails. It appears that the watchfrr daemon doesn't have a -w option which is causing the service to fail.

Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2259]:  * Starting watchfrr with command: '  /usr/lib/frr/watchfrr  -d -w -F traditional   zebra mgmtd bgpd staticd'
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: /usr/lib/frr/watchfrr: invalid option -- 'w'
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Invalid option.
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Invalid options.
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Usage : watchfrr [OPTION...] <daemon name> ...
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: Watchdog program to monitor status of frr daemons and try to restart
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: them if they are down or unresponsive.  It determines whether a daemon is
Feb 11 17:41:32 dev-rot-yyz-01 frrinit.sh[2268]: up based on whether it can connect to the daemon's vty unix stream socket.

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions