<fix>[core]: select callback ip by target#4423
Conversation
Select the management callback address by remote target IP version in dual-stack MN deployments. Keep explicit REST callback headers unchanged and keep non-IP targets on the existing default callback URL. Resolves: ZSTAC-86567 Change-Id: Id474bdc9002f25dfb1cf6334f0b18ffad3d2a526
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 37 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
Warning
|
|
Comment from shixin.ruan: Code Review
结论: CONDITIONAL 回归风险: 中 修复建议: 先修上面 Major 问题后再过。当前测试只验证了纯选择函数和 callback URL 格式,没有覆盖通用 async REST 热路径的外部 shell 调用成本,也没有覆盖 route source 返回非配置 MN 地址的场景。 |
Resolve review comment on MR !10385. Generic REST callback selection now uses configured MN addresses by target IP version and does not invoke ip route get on async REST hot path. Non-configured route source candidates are ignored. Resolves: ZSTAC-86567 Change-Id: Ia9a34bbe87c21067643e3bbfb410e8b501d25eb3
|
Comment from shixin.ruan: Review comment fixed. Defect type: performance and callback address correctness. Root cause: Fix:
Verification:
Commit: c58b24e [core]: avoid route shell in callback |
Root cause:
Dual-stack MN keeps management.server.ip as the primary address and stores the secondary family in management.server.ip4/ip6. Some callback paths always used management.server.ip, so IPv6 resources could receive an IPv4 callback address, or IPv4 resources could receive an IPv6 callback address.
Fix:
Verification:
sync from gitlab !10385