printing the error stream of the dhclient process before killing it#369
Conversation
OddBloke
left a comment
There was a problem hiding this comment.
A couple of suggested improvements, and one higher-level question about the change.
(Sorry for the delay in reviewing this!)
OddBloke
left a comment
There was a problem hiding this comment.
OK, this change looks good now, thanks! There are conflicts which need resolving, however, I'll give this a final review once those conflicts are fixed.
|
On Thu, Oct 15, 2020 at 04:50:08AM -0700, Eduardo Otubo wrote:
I know this PR was landed months ago, and this comment will probably
be ignored, but I would like to question the choice of the word
"dhclient *error* stream" that even on a successful DHCP lease will
printout "error". I got this while running some tests and left us with
some question in mind.
Would changing "error stream" to "stderr" address this? That would seem
like a reasonable change to propose, IMO.
|
LGTM |
Logging the error stream of the dhclient process is very handy when debugging the dhclient issues since it shows different DHCP signals. Here's a sample from the cloud-init.log of how this could look like: