I re-ran the recreate on a daily artful image, updated cloud-init in the
image to use the udevadm trigger as before and noticed that it still
fails to apply the MTU to the second interface.
Taking the suggestion of including a udevadm control reload, I further
modified the image to add that reload instruction.
When using the reload then I can confirm that the MTU setting is
applied. It appears that netplan indeed should run the reload operation
in the 'netplan generate' call.
ubuntu@ubuntu:/$ cat /etc/cloud/build.info
build_name: server
serial: 20171003
ubuntu@ubuntu:/$ apt-cache policy cloud-init
cloud-init:
Installed: 17.1-0ubuntu1
Candidate: 17.1-0ubuntu1
Version table:
*** 17.1-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu artful/main amd64 Packages
100 /var/lib/dpkg/status
ubuntu@ubuntu:/$
ubuntu@ubuntu:/$ cat /run/systemd/network/*.link
[Match]
MACAddress=52:54:00:12:34:00
[Link]
Name=interface0
WakeOnLan=off
[Match]
MACAddress=52:54:00:12:34:02
[Link]
Name=interface1
WakeOnLan=off
MTUBytes=1492
ubuntu@ubuntu:/$ cat /sys/class/net/interface0/mtu
1500
ubuntu@ubuntu:/$ cat /sys/class/net/interface1/mtu
1492
ubuntu@ubuntu:/$ grep udevadm /var/log/cloud-init.log
2017-10-04 21:05:40,636 - util.py[DEBUG]: Running command ['udevadm',
'control', '--reload'] with allowed return codes [0] (shell=False, capture=True)
2017-10-04 21:05:40,642 - util.py[DEBUG]: Running command ['udevadm',
'trigger', '--verbose', '--subsystem-match=net', '--action=add'] with allowed
return codes [0] (shell=False, capture=True)
** Changed in: nplan (Ubuntu)
Status: Incomplete => New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1669564
Title:
udevadm trigger subsystem-match=net doesn't always run rules because
of reconfiguration rate-limiting
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1669564/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs