On Wed, Mar 8, 2017 at 5:03 AM, Dimitri John Ledkov <email address hidden>
wrote:
> I wonder if following should be done (in netplan code that does the re-
> trigger, or outside after .link files modified):
>
> $ sync
> $ udevadm control --reload
> $ udevadm trigger --verbose --subsystem-match=net --action=add
>
> This is a hypothesis, to try out first to reproduce the original bug,
> and then see if extra reload helps udevd to re-read .link files.
>
I suspect there's something in the subsystem trigger which does not
replay add events on devices (for some reason unknown).
A more focused path is:
udevadm trigger --verbose --action=add /sys/class/net/$iface
Which also fails to get .link files read.
I'm working writing steps for a recreate; but in the mean time I tested this
in a zesty container:
root@z2:~# cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
mtu: 1492
match: macaddress: '00:16:3e:67:2b:8f'
eth1: addresses:
- 192.168.23.2/14
mtu: 9000
match: macaddress: '00:16:3e:b9:7b:7a'
On Wed, Mar 8, 2017 at 5:03 AM, Dimitri John Ledkov <email address hidden>
wrote:
> I wonder if following should be done (in netplan code that does the re- match=net --action=add
> trigger, or outside after .link files modified):
>
> $ sync
> $ udevadm control --reload
> $ udevadm trigger --verbose --subsystem-
>
> This is a hypothesis, to try out first to reproduce the original bug,
> and then see if extra reload helps udevd to re-read .link files.
>
I suspect there's something in the subsystem trigger which does not
replay add events on devices (for some reason unknown).
A more focused path is: net/$iface
udevadm trigger --verbose --action=add /sys/class/
Which also fails to get .link files read.
I'm working writing steps for a recreate; but in the mean time I tested this
in a zesty container:
root@z2:~# cat /etc/netplan/ 50-cloud- init.yaml cloud.cfg. d/99-disable- network- config. cfg with the following:
macaddress: '00:16:3e:67:2b:8f'
addresses:
macaddress: '00:16:3e:b9:7b:7a'
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
mtu: 1492
match:
eth1:
- 192.168.23.2/14
mtu: 9000
match:
root@z2:~# cat /run/systemd/ network/ 10-netplan- eth0.link 00:16:3e: 67:2b:8f
[Match]
MACAddress=
[Link]
WakeOnLan=off
MTUBytes=1492
root@z2:~# ifconfig eth0 mtu 4800 net/eth0/ mtu net/eth0/ mtu match=net --action=add virtual/ net/eth0 virtual/ net/eth1 virtual/ net/lo net/eth0/ mtu network' changed network' changed network/ 99-default. link network/ 10-netplan- eth1.link network/ 10-netplan- eth0.link libudev/ libudev- device. c:128, get_driver( ). Ignoring. network/ 10-netplan- eth0.link applies to device eth0 LINK_FILE= /run/systemd/ network/ 10-netplan- eth0.link net/eth0/ mtu
root@z2:~# cat /sys/class/
4800
root@z2:~# udevadm control --reload
root@z2:~# cat /sys/class/
4800
root@z2:~# udevadm trigger --verbose --subsystem-
/sys/devices/
/sys/devices/
/sys/devices/
root@z2:~# cat /sys/class/
4800
root@z2:~# udevadm test-builtin net_setup_link /sys/class/net/eth0
calling: test-builtin
=== trie on-disk ===
tool version: 232
file size: 8441068 bytes
header size 80 bytes
strings 1846908 bytes
nodes 6594080 bytes
Load module index
Found container virtualization lxc
timestamp of '/etc/systemd/
timestamp of '/run/systemd/
Parsed configuration file /lib/systemd/
Parsed configuration file /run/systemd/
Parsed configuration file /run/systemd/
Created link configuration context.
ID_NET_DRIVER=veth
Assertion 'udev_device' failed at ../src/
function udev_device_
Config file /run/systemd/
Could not set WakeOnLan of eth0 to off: Operation not supported
ID_NET_
Unload module index
Unloaded link configuration context.
root@z2:~# cat /sys/class/
1492
> -- /bugs.launchpad .net/bugs/ 1669564 /bugs.launchpad .net/ubuntu/ +source/ systemd/ +bug/ +subscriptions
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> udevadm trigger subsystem-match=net doesn't always run rules
>
> To manage notifications about this bug go to:
> https:/
> 1669564/
>