[Bug 1968287] Re: loopback addresses disappear after running "netplan apply" multiple times

Lukas Märdian 1968287 at bugs.launchpad.net
Tue Jun 7 15:54:10 UTC 2022


** Changed in: netplan.io (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1968287

Title:
  loopback addresses disappear after running "netplan apply" multiple
  times

Status in netplan.io package in Ubuntu:
  Invalid

Bug description:
  In `netplan.io` package (`0.104-0ubuntu2~20.04.1`) on Ubuntu 20.04, I
  ran `netplan apply` command to add addresses to `lo` interface. During
  the second run of `netplan apply` command, two addresses `127.0.0.1/8`
  and `::1/128` disappeared from `lo` interface.

  I have confirmed that `0.103-0ubuntu5~20.04.6` does not have this
  issue.

  Below are the steps to reproduce this issue.

  $ wget https://cloud-images.ubuntu.com/focal/20220404/focal-server-cloudimg-amd64.img
  $ sudo qemu-system-x86_64 -vga std -nographic -drive file=focal-server-cloudimg-amd64.img,if=virtio,cache=writeback,discard=ignore,format=qcow2 -m 4096M -smp cpus=4,sockets=4 -serial mon:stdio -boot c -machine type=pc,accel=kvm -fda cloud.img
  ...
  ubuntu at 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://www.ubuntu.com/"
  SUPPORT_URL="https://help.ubuntu.com/"
  BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  VERSION_CODENAME=focal
  UBUNTU_CODENAME=focal
  ubuntu at 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 at ubuntu:~$ dpkg -l | grep netplan.io
  ii  netplan.io                      0.104-0ubuntu2~20.04.1             amd64        YAML network configuration abstraction for various backends
  ubuntu at ubuntu:~$ ip a 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
  ubuntu at ubuntu:~$ cat <<EOL | sudo tee /etc/netplan/60-loopback.yaml >/dev/null
  network:
      version: 2
      ethernets:
          lo:
              addresses:
              - 10.193.17.31/32
              match:
                  name: lo
  EOL
  ubuntu at ubuntu:~$ sudo netplan apply && sudo netplan apply
  ubuntu at ubuntu:~$ ip a 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 10.193.17.31/32 scope global lo
         valid_lft forever preferred_lft forever

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




More information about the foundations-bugs mailing list