Skip to content

Commit 08ae9f9

Browse files
Merge pull request #22631 from vbotbuildovich/backport-pr-22334-v24.2.x-108
[v24.2.x] rpk: Add uname -a to debug bundle
2 parents ecc917f + 38c92aa commit 08ae9f9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/go/rpk/pkg/cli/debug/bundle/bundle_k8s_linux.go

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func executeK8SBundle(ctx context.Context, bp bundleParams) error {
8181
saveNTPDrift(ps),
8282
saveResourceUsageData(ps, bp.y),
8383
saveSlabInfo(ps),
84+
saveUname(ctx, ps),
8485
}
8586

8687
// We use the K8S to discover the cluster's admin API addresses and collect

src/go/rpk/pkg/cli/debug/bundle/bundle_linux.go

+8
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func executeBundle(ctx context.Context, bp bundleParams) error {
155155
saveSysctl(ctx, ps),
156156
saveSyslog(ps),
157157
saveTopOutput(ctx, ps),
158+
saveUname(ctx, ps),
158159
saveVmstat(ctx, ps),
159160
}
160161

@@ -699,6 +700,13 @@ func saveDNSData(ctx context.Context, ps *stepParams) step {
699700
}
700701
}
701702

703+
// Saves the output of `uname -a`.
704+
func saveUname(ctx context.Context, ps *stepParams) step {
705+
return func() error {
706+
return writeCommandOutputToZip(ctx, ps, filepath.Join(linuxUtilsRoot, "uname.txt"), "uname", "-a")
707+
}
708+
}
709+
702710
// Saves the disk usage total within redpanda's data directory.
703711
func saveDiskUsage(ctx context.Context, ps *stepParams, y *config.RedpandaYaml) step {
704712
return func() error {

0 commit comments

Comments
 (0)