Skip to content

Commit

Permalink
Dump ip routes as job artifacts
Browse files Browse the repository at this point in the history
This will help troubleshoot networking issues we're seeing with Ubuntu 24.04
  • Loading branch information
rifelpet committed Dec 23, 2024
1 parent 011ab0f commit 825f908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/dump/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ func (n *logDumperNode) dump(ctx context.Context) []error {
if err := n.shellToFile(ctx, "sudo iptables -t filter --list-rules", filepath.Join(n.dir, "iptables-filter.log")); err != nil {
errors = append(errors, err)
}
if err := n.shellToFile(ctx, "ip route", filepath.Join(n.dir, "ip-routes.log")); err != nil {
errors = append(errors, err)
}

// Capture any file logs where the files exist
fileList, err := n.findFiles(ctx, "/var/log")
Expand Down

0 comments on commit 825f908

Please sign in to comment.