Repository navigation
fix: #7619 support IPv6-only environments with proper fallback - #7627
AsadShahid04 wants to merge 2 commits into
Conversation
- Change IPv4 error handling to fall back to IPv6 on ANY error, not just LocalIpAddressNotFound - This fixes StrategyError in IPv6-only environments where local_ip_address crate fails during netlink deserialization - Apply fix in both tcp/server.rs and utils/ip_resolver.rs - Add test case for IPv6-only environment fallback scenario Fixes ai-dynamo#7619 Signed-off-by: Asad Shahid <[email protected]>
|
👋 Hi AsadShahid04! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe changes modify IP resolution logic to attempt IPv6 fallback on any IPv4 resolution error, not just Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @AsadShahid04, what's the relationship between #7632 and #7627 - does one supersede the other? Also, can the testing (#7629) be wrapped up into a single PR along with the fix? Ideally there's only 1 PR to fix this instead of 3. |
|
@rmccorm4 — Thanks for the feedback. Let me clarify the relationship: PR Scope & Relationships#7627 (this PR) and #7632 cover the same core fix but with different scopes:
#7629 is a standalone test PR that validates the IPv6-only scenario in detail, but the fix already includes a basic test case ( Consolidation PlanI recommend closing #7632 (it's redundant) and merging this PR as-is. The test coverage is sufficient:
Summary
Would you prefer I consolidate #7629 into this PR, or is the current test coverage sufficient? |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This PR has been closed due to inactivity. If you believe this PR is still relevant, please feel free to reopen it with additional context or information. |
Description
Fixes Dynamo startup failure in IPv6-only network environments by improving IPv4→IPv6 fallback error handling.
Problem
In IPv6-only environments, the local_ip_address crate can fail with a StrategyError during netlink deserialization ("ifa_prefixlen must be initialized") instead of the expected LocalIpAddressNotFound. The current error handling only caught LocalIpAddressNotFound, causing IPv6 fallback to never execute and service startup to fail.
Solution
Changes
Fixes
Fixes #7619
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests