Skip to content

fix(docker): add Podman-machine gateway regression test#1873

Closed
Oxygen56 wants to merge 1 commit into
NVIDIA:mainfrom
Oxygen56:fix/add-podman-machine-gateway-test
Closed

fix(docker): add Podman-machine gateway regression test#1873
Oxygen56 wants to merge 1 commit into
NVIDIA:mainfrom
Oxygen56:fix/add-podman-machine-gateway-test

Conversation

@Oxygen56

Copy link
Copy Markdown

Summary

Add a macOS-only regression test for Podman machine bridging (#1358), picking up where #1653 left off per @drew's review.

What happened in #1653

#1653 added both a regression test and a redundant macOS early-return in uses_host_gateway_alias(). However, #1516 had already extracted the macOS logic into host_runtime_requires_host_gateway_alias(), making the uses_host_gateway_alias() change unnecessary.

What this PR does

  • Doc-comments host_runtime_requires_host_gateway_alias() to explain why macOS always routes via host-gateway
  • Adds the Podman-machine regression test (docker_gateway_route_uses_host_gateway_for_podman_machine_on_macos), gated on #[cfg(target_os = "macos")], which reproduces the exact failure from bug: gateway crash-loops on macOS — binds to VM-internal podman bridge IP (10.89.0.1) on host #1358: a Podman machine daemon reporting fedora / localhost.localdomain / no labels routes callbacks via HostGateway instead of Bridge

No changes to uses_host_gateway_alias() — the routing behavior is unchanged.

Related

cc @akram @drew @johntmyers

Add a macOS-only regression test for Podman machine bridging (NVIDIA#1358).
On macOS hosts the bridge gateway IP only exists inside the VM, so
binding fails with EADDRNOTAVAIL. The existing
host_runtime_requires_host_gateway_alias() gate already handles this,
but the regression test ensures Podman-machine-style SystemInfo (fedora,
localhost.localdomain, no labels) is routed via HostGateway.

Also document host_runtime_requires_host_gateway_alias() to make the
macOS constraint discoverable at the call site.

Co-developed-by: Akram Ben Aissi <akram@NVIDIA#1653>
Closes NVIDIA#1358

Signed-off-by: Oxygen <1391083091@qq.com>
@Oxygen56 Oxygen56 requested review from a team, derekwaynecarr and mrunalp as code owners June 11, 2026 15:53
@copy-pr-bot

copy-pr-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown

Thank you for your interest in contributing to OpenShell, @Oxygen56.

This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer.

To get vouched:

  1. Open a Vouch Request discussion.
  2. Describe what you want to change and why.
  3. Write in your own words — do not have an AI generate the request.
  4. A maintainer will comment /vouch if approved.
  5. Once vouched, open a new PR (preferred) or reopen this one after a few minutes.

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@github-actions github-actions Bot closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: gateway crash-loops on macOS — binds to VM-internal podman bridge IP (10.89.0.1) on host

1 participant