loopback addresses disappear after running "netplan apply" multiple times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In `netplan.io` package (`0.104-
I have confirmed that `0.103-
Below are the steps to reproduce this issue.
$ wget https:/
$ sudo qemu-system-x86_64 -vga std -nographic -drive file=focal-
...
ubuntu@ubuntu:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
VERSION_
UBUNTU_
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ubuntu:~$ dpkg -l | grep netplan.io
ii netplan.io 0.104-0ubuntu2~
ubuntu@ubuntu:~$ ip a show lo
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
ubuntu@ubuntu:~$ cat <<EOL | sudo tee /etc/netplan/
network:
version: 2
ethernets:
lo:
- 10.193.17.31/32
match:
EOL
ubuntu@ubuntu:~$ sudo netplan apply && sudo netplan apply
ubuntu@ubuntu:~$ ip a show lo
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 10.193.17.31/32 scope global lo
valid_lft forever preferred_lft forever
description: | updated |
description: | updated |
description: | updated |
Changed in netplan.io (Ubuntu): | |
status: | New → Confirmed |
tags: | added: focal regression-update |
Changed in netplan.io (Ubuntu): | |
status: | Confirmed → Invalid |
IMO it is the expected behavior. When "lo" is defined in the netplan config, netplan is supposed to apply this configuration (i.e. drop the IPs that are not part of the netplan config and apply the new ones).
If this didn't work in 0.103, it must have been a bug in 0.103. Also, I wonder why the IPs are only dropped after running `netplan apply` twice...