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

Vic Liu 1878928 at bugs.launchpad.net
Fri May 15 14:20:36 UTC 2020


Public bug reported:

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.

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

-- 
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:
  New

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