microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

microk8s inspect incorrectly logs the 'ip addr' and 'ip route' system commands.

Open countravioli opened this issue 1 year ago • 0 comments

In the inspect report, the commands 'ip addr' and 'ip route' were both being written to the file 'ip-addr' file.

The 'ip route' command was run second so the result was

  • misleading output in the ip-addr file actually being from 'ip-route'
  • missing the output from 'ip-addr'."

Summary

'ip addr' command will generate the 'ip-addr' file for output Corrected 'ip route' command will generate the 'ip-route' file New

Changes

One liner, redirect the output of 'ip route' to 'ip-route' file.

Testing

no testing, seemed very straight forward.

Possible Regressions

Anyone programmatically running a microk8s inspect report on failure and parsing the output of this file would need to change their system to use the "ip-route" file.

Checklist

  • [x] Read the contributions page.
  • [x] Submitted the CLA form, if you are a first time contributor.
  • [ ] The introduced changes are covered by unit and/or integration tests.

Notes

n/a

countravioli avatar Oct 02 '24 14:10 countravioli