[BUG] 集群中存在多个子网和 IP 池时,kubeovn 无法正确识别 attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
为 kubevirt VirtualMachine 分配 IP 地址
#4573
Labels
bug
Something isn't working
Kube-OVN Version
v1.12
Kubernetes Version
v1.25.3
Operation-system/Kernel Version
❯ awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release
"Ubuntu 22.04.2 LTS"
❯ uname -r
6.8.0-40-generic
Description
集群中存在多个子网和 IP 池时,kubeovn 无法正确识别
attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
为 kubevirt VirtualMachine 分配 IP 地址。Steps To Reproduce
subnet-10-66
和subnet-10-69
子网:subnet-10-66-6
和subnet-10-69-9
IP 地址池,并且分别指定 subnet 字段为subnet-10-66
和 subnet-10-69:attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
virt-launcher-vmpod
kube-ovn-controller
日志,发现它尝试从subnet-10-66-6
IP 地址池中分配 IP(期望状态是从 subnet-10-69-9 IP 池中分配 IP,因为 subnet-10-69-9 IP 池与 subnet-10-69 子网绑定)attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
和attachnet.default.ovn.kubernetes.io/ip_pool: subnet-10-69-9
,IP 分配正常,kubevirt VirtualMachine 正常启动subnet-10-66-9
和subnet-10-69-9
,并且仅指定 kubevirt VirtualMachineattachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
,IP 分配正常,kubevirt VirtualMachine 正常启动Current Behavior
集群中同时存在多个子网和 IP 池,kubeovn 无法从通过指定
attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
为 kubevirt VirtualMachine 分配 IP 地址。详见 kube-ovn-controller 日志:
Expected Behavior
集群中同时存在多个子网和 IP 池时,kubeovn 能正确的通过
attachnet.default.ovn.kubernetes.io/logical_switch: subnet-10-69
为 kubevirt VirtualMachine 分配 IP 地址。The text was updated successfully, but these errors were encountered: