Public bug reported: I am getting backtrace when executing netplan apply with default configuration on oracle cloud:
root@vpsoc:~# 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 reboot. 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: ethernets: ens3: dhcp4: true match: macaddress: [redacted] set-name: ens3 version: 2 root@vpsoc:~# ll /etc/netplan/ total 12 drwxr-xr-x 2 root root 4096 Jan 25 16:28 ./ drwxr-xr-x 109 root root 4096 Jan 23 06:41 ../ -rw-r--r-- 1 root root 481 Jun 4 2020 50-cloud-init.yaml root@vpsoc:~# netplan apply Traceback (most recent call last): File "/usr/sbin/netplan", line 23, in <module> netplan.main() File "/usr/share/netplan/netplan/cli/core.py", line 50, in main self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 257, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/apply.py", line 55, in run self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 257, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/apply.py", line 187, in command_apply changes = NetplanApply.process_link_changes(devices, config_manager) File "/usr/share/netplan/netplan/cli/commands/apply.py", line 283, in process_link_changes current_iface_name = utils.find_matching_iface(interfaces, match) File "/usr/share/netplan/netplan/cli/utils.py", line 199, in find_matching_iface matches = list(filter(lambda iface: is_interface_matching_macaddress(iface, match.get('macaddress')), matches)) File "/usr/share/netplan/netplan/cli/utils.py", line 199, in <lambda> matches = list(filter(lambda iface: is_interface_matching_macaddress(iface, match.get('macaddress')), matches)) File "/usr/share/netplan/netplan/cli/utils.py", line 185, in is_interface_matching_macaddress macaddress = get_interface_macaddress(interface) File "/usr/share/netplan/netplan/cli/utils.py", line 169, in get_interface_macaddress link = netifaces.ifaddresses(interface)[netifaces.AF_LINK][0] KeyError: 17 ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: netplan.io 0.101-0ubuntu3~20.04.2 ProcVersionSignature: Ubuntu 5.4.0-1035.38-oracle 5.4.78 Uname: Linux 5.4.0-1035-oracle x86_64 ApportVersion: 2.20.11-0ubuntu27.14 Architecture: amd64 CasperMD5CheckResult: skip Date: Mon Jan 25 16:32:04 2021 ProcEnviron: SHELL=/bin/bash LANG=C.UTF-8 TERM=screen.xterm-256color PATH=(custom, no user) SourcePackage: netplan.io UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: netplan.io (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal uec-images -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1913062 Title: netplan apply backtrace To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1913062/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs