netplan try: ethernet device not reverted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I have an ethernet device, with an MTU of 1500:
ubuntu@netplan:~$ ip l
...
3: ens8: <BROADCAST,
link/ether 52:54:00:f9:e9:dd brd ff:ff:ff:ff:ff:ff
I try the following config, 1-mtu.yaml:
network:
version: 2
ethernets:
ens8:
match:
- 10.10.10.2/24
mtu: 1280
I then do netplan try and let it time out and reset:
ubuntu@netplan:~$ sudo netplan try --timeout 10 --config 1-mtu.yaml
Warning: Stopping systemd-
systemd-
Do you want to keep these settings?
Press ENTER before the timeout to accept the new configuration
Changes will revert in 1 seconds
Reverting.
Warning: Stopping systemd-
systemd-
I then observe that the device has in no way been reverted: it's still up, has the IP and the MTU. To add insult to injury, it's been renamed to eth0:
ubuntu@netplan:~$ ip a
...
5: eth0: <BROADCAST,
link/ether 52:54:00:f9:e9:dd brd ff:ff:ff:ff:ff:ff
inet 10.10.10.2/24 brd 10.10.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
I have tested this with virtio and rtl8139 devices in a KVM guest; both exhibit exactly the same behaviour.
Oh, this is with 0.36.1:
ubuntu@netplan:~$ apt list netplan.io io/bionic, now 0.36.1 amd64 [installed, automatic]
Listing... Done
netplan.