-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PESDLC-995 Create means to search logs in cloud pods #17250
Conversation
fe02da2
to
2747c4d
Compare
LGTM |
a6267cf
to
48d25e0
Compare
48d25e0
to
ad7ad79
Compare
/ci-repeat 1 |
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46633#018e67e1-00f2-4051-8a54-aa4ceeb20562 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46825#018e7c7b-1137-44a2-ad30-9d2ce35fed14 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46825#018e7ca3-6d4d-4980-a8b8-14e5ae6f17bb ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46825#018e7ca3-6d50-4351-8236-2aa5a24d6d86 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46841#018e7d7d-1a5f-4699-b0c8-4e5007d70905 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46841#018e7d7d-1a5c-4e11-bc4b-d3c287008c71 |
super().__init__(test_context, allow_list, logger) | ||
self.targetpath = targetpath | ||
|
||
def _capture_log(self, node, expr) -> Generator[str, None, None]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It assumes that kubectl command would work. We might want to add an Exception in case it failed to capture logs for pod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Will do.
Class uses nsenter tool to switch namespaces when running priviledged on specific kubernetes nodes. Can be used to access node for given pod.
Approach is searches for logs on the kube node itself. And grabs the ones that is corresponds to RP pod name.
new failures in https://buildkite.com/redpanda/redpanda/builds/46841#018e7d7d-1a5c-4e11-bc4b-d3c287008c71:
|
LGTM so far |
Investigation shows that Containerd stored logs only in |
/ci-repeat 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The only thing is we are reading the whole log file into memory with cat + grep, but that shouldn't be the issue
Actual command is running without TTY on the node itself and the cat is actually streaming the data to stdout instead of loading the whole thing. So this will not affect RP that resides on the same node because we are making it in-between tests. |
To eliminate code duplication and offload some of the methods to external class, new util classes is introduced with abstract approach to reuse checks for both local run and cloud
Backports Required
Release Notes