Skip to content

Commit

Permalink
Merge pull request #22630 from vbotbuildovich/backport-pr-22334-v24.1…
Browse files Browse the repository at this point in the history
….x-348

[v24.1.x] rpk: Add uname -a to debug bundle
  • Loading branch information
r-vasquez authored Jul 30, 2024
2 parents c74f61f + 83fcd35 commit 9cfcdd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/go/rpk/pkg/cli/debug/bundle/bundle_k8s_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func executeK8SBundle(ctx context.Context, bp bundleParams) error {
saveNTPDrift(ps),
saveResourceUsageData(ps, bp.y),
saveSlabInfo(ps),
saveUname(ctx, ps),
}

// We use the K8S to discover the cluster's admin API addresses and collect
Expand Down
8 changes: 8 additions & 0 deletions src/go/rpk/pkg/cli/debug/bundle/bundle_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func executeBundle(ctx context.Context, bp bundleParams) error {
saveSysctl(ctx, ps),
saveSyslog(ps),
saveTopOutput(ctx, ps),
saveUname(ctx, ps),
saveVmstat(ctx, ps),
}

Expand Down Expand Up @@ -699,6 +700,13 @@ func saveDNSData(ctx context.Context, ps *stepParams) step {
}
}

// Saves the output of `uname -a`.
func saveUname(ctx context.Context, ps *stepParams) step {
return func() error {
return writeCommandOutputToZip(ctx, ps, filepath.Join(linuxUtilsRoot, "uname.txt"), "uname", "-a")
}
}

// Saves the disk usage total within redpanda's data directory.
func saveDiskUsage(ctx context.Context, ps *stepParams, y *config.RedpandaYaml) step {
return func() error {
Expand Down

0 comments on commit 9cfcdd0

Please sign in to comment.