pkg/daemon: log pending config to journal#711
pkg/daemon: log pending config to journal#711openshift-merge-robot merged 2 commits intoopenshift:masterfrom
Conversation
cff0cb9 to
534dcca
Compare
There was a problem hiding this comment.
same, message_id can be just what we want...see https://github.com/openshift/machine-config-operator/pull/711/files#r281399898
There was a problem hiding this comment.
output to json to read BOOT_ID and MESSAGE
There was a problem hiding this comment.
also, we might want to have a customized "machine-config-daemon-pending-config" as msgid - not sure about opinions on this?
There was a problem hiding this comment.
This could use some abstraction into a wrapper that takes key=value strings as varargs or so.
(One other random thought I had is that we systemd-run a service on the host and send our logs to it and have it log them; then we can properly systemctl status openshift-machine-config or so - it would also basically act as a host-side mutex too to make doubly sure there aren't multiple MCDs)
|
I know I suggested this...but I'm wavering a bit. I'd be a lot happier if we had a stronger idea of what was happening...I really really want to get live access to an affected cluster. Maybe the best bet is to keep throwing in more logging PRs and see what comes from that. |
I concur with that - I opened this to validate if it was something which we might pursue.. |
|
/retest |
|
console/authentication failures /retest |
|
/retest |
|
There was a problem hiding this comment.
Could this end up being a very large error to return? IE: journalOutput containing lots of content?
There was a problem hiding this comment.
we're filtering out the journal itself only on our message id and even if we reboot 100 times, we only get 100 lines - this error isn unreacheable though, I need to remove it
There was a problem hiding this comment.
It may be worth noting why writing to stdin is used rather than directly executing the command with the message. At first I was going to recommend simplifying via a direct call until I gave logger a run and realized that direct calling it is awkward (double enter to end input).
|
/retest |
2 similar comments
|
/retest |
|
/retest |
769b887 to
b0cbf41
Compare
|
oh so nice this worked and we're now reading/writing to journal the pending config |
|
@runcom are we going this route for now then? |
let's hear back from @cgwalters, but I would greatly love to merge this and validate it properly in the upgrade jobs (we need this to land to master in order for the upgrade to pick up this change as the starting point of the job itself). |
|
I think what's pushing me towards merging this the most is that it will make auditing events easier. The code design looks good to me. /lgtm |
|
/retest |
|
New changes are detected. LGTM label has been removed. |
|
rebased and re-pushed. |
|
@runcom: you cannot LGTM your own PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
New changes are detected. LGTM label has been removed. |
Let's try to avoid losing a file write...
|
New changes are detected. LGTM label has been removed. |
Let's try to avoid losing a file write...