Skip to content

test: add iptables monitor debug - #9414

Open
Alexander (QxBytes) wants to merge 3 commits into
mainfrom
alew/add-iptables-monitor-debug
Open

test: add iptables monitor debug#9414
Alexander (QxBytes) wants to merge 3 commits into
mainfrom
alew/add-iptables-monitor-debug

Conversation

@QxBytes

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

iptables blocker binary inside the monitor is used during startup
the wait -n drain loop in cacheContainerImageComponents reaps any background job, so a failed background bcc install is misreported as a pull failure and its log is never surfaced. dump /var/log/bcc_installation.log and report bcc_pid liveness on failure to confirm the culprit.
@github-actions github-actions Bot added the components This pull request updates cached components on Linux or Windows VHDs label Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   14 suites   56s ⏱️
415 tests 415 ✅ 0 💤 0 ❌
418 runs  418 ✅ 0 💤 0 ❌

Results for commit cef8efb.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Failure attribution can be incorrect, and required ShellSpec coverage and generated prefetch test data are missing.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds Linux VHD caching for the Azure iptables monitor and diagnostics for background-job failures.

Changes:

  • Adds azure-iptables-monitor:v0.0.5-0 for Linux AMD64/ARM64 VHDs.
  • Logs BCC state and installation output after background failures.
  • Adds binary prefetch configuration.
File summaries
File Description
vhdbuilder/packer/install-dependencies.sh Adds BCC failure diagnostics.
parts/common/components.json Adds the iptables monitor image and binaries.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +309 to +314
"containerImagePrefetch": {
"latestVersion": {
"binaries": [
"/azure-iptables-monitor",
"/azure-block-iptables"
]
Comment on lines +760 to +765
diagnoseBackgroundJobFailure() {
local ret=$1
local bcc_log="/var/log/bcc_installation.log"
echo "diagnoseBackgroundJobFailure: a background job exited with code ${ret}" >&2
echo "diagnoseBackgroundJobFailure: BCC_PID=${BCC_PID:-<unset>}" >&2
if [ -n "${BCC_PID:-}" ] && ! kill -0 "${BCC_PID}" 2>/dev/null; then
Comment on lines +765 to +766
if [ -n "${BCC_PID:-}" ] && ! kill -0 "${BCC_PID}" 2>/dev/null; then
echo "diagnoseBackgroundJobFailure: eBPF/BCC background install (PID ${BCC_PID}) has exited and is the likely source of exit ${ret} (ERR_BCC_INSTALL_TIMEOUT=170)" >&2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

components This pull request updates cached components on Linux or Windows VHDs NEVER MERGE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants