Repository navigation
feat(serialport): link Pod and Node timelines via Pod UIDs in serial port logs - #1181
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the ability to discover node names and resource UIDs from Kubernetes Event logs, using this information to map serial port logs to Pod timelines. It adds tasks to extract node names and resource UIDs from event logs, and builds a pattern finder for underscore-separated Pod UIDs found in cgroup paths within serial port logs. When a Pod UID is observed in serial port logs, the mapper associates the log with the corresponding Pod timeline and supplements missing Pod, PodPhase, and binding revisions if they were not already created by audit logs. Comprehensive unit tests have been added to verify these new discovery and mapping tasks. There are no review comments, so I have no feedback to provide.
kyasbal
left a comment
There was a problem hiding this comment.
One suggestion. But the other parts are LGTM.
Looks like a test is failing.
59f04ac to
726b51d
Compare
726b51d to
935392b
Compare
8634096
Summary
Links GCE node serial port logs to the corresponding Kubernetes Pod and Node timelines by matching underscore-separated Pod UIDs encoded in systemd cgroup slice names.
When Kubernetes Audit Logs are unavailable or did not capture the Pod creation prior to the inspection window, this change also supplements fallback revisions for the Pod, its
bindingsubresource, and its nodePodPhasetimeline using the node association observed in the serial port log