Page MenuHomeVyOS Platform

Debug output missing when frr.py called under vyos-configd
Closed, ResolvedPublicBUG

Description

The module frr.py produces debugging output when the 'flag' flie /tmp/vyos-frr.debug exists; this output is not produced when running under vyos-configd. There are two reasons: (1) the existence of the 'flag' is checked when the module is imported; vyos-configd imports before the /tmp file is created, either by vyos-router, or a 'touch' command (2) fixing 1, vyos-configd redirects stdout, but not stderr, currently; StreamHandler defaults to sys.stderr, however, preferring sys.stdout will be consistent with the call to 'frr_reload.py --stdout' and be succesfully redirected.

Details

Difficulty level
Easy (less than an hour)
Version
vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

jestabro triaged this task as Normal priority.Jan 10 2022, 10:50 PM
jestabro created this task.
jestabro created this object in space S1 VyOS Public.
jestabro moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.