Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

MTU size mismatch among "ip a" , "weave status connection" and "docker logs weave" #3293

Closed
@deshui123

Description

I start weave in cni plugin.
Although I modify WEAVE_MTU to 1464 and the docker logs also show the MTU changed to 1464, "ip a" or "weave status connections" still show the MTU is 1376.
When I reboot VM, "ip a" and "weave status connections" show the MTU is 1464, but "weave status connections" run on other VM which is not reboot still show the MTU is 1376.
My questions:

  1. Change MTU before weave launch, why reboot VM is needed?
  2. Why MTU mismatch between "weave status connection" and "docker logs weave"
  3. why "weave status connection" show diff MTU on diff VMs?
    ==================Before reboot h-mul-worker-edge-02=================
    [root@h-mul-worker-edge-01 ~]$ ip a
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1550 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:53:04:a0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.134/24 brd 192.168.10.255 scope global dynamic eth0
    valid_lft 84172sec preferred_lft 84172sec
    16: weave: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1376 qdisc noqueue state UP qlen 1000
    link/ether 2e:90:9f:3f:68:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.64/24 scope global weave
    valid_lft forever preferred_lft forever

[root@h-mul-worker-edge-01 ~]$ weave status connections
-> 192.168.10.132:6783 established encrypted fastdp da:c6:c9:1d:69:6b(h-mul-control-worker-edge-storage-01) encrypted=truemtu=1376
<- 192.168.10.136:55940 established encrypted fastdp f2:c3:6b:d2:79:86(h-mul-control-worker-edge-storage-02) encrypted=truemtu=1376
-> 192.168.10.135:6783 established encrypted fastdp 96:ba:36:60:bc:31(h-mul-worker-edge-02) encrypted=truemtu=1376
<- 192.168.10.133:34488 established encrypted fastdp 9a:b2:24:e2:69:b1(h-mul-control-worker-edge-storage-03) encrypted=truemtu=1376

==============after reboot h-mul-worker-edge-02=============

[root@h-mul-worker-edge-02 ~]$ date;ip a
Tue May 8 04:04:11 UTC 2018
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1550 qdisc pfifo_fast state UP qlen 1000
link/ether fa:16:3e:9b:43:4c brd ff:ff:ff:ff:ff:ff
inet 192.168.10.135/24 brd 192.168.10.255 scope global dynamic eth0
valid_lft 86269sec preferred_lft 86269sec
8: weave: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1464 qdisc noqueue state UP qlen 1000
link/ether 96:ba:36:60:bc:31 brd ff:ff:ff:ff:ff:ff

[root@h-mul-worker-edge-01 ~]$ date;weave status connections
Tue May 8 04:04:15 UTC 2018
-> 192.168.10.132:6783 established encrypted fastdp da:c6:c9:1d:69:6b(h-mul-control-worker-edge-storage-01) encrypted=truemtu=1376
<- 192.168.10.136:55940 established encrypted fastdp f2:c3:6b:d2:79:86(h-mul-control-worker-edge-storage-02) encrypted=truemtu=1376
-> 192.168.10.135:6783 established encrypted fastdp 96:ba:36:60:bc:31(h-mul-worker-edge-02) encrypted=truemtu=1376
<- 192.168.10.133:34488 established encrypted fastdp 9a:b2:24:e2:69:b1(h-mul-control-worker-edge-storage-03) encrypted=truemtu=1376

[root@h-mul-worker-edge-02 ~]$ date;weave status connections
Tue May 8 04:23:09 UTC 2018
<- 192.168.10.133:57192 established encrypted fastdp 9a:b2:24:e2:69:b1(h-mul-control-worker-edge-storage-03) encrypted=truemtu=1464
-> 192.168.10.132:6783 established encrypted fastdp da:c6:c9:1d:69:6b(h-mul-control-worker-edge-storage-01) encrypted=truemtu=1464
-> 192.168.10.136:6783 established encrypted fastdp f2:c3:6b:d2:79:86(h-mul-control-worker-edge-storage-02) encrypted=truemtu=1464
<- 192.168.10.134:55148 established encrypted fastdp 2e:90:9f:3f:68:1c(h-mul-worker-edge-01) encrypted=truemtu= 1464

====================================================================

[root@h-mul-worker-edge-02 ~]$ cat /etc/systemd/system/weave.service
[Unit]
Description=Weave Network
Documentation=http://docs.weave.works/weave/latest_release/
Requires=docker.service
After=docker.service

[Service]
Restart=always
RestartSec=20
TimeoutStartSec=20m

EnvironmentFile=-/etc/sysconfig/weave
Environment="CHECKPOINT_DISABLE=1"
Environment="WEAVE_MTU=1464"

ExecStartPre=-/usr/bin/docker rm -f weave
ExecStartPre=/usr/bin/weave launch --no-restart --no-dns --ipalloc-range 192.168.1.0/24 --password $WEAVE_PASSWORD $PEERS
ExecStart=/usr/bin/docker attach weave
ExecStop=/usr/bin/weave stop
ExecStopPost=-/usr/bin/docker stop -t 5 weave

[Install]
WantedBy=multi-user.target

[root@h-mul-worker-edge-01 ~]$ docker logs weave
INFO: 2018/05/08 02:58:59.807484 EMSGSIZE on send, expecting PMTU update (IP packet was 60052 bytes, payload was 60044 bytes)
INFO: 2018/05/08 02:58:59.809011 sleeve ->[192.168.10.132:6783|da:c6:c9:1d:69:6b(h-mul-control-worker-edge-storage-01)]: Effective MTU verified at 1464
INFO: 2018/05/08 02:58:59.816841 EMSGSIZE on send, expecting PMTU update (IP packet was 60052 bytes, payload was 60044 bytes)
INFO: 2018/05/08 02:58:59.818121 sleeve ->[192.168.10.136:6783|f2:c3:6b:d2:79:86(h-mul-control-worker-edge-storage-02)]: Effective MTU verified at 1464
INFO: 2018/05/08 02:58:59.829008 EMSGSIZE on send, expecting PMTU update (IP packet was 60052 bytes, payload was 60044 bytes)
INFO: 2018/05/08 02:58:59.830542 sleeve ->[192.168.10.135:6783|96:ba:36:60:bc:31(h-mul-worker-edge-02)]: Effective MTU verified at 1464
INFO: 2018/05/08 02:59:00.019088 ->[192.168.10.133:34488] connection accepted
INFO: 2018/05/08 02:59:00.022479 ->[192.168.10.133:34488|9a:b2:24:e2:69:b1(h-mul-control-worker-edge-storage-03)]: connection ready; using protocol version 2

My docker config
OPTIONS='--selinux-enabled=false --storage-driver=overlay2 --storage-opt=overlay2.override_kernel_check=true --graph=/data0/docker --live-restore --mtu=1550'

attach file is full log
weave-log.txt

we use ansible to start weave. When modify weave config, we run "systemctl daemon-reload""systemctl enable weave""systemctl restart weave" to wait weave startup. After that we run "weave reset --force" to reset weave and then run "weave expose" to expose containers in the default subnet

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions