[Bug 1962095] [NEW] netplan apply fails on 22.04 with clean yaml

Launchpad Bug Tracker 1962095 at bugs.launchpad.net
Thu Sep 15 15:34:07 UTC 2022


You have been subscribed to a public bug by Matthieu Clemenceau (mclemenceau):

Ubuntu 22.04 clean server iso install with default yaml using dhcp

-------------
# This is the network config written by 'subiquity'
network:
  ethernets:
    eno1:
      dhcp4: true
    enp4s0:
      dhcp4: true
  version: 2
-------------

netplan --debug generate is green. yaml is perfect

--------------
root at cube1:/etc/netplan# netplan --debug generate
DEBUG:command generate: running ['/lib/netplan/generate']
** (generate:65883): DEBUG: 02:01:05.691: starting new processing pass
** (generate:65883): DEBUG: 02:01:05.691: We have some netdefs, pass them through a final round of validation
** (generate:65883): DEBUG: 02:01:05.691: eno1: setting default backend to 1
** (generate:65883): DEBUG: 02:01:05.691: Configuration is valid
** (generate:65883): DEBUG: 02:01:05.691: enp4s0: setting default backend to 1
** (generate:65883): DEBUG: 02:01:05.691: Configuration is valid
** (generate:65883): DEBUG: 02:01:05.691: Generating output files..
** (generate:65883): DEBUG: 02:01:05.691: openvswitch: definition eno1 is not for us (backend 1)
** (generate:65883): DEBUG: 02:01:05.691: NetworkManager: definition eno1 is not for us (backend 1)
** (generate:65883): DEBUG: 02:01:05.691: openvswitch: definition enp4s0 is not for us (backend 1)
** (generate:65883): DEBUG: 02:01:05.691: NetworkManager: definition enp4s0 is not for us (backend 1)
----------------

execute netplan apply/try will fail

----------------
Failed to reload network settings: No such file or directory
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 244, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 61, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 244, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 255, in command_apply
    utils.networkctl_reconfigure(utils.networkd_interfaces())
  File "/usr/share/netplan/netplan/cli/utils.py", line 103, in networkctl_reconfigure
    subprocess.check_call(['networkctl', 'reload'])
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['networkctl', 'reload']' returned non-zero exit status 1.
----------------


ubuntu forum thread:

https://ubuntuforums.org/showthread.php?t=2472318

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
     Assignee: Lukas Märdian (slyon)
         Status: Fix Released

** Affects: subiquity (Ubuntu)
     Importance: Medium
         Status: Triaged

** Affects: netplan.io (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Lukas Märdian (slyon)
         Status: Fix Released

** Affects: subiquity (Ubuntu Jammy)
     Importance: Medium
         Status: Triaged


** Tags: 22.04 foundations-todo fr-2101 jammy
-- 
netplan apply fails on 22.04 with clean yaml
https://bugs.launchpad.net/bugs/1962095
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.



More information about the foundations-bugs mailing list