In task T3302, stdout from conf_mode scripts called by vyos-configd was redirected to the console (or file, on boot) using the native Python contextmanager redirect_stdout. As understood, this contextmanager will only redirect stdout explicitly coming from the scripts themselves, and not that of any subbprocesses invoked --- however, capturing stdout from subprocesses is important, notably when debugging with, for example, vyos.ifconfig.debug. In this task, we provide a contextmanager to address this.
Description
Description
Details
Details
- Difficulty level
- Unknown (require assessment)
- Version
- -
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Internal change (not visible to end users)
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | BUG | jestabro | T2347 During commit, any script output directed to stdout will contain path | ||
Resolved | jestabro | T3302 Make vyos-configd relay stdout from scripts to the user's console | |||
Resolved | jestabro | T3411 Extend the redirect_stdout context manager in vyos-configd to redirect stdout from subprocesses |