Network Namespace extension should support untagged public networks

未关闭
#8 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
networking

调研方向

从 Network Namespace extension script 和公共网络设置路径开始,然后运行列出的 Marvin 测试:test_05_isolated_network_full_lifecycle、test_06_vpc_multi_tier_and_restart、test_07_vpc_network_acl 和 test_09_vpc_source_nat_ip_update。验证数字 VLAN 配置保留其当前行为,并验证显式 untagged 配置能够完成地址、路由、ARP 和 NAT 设置,且不会创建 VLAN 子接口。

由索引模型根据 Issue 内容生成。

描述

Summary

The current Network Namespace extension code does not support an untagged public network. It treats the public VLAN value as a numeric VLAN ID and attempts to create a VLAN sub-interface. In an environment where the public network is intentionally untagged, this causes the following Marvin tests to fail if the Public network is not tagged (a valid scenario):

  • test_05_isolated_network_full_lifecycle
  • test_06_vpc_multi_tier_and_restart
  • test_07_vpc_network_acl
  • test_09_vpc_source_nat_ip_update

The later Static NAT and port-forwarding errors appear to be consequences of the initial public-network setup failure, rather than four unrelated test failures.

Environment

  • CloudStack Marvin smoke tests
  • Network Namespace extension
  • Public network is untagged and uses the existing bridge/uplink path
  • No tagged public VLAN is available on this test network

Observed behavior

The extension attempts to create a VLAN interface using the literal value untagged, resulting in an error similar to:

Error: argument "untagged" is wrong: id is invalid

The Network Namespace extension script then exits with code 2, and the dependent network operations fail.

Expected behavior

When the configured public network is untagged, the extension should:

  1. Skip creation of an ethX.<vlan> VLAN sub-interface.
  2. Use the existing bridge or physical uplink directly.
  3. Continue with the required address, route, ARP, and NAT setup.
  4. Preserve the current behavior for numeric VLAN configurations.

A public network does not inherently require VLAN tagging; both tagged and untagged deployments are valid. Supporting the explicit untagged mode would allow the same tests to run on simple bridge/NAT-based lab networks without requiring an artificial VLAN configuration.

Validation

Please consider adding coverage for both:

  • Numeric VLAN configuration, preserving current tagged behavior.
  • Explicit untagged configuration, without creating a VLAN sub-interface.

It would also be helpful if the extension scripts used by a test run could be pinned to a commit or release, rather than fetched from a moving branch at runtime, so that failures remain reproducible.

This issue concerns the Network Namespace extension only; it is not a change to the default CloudStack Virtual Router path.

主要语言
没有语言数据
星标
4
派生
4
平均合并
1 小时
30 天内合并 PR
3

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/cloudstack-extensions 的其他 Issue

查看 apache/cloudstack-extensions 的全部 Issue

相似的 Issue

更多 Networking Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。