LXD - When using Bond interface in active-rr my lxd container are not getting IP address from dhcp


(Sylvain Le Blanc) #1

I was testing different netplan config for my container server and found that bond mode active-balance and 802.3ad are working as expected, but when I try balance-rr, my container where not getting there IP address !!.

This is my 802.ad netplan config

network:
version: 2
renderer: networkd
ethernets:
enp0s31f6:
match:
macaddress: 1c:1b:0d:61:85:40
dhcp4: no
dhcp6: no
mtu: 9000
enp12s0f0:
match:
macaddress: 00:1b:21:66:6c:c8
dhcp4: no
dhcp6: no
mtu: 9000
bonds:
bond0:
interfaces: [ enp0s31f6, enp12s0f0 ]
mtu: 9000
parameters:
mode: 802.3ad
bridges:
br1:
interfaces: [bond0]
dhcp4: no
dhcp6: no
addresses: [192.168.1.166/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1, 1.1.1.1, 1.0.0.1]

Here is my active-rr netplan config

network:
version: 2
renderer: networkd
ethernets:
enp0s31f6:
match:
macaddress: 1c:1b:0d:61:85:40
dhcp4: no
dhcp6: no
mtu: 9000
enp12s0f0:
match:
macaddress: 00:1b:21:66:6c:c8
dhcp4: no
dhcp6: no
mtu: 9000
bonds:
bond0:
interfaces: [ enp0s31f6, enp12s0f0 ]
mtu: 9000
parameters:
mode: active-rr
bridges:
br1:
interfaces: [bond0]
dhcp4: no
dhcp6: no
addresses: [192.168.1.166/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1, 1.1.1.1, 1.0.0.1]

His there something buggy somewhere ?