[Bug 1878928] Re: Call trace occurred when running `netplan apply` after an yaml is removed

Lukas Märdian 1878928 at bugs.launchpad.net
Thu Jul 20 10:53:18 UTC 2023


** Changed in: netplan.io (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/1878928

Title:
  Call trace occurred when running `netplan apply` after an yaml is
  removed

Status in netplan.io package in Ubuntu:
  Fix Released

Bug description:
  Call trace occurred when running `netplan apply` after an yaml was
  removed.

  System: Intel NUC7CJYH
  Image: Ubuntu Core 20 beta daily build (20200514.2)

  Steps to Reproduce:
  1. $ sudo rm /etc/netplan/n-wpa.yaml 
  2. $ sudo netplan apply, then the following call trace occurred:

  Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlo2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
  Failed to start netplan-wpa-wlo2.service: Unit netplan-wpa-wlo2.service not found.
  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 179, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 46, in run
      self.run_command()
    File "/usr/share/netplan/netplan/cli/utils.py", line 179, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 173, in command_apply
      utils.systemctl_networkd('start', sync=sync, extra_services=netplan_wpa)
    File "/usr/share/netplan/netplan/cli/utils.py", line 86, in systemctl_networkd
      subprocess.check_call(command)
    File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['systemctl', 'start', '--no-block', 'systemd-networkd.service', 'netplan-wpa-wlo2.service']' returned non-zero exit status 5.

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




More information about the foundations-bugs mailing list