nova docker config file /etc/default/docker can't work for contianer mtu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-docker |
New
|
Undecided
|
Unassigned |
Bug Description
1.check /etc/default/docker file
DOCKER_
2.add mtu to 1400 in this file
DOCKER_
3. service docker restart
4.boot an instance on this host
root@dev-
5.login docker container and check instance inteface mtu. it's still 1500
root@instance-
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
nsd66d4d61-09 Link encap:Ethernet HWaddr fa:16:3e:7c:51:a8
inet addr:100.64.14.223 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4192 (4.1 KB) TX bytes:648 (648.0 B)
6. if we create a docker instance directly, we will see that container interface can be changed.
so this is a bug in nova docker.
Docker daemon's option "mtu" work on docker bridge rather than which nova-docker uses.
You need to patch vifs.py some part to get the result you want.