Use px/agent_status_diagnostics
script within px cli to detect missing kernel headers
#2065
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary: Use
px/agent_status_diagnostics
script within px cli to detect missing kernel headersThis PR leverages the script added in #2064 to detect missing kernel headers during cli deploys and
px collect-logs
commands. This solves 2/3 of the use cases I was hoping to identify for #2051 (the last being helm installs).A recent example of this problem is #1986, where a Go TLS tracing bug went undiagnosed for months (August to December). Amazon Linux 2023's headers are different enough that it breaks Go TLS tracing when pixie's pre-packaged headers are used. The tooling in this PR would have provided a few opportunities for this to be caught.
Relevant Issues: #2051
Type of change: /kind feature
Test Plan: Verified the following scenarios
Test cases
px collect-logs
works against a cloud that doesn't have apx/agent_status_diagnostics
scriptpx collect-logs
works against a cloud that does have apx/agent_status_diagnostics
scriptpx collect-logs
identifies when kernel headers are missing whenpx/agent_status_diagnostics
presentpx collect-logs
prompts auth flow when credentials don't match current cloudpx deploy
on pre v0.14.14 (older) vizier with existing bundle warns that kernel headers should be installedpx deploy
on pre v0.14.14 (older) vizier with latest bundle warns that kernel headers should be installedpx deploy
on v0.14.14 vizier with latest bundle warns appropriate when kernel headers are missingChangelog Message: Enhanced the
px
cli'sdeploy
andcollect-logs
commands to surface when kernel headers aren't installed. This is a common source of bugs that can only be addressed by installing your distro's kernel headers.