Skip to content

feat(serialport): link Pod and Node timelines via Pod UIDs in serial port logs - #1181

Merged
kyasbal merged 2 commits into
GoogleCloudPlatform:mainfrom
K53:push-uzluumrtullw
Oct 26, 2026
Merged

kyasbal merged 2 commits into
GoogleCloudPlatform:mainfrom
K53:push-uzluumrtullw

Conversation

@K53

@K53 K53 commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

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 binding subresource, and its node PodPhase timeline using the node association observed in the serial port log

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 kyasbal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion. But the other parts are LGTM.

Looks like a test is failing.

@K53
K53 force-pushed the push-uzluumrtullw branch 2 times, most recently from 59f04ac to 726b51d Compare October 26, 2026 07:51

@kyasbal kyasbal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kyasbal
kyasbal added this pull request to the merge queue Oct 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 26, 2026
@K53
K53 force-pushed the push-uzluumrtullw branch from 726b51d to 935392b Compare October 26, 2026 13:13
@kyasbal
kyasbal added this pull request to the merge queue Oct 26, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 8634096 Oct 26, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants