Join GitHub today
coreos-metadata logging doesn't work under systemd #2290
Container Linux Version
coreos-metadata log messages are written to the journal.
coreos-metadata log messages are not recorded anywhere.
When run directly from the command line, coreos-metadata writes logs to stderr. However, systemd sends stderr to the journal by default, and no log messages show up there. Adding
well that's not what I expected. I've been meaning to update the logging library to print synchronously anyway, and it looks like that will give us some more control over exactly where that gets printed.
I'm still not sure why it isn't logging to the journal though. Perhaps that also has to do with the async logging interacting with systemd running it and redirecting the output? I'm going to explore that possibility.
This is the list of outdated deps that could be related:
This may just be a matter of coreos-metadata writing to stdout/stderr and then being too quick at exiting. Journald in that case loses the systemd/systemd#2913 race and some service metadata are missing. Log line are still visible via