apache / apache/cloudstack

Allow manual assignment of VR public IP address in Routed Mode networks

未關閉
#13,184 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

component:networking type:improvement
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
7 天 14 小時
30 天內合併 PR
31

描述

The required feature described as a wish

Hi,

Description

In routed mode networks, the VR currently receives its public IP address dynamically from the available public IP pool. There is no supported mechanism to manually assign or pin a specific public IP address to the VR itself.

For operators integrating CloudStack into existing routed infrastructure, deterministic VR public IP assignment is often required for:

  • Upstream firewall rules
  • Static routing policies
  • BGP/edge integrations
  • Monitoring and observability
  • DNS and reverse DNS consistency
  • HA/failover operational predictability
  • Migration scenarios from existing infrastructure

Current Behavior

When a routed mode network is created, the VR public IP is automatically selected from the public IP range by CloudStack.

Operators cannot:

  • Specify a desired public IP during network creation
  • Reserve a public IP specifically for VR assignment
  • Reassign the VR to a chosen public IP after deployment

Proposed Feature

As an Operator I would like to deterministicly assign public IP address of a VR in Routed Mode networks.

Proof of Concept / Observed Behavior

I tested this by modifying the validation logic that currently rejects --srcipaddress on networks without NAT enabled (which includes routed mode networks).

After relaxing the conditional check to allow --srcipaddress in routed networks (Starting here), the VR was successfully deployed using the manually specified public IP and operated correctly.

This suggests the limitation is primarily an API/CLI validation restriction rather than a fundamental networking or VR capability limitation.

Example

Current behavior:

cloudmonkey create network ... --srcipaddress=<ip>

Give a result that the parameter srcipaddress is not supported for networks without SourceNat.

Modified behavior:

Allow srcipaddress for routed mode networks
VR deploys successfully with the specified public IP

Suggestion

The validation logic could potentially be updated to:

  • Continue rejecting srcipaddress for unsupported network types
  • Explicitly allow it for routed mode networks where deterministic VR addressing is desired

What are your thoughts?

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 server/src/main/java/com/cloud/network/IpAddressManagerImpl.java 第 1641 行附近開始,重現帶有 --srcipaddress 的 cloudmonkey create network 命令。追蹤路由模式和不含 SourceNat 的網路之驗證,然後使用手動指定的公用 IP 驗證 VR 部署。完成標準是路由模式接受該位址,同時不支援的網路類型仍被拒絕。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
cloud, networking
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。