← Back to Pull requests

fix: populate network settings in container inspect when network stat… #29866

Open
Maniii97 opened this pull request with 41 lines diff across 3 files
View on GitHub
Maniii97 Maniii97 commented on Sep 30, 2026 12:50 UTC
Author

When inspecting a container running in rootless mode with pasta networking (or any setup where c.getNetworkStatus() returns empty), getContainerNetworkInfo() would return early (if len(netStatus) == 0 { return settings, nil }).

Because of this early return, user-defined networks attached to the container were never populated into NetworkSettings.Networks. This caused compatibility endpoints (GET /containers/{id}/json) and CLI inspect to report empty or missing network configurations for user-defined networks.

Fixes: https://github.com/containers/podman/issues/29862
<!-- Thanks for sending a pull request! -->

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:
<!-- Use [x] to mark as done, or click the checkbox after opening PR -->

  • I have read and understood our contributing guidelines and will not have more than two open PRs as a new contributor.

  • PR description, commit message, and GitHub comments are human-written, per LLM Policy

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all

  • commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match
    the sign-off email address. See CONTRIBUTING.md
    for more information.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)

  • Tests have been added/updated (or no tests are needed)

  • Documentation has been updated (or no documentation changes are needed)

  • All commits pass make validatepr (format/lint checks)

  • Release note entered in the section below (or None if no user-facing changes)
  • Does this PR introduce a user-facing change?

    <!--
    Write None if there are no user-facing changes, otherwise enter your release note below.
    Include "action required" if users need to take action when upgrading.
    -->

    ``release-note

    ``

    Diff: 41 lines (+36 / -5) across 3 files Reviewer: Honny1 Review duration: 92098m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.35) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 41 lines diff across 3 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 1 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.224
    Real PR Conversation Timeline
    4 items
    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Sep 30, 2026 12:50 UTC
    Reviewer

    Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

    Honny1 Honny1 requested changes on Sep 30, 2026 15:25 UTC
    Changes Requested Reviewer

    We have been getting a lot of low quality PRs that do not follow our contribution guidelines and LLM policy. So please follow them, i.e. commit should be singed also commit messages should contain a reference to fixed issue if any exists, etc.

    Honny1 Honny1 commented on Oct 29, 2026 11:08 UTC
    Contributor

    @Maniii97 Any updates on this? Also, please rebase on upstream main.

    Reviewers
    Assignees
    Maniii97 Maniii97
    Labels
    risk: low confidence: 88.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.3% (MEDIUM) · Higher = larger blast radius
    35.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.6% · Lower = rushed or shallow review
    88.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4% · Safe to merge
    4%