Public bug reported:

Attempting to add additional loopback addresses to 22.04 jammy fails
with the latest netplan.io package. Previous versions (.104) work
correctly as well as newer versions (0.107) in 23.10 mantic.  Behavior
does not change if default loopback addresses are or are not present in
the address list (127.0.0.1/8 and ::1/128).

Netplan is configured via cloudinit in our environment but for
simplicity I'll provide output from a manual configuration on a test vm
in virtual box.


root@ubuntu-jammy-test:~# cat /etc/netplan/10-loopback.yaml 
network:
    version: 2
    ethernets:
        lo:
            addresses:
            - 10.10.10.10/32
            match:
                macaddress: 00:00:00:00:00:00
            set-name: lo
root@ubuntu-jammy-test:~# netplan apply 
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.
root@ubuntu-jammy-test:~# ip addr show lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
    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
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback carrier     unmanaged
  2 enp0s3 ether    routable    configured

2 links listed.
root@ubuntu-jammy-test:~# apt-get install -y --allow-downgrades 
netplan.io=0.104-0ubuntu2 libnetplan0=0.104-0ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  network-manager | wpasupplicant openvswitch-switch
The following packages will be DOWNGRADED:
  libnetplan0 netplan.io
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/181 kB of archives.
After this operation, 163 kB disk space will be freed.
dpkg: warning: downgrading netplan.io from 0.106.1-7ubuntu0.22.04.2 to 
0.104-0ubuntu2
(Reading database ... 69845 files and directories currently installed.)
Preparing to unpack .../netplan.io_0.104-0ubuntu2_amd64.deb ...
Unpacking netplan.io (0.104-0ubuntu2) over (0.106.1-7ubuntu0.22.04.2) ...
dpkg: warning: downgrading libnetplan0:amd64 from 0.106.1-7ubuntu0.22.04.2 to 
0.104-0ubuntu2
Preparing to unpack .../libnetplan0_0.104-0ubuntu2_amd64.deb ...
Unpacking libnetplan0:amd64 (0.104-0ubuntu2) over (0.106.1-7ubuntu0.22.04.2) ...
Setting up libnetplan0:amd64 (0.104-0ubuntu2) ...
Setting up netplan.io (0.104-0ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Scanning processes...                                                           
                                                                                
                                                                   
Scanning linux images...                                                        
                                                                                
                                                                   

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu-jammy-test:~# netplan apply 
root@ubuntu-jammy-test:~# ip addr show lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
    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
    inet 10.10.10.10/32 scope global lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback routable    configured
  2 enp0s3 ether    routable    configured

2 links listed.


root@ubuntu-jammy-test:~# apt-get upgrade -y 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libnetplan0 netplan.io
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/215 kB of archives.
After this operation, 163 kB of additional disk space will be used.
(Reading database ... 69835 files and directories currently installed.)
Preparing to unpack .../netplan.io_0.106.1-7ubuntu0.22.04.2_amd64.deb ...
Unpacking netplan.io (0.106.1-7ubuntu0.22.04.2) over (0.104-0ubuntu2) ...
Preparing to unpack .../libnetplan0_0.106.1-7ubuntu0.22.04.2_amd64.deb ...
Unpacking libnetplan0:amd64 (0.106.1-7ubuntu0.22.04.2) over (0.104-0ubuntu2) ...
Setting up libnetplan0:amd64 (0.106.1-7ubuntu0.22.04.2) ...
Setting up netplan.io (0.106.1-7ubuntu0.22.04.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Scanning processes...                                                           
                                                                                
                                                                   
Scanning linux images...                                                        
                                                                                
                                                                   

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback routable    configured
  2 enp0s3 ether    routable    configured

2 links listed.
root@ubuntu-jammy-test:~# netplan apply 
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback routable    unmanaged
  2 enp0s3 ether    routable    configured

2 links listed.
root@ubuntu-jammy-test:~# 



With default addresses after a reboot to reset the environment:

root@ubuntu-jammy-test:~# cat /etc/netplan/10-loopback.yaml 
network:
    version: 2
    ethernets:
        lo:
            addresses:
            - 127.0.0.1/8
            - ::1/128
            - 10.10.10.10/32
            match:
                macaddress: 00:00:00:00:00:00
            set-name: lo
root@ubuntu-jammy-test:~# netplan apply 
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback carrier     unmanaged
  2 enp0s3 ether    routable    configured

2 links listed.
root@ubuntu-jammy-test:~# apt-get install -y --allow-downgrades 
netplan.io=0.104-0ubuntu2 libnetplan0=0.104-0ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  network-manager | wpasupplicant openvswitch-switch
The following packages will be DOWNGRADED:
  libnetplan0 netplan.io
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/181 kB of archives.
After this operation, 163 kB disk space will be freed.
dpkg: warning: downgrading netplan.io from 0.106.1-7ubuntu0.22.04.2 to 
0.104-0ubuntu2
(Reading database ... 69845 files and directories currently installed.)
Preparing to unpack .../netplan.io_0.104-0ubuntu2_amd64.deb ...
Unpacking netplan.io (0.104-0ubuntu2) over (0.106.1-7ubuntu0.22.04.2) ...
dpkg: warning: downgrading libnetplan0:amd64 from 0.106.1-7ubuntu0.22.04.2 to 
0.104-0ubuntu2
Preparing to unpack .../libnetplan0_0.104-0ubuntu2_amd64.deb ...
Unpacking libnetplan0:amd64 (0.104-0ubuntu2) over (0.106.1-7ubuntu0.22.04.2) ...
Setting up libnetplan0:amd64 (0.104-0ubuntu2) ...
Setting up netplan.io (0.104-0ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Scanning processes...                                                           
                                                                                
                                                                   
Scanning linux images...                                                        
                                                                                
                                                                   

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu-jammy-test:~# netplan apply 
root@ubuntu-jammy-test:~# ip addr show lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
    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
    inet 10.10.10.10/32 scope global lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
root@ubuntu-jammy-test:~# networkctl list
IDX LINK   TYPE     OPERATIONAL SETUP     
  1 lo     loopback routable    configured
  2 enp0s3 ether    routable    configured

2 links listed.

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055333

Title:
  netplan.io 0.106.1-7ubuntu0.22.04.2 fails to manage additional
  loopback addresses on Ubuntu 2204 Jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2055333/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to