Wrong MTU values for container's NICs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Medium
|
Witold Krecicki | ||
MAAS |
Invalid
|
Medium
|
Unassigned | ||
2.3 |
Invalid
|
Medium
|
Unassigned |
Bug Description
When juju deployed a container on a machine, it didn't pass MTU values properly to LXC configuration. MTU stanzas are also missing from ENI on the container.
Physical machine's ENI:
auto eth4
iface eth4 inet manual
mtu 1500
auto eth1.2733
iface eth1.2733 inet manual
mtu 9000
vlan-raw-device eth1
vlan_id 2733
auto br-eth4
iface br-eth4 inet static
address 10.245.209.20/20
gateway 10.245.208.1
bridge_ports eth4
auto br-eth1.2733
iface br-eth1.2733 inet static
address 192.168.33.127/24
bridge_ports eth1.2733
This means there are two bridges for containers. One with MTU 1500, and the other with MTU 9000. However, container ends up being:
# lxc config show juju-e65005-
mtu: "1500"
mtu: "1500"
And ENI from container:
# cat /var/lib/
auto lo eth1 eth0
iface lo inet loopback
dns-nameservers 10.245.208.31 10.245.208.32 10.245.208.33
dns-search maas
iface eth0 inet static
address 192.168.33.141/24
iface eth1 inet static
address 10.245.209.36/20
gateway 10.245.208.1
tags: | added: cpe-onsite |
tags: | added: cdo-qa foundations-engine |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Witold Krecicki (wpk) |
milestone: | none → 2.3-rc2 |
Changed in maas: | |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → 2.4.0alpha1 |
no longer affects: | juju/2.3 |
tags: | added: internal |
Changed in juju: | |
importance: | Critical → Medium |
Changed in maas: | |
status: | Triaged → Invalid |
Changed in juju: | |
status: | Triaged → Invalid |
tags: | added: canonical-bootstack |
Looks like juju detects correct settings from the machine (look for 192.168.33 subnet):
2017-11-21 00:51:24 DEBUG juju.worker. machiner machiner.go:172 observed network config updated for "machine-16" to [{1 127.0.0.0/8 65536 0 lo loopback false false loopback 127.0.0.1 [] [] []} {1 ::1/128 65536 0 lo loopback false false loopback ::1 [] [] []} {2 14:02:ec:42:38:dc 1500 0 eno1 ethernet false false manual [] [] []} {3 5c:b9:01:9a:3c:88 10.245.208.0/20 1500 0 eth4 ethernet false false static 10.245.209.20 [] [] []} {3 5c:b9:01:9a:3c:88 1500 0 eth4 ethernet false false manual [] [] []} {4 14:02:ec:42:38:dd 1500 0 eno2 ethernet false false manual [] [] []} {5 14:02:ec:42:38:de 1500 0 eno3 ethernet false false manual [] [] []} {6 5c:b9:01:9a:3c:89 9000 0 eth1 ethernet false false manual [] [] []} {7 14:02:ec:42:38:df 1500 0 eno4 ethernet false false manual [] [] []} {8 00:11:0a:66:2c:b4 9000 0 eth6 ethernet false false manual [] [] []} {9 00:11:0a:66:2c:b4 9000 0 eth7 ethernet false false manual [] [] []} {10 00:11:0a:66:2c:b4 9000 0 bond0 bond false false manual [] [] []} {11 00:11:0a:66:2c:b4 192.168.35.0/24 9000 0 bond0.2735 802.1q false false static 192.168.35.8 [] [] []} {11 00:11:0a:66:2c:b4 9000 0 bond0.2735 802.1q false false manual [] [] []} {12 00:11:0a:66:2c:b4 192.168.36.0/24 9000 0 bond0.2736 802.1q false false static 192.168.36.8 [] [] []} {12 00:11:0a:66:2c:b4 9000 0 bond0.2736 802.1q false false manual [] [] []} {13 5c:b9:01:9a:3c:89 192.168.33.0/24 9000 0 eth1.2733 802.1q false false static 192.168.33.127 [] [] []} {13 5c:b9:01:9a:3c:89 9000 0 eth1.2733 802.1q false false manual [] [] []} {14 5c:b9:01:9a:3c:89 1500 0 eth1.2734 802.1q false false manual [] [] []} {15 6a:43:a8:e2:cb:49 1500 0 lxdbr0 bridge false false manual [] [] []} {15 6a:43:a8:e2:cb:49 1500 0 lxdbr0 bridge false false manual [] [] []}]
2017-11-21 00:55:14 DEBUG juju.provisione r.lxd host_preparer. go:111 updating observed network config for "machine-16" to []params. NetworkConfig{ ... NetworkConfig{ DeviceIndex: 22, MACAddress: "5c:b9: 01:9a:3c: 89", CIDR:"192. 168.33. 0/24", MTU:9000, ProviderId:"", ProviderSubnetI d:"", ProviderSpaceId:"", ProviderAddress Id:"", ProviderVLANId:"", VLANTag:0, InterfaceName: "br-eth1. 2733", ParentInterface Name:"" , InterfaceType: "bridge" , Disabled:false, NoAutoStart:false, ConfigType: "static" , Address: "192.168. 33.127" , DNSServers: []string( nil), DNSSearchDomain s:[]string( nil), GatewayAddress:"", Routes: []params. NetworkRoute( nil)}.. .
params.
But however, creates a container with wrong MTU:
2017-11-21 00:56:32 DEBUG juju.cloudconfi g.containerinit container_ userdata. go:73 generating network config from container. NetworkConfig{ NetworkType: "bridge" , Device:"lxdbr0", MTU:0, Interfaces: []network. Interfa network. InterfaceInfo{ DeviceIndex: 0, MACAddress: "00:16: 3e:4d:a2: ff", CIDR:"192. 168.33. 0/24", ProviderId:"227", ProviderSubnetI d:"4", ProviderNetwork Id:"", ProviderSpaceId:"", ProviderVLANId: "5037", Provid es:[]string( nil), VLANTag:273...
ceInfo{
erAddressId:"409", AvailabilityZon