Results 1 to 1 of 1

Thread: 22.04 netplan apply fails

  1. #1
    Join Date
    Feb 2022
    Beans
    1

    22.04 netplan apply fails

    Clean install of 22.04 server edition and any changes triggered by netplan will fail. This is a rather serious bug and not sure if 22.04 no longer supports netplan runtime changes or is this a regression somewhere?

    1. 00-installer-config.yaml

    Code:
    # This is the network config written by 'subiquity'
    network:
      ethernets:
        eno1:
          dhcp4: true
        enp4s0:
          dhcp4: true
      version: 2
    2. netplan apply

    Code:
    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.
    netplan --debug generate is green so the yaml is perfect

    Code:
    root@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)
    Submitted bug report:

    https://bugs.launchpad.net/ubuntu/+s...o/+bug/1962095
    Last edited by diegomontoya2; February 24th, 2022 at 03:09 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •