Feature: KVM: port isolation for guest VLANs on linux bridge (PVLAN-like isolation without OVS)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java, linux
- Lĩnh vực
- infrastructure, networking
Hướng nghiên cứu
Start by tracing InterfaceDef and the domain XML parser, then inspect BridgeVifDriver and the agent configuration that controls KVM networking. The issue describes the desired behavior and limitations, but leaves open whether isolation should be configured per host or through the network’s PVLAN setting. Done means user VM NICs on configured tagged VLANs are isolated, system VM NICs remain non-isolated, and the agent handles unsupported libvirt versions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The required feature described as a wish
As having KVM hosts with linux bridge, I would like VMs on selected shared guest VLANs to be unable to reach each other, while still reaching the gateway and the virtual router.
Use case: advanced zone without security groups, plus a shared subnet where tenants must not talk to each other. PVLAN is the natural fit, but on KVM it is only implemented for OVS (the #13521 might be related).
On linux bridge there is no supported way to get this.
Today we work around it with a groovy agent hook that adds <port isolated='yes'/> to the NIC.
But that proven to be unreliable:
- the hook only runs on VM start, so NIC hot-plug, replug and live NIC updates might
produce non-isolated ports; - a failing hook is skipped and the VM starts without isolation;
- the hook also isolates the virtual router's NIC.
Proposal
Use the kernel's bridge port isolation, which libvirt exposes as
<port isolated='yes'/>:
InterfaceDefcan emit the element, and the domain XML parser reads it back,
so NIC definitions rebuilt from a running domain keep it.- A new agent property,
network.bridge.port.isolation.vlans, lists the guest
VLANs to isolate. An entry is a VLAN ID, orlabel:vlanto match only the
physical network with that KVM traffic label, e.g.cloudbr1:100,200. BridgeVifDriverplugs user VM guest NICs on those VLANs as isolated ports.
System VM NICs stay non-isolated.- The agent refuses to start if the property is set and libvirt is too old.
Isolation between hosts still relies on the uplink switch (e.g. PVLAN there).
Limitations / open questions
- Configuration is per host, not per network. Would maintainers prefer this to
be driven by the network's existing PVLAN setting instead? Part 1 above is
needed either way. - Only isolated/promiscuous semantics; community PVLANs cannot be expressed.
- Tagged VLAN guest networks only (no untagged, no VXLAN).
I have a working patch proposal (AI generated -- https://github.com/durdin85/cloudstack/tree/kvm-bridge-port-isolation ) and can open a PR if needed, but it would be good to have some human control over this.
Thank you.
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 7 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cloudstack
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/cloudstack#14719 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
apache/cloudstack#14715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
resizeVolume of a running system VM's volume is accepted but the VM never sees the new sizeCó thể đã có người làm @bhouse-nexthop đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/cloudstack#14645 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
VR reports a load balancer change as applied when haproxy.cfg cannot be replacedCó thể đã có người làm @bhouse-nexthop đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudstack#14633 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
restartNetwork reports a ResourceUnavailableException as an unexpected error (530), unlike restartVPC (534)Có thể đã có người làm @bhouse-nexthop đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudstack#14631 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/cloudstack
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
SAP/ai-sdk-java#1206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue insight-module
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
sdlc-pro/spring-lens#606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
quality-assurance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#252 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
backlog kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
TencentBlueKing/bk-job#4627 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
openrocket/openrocket#3460 ·
Maintainer thường phản hồi trong vòng 1 ngày