Skip to content

Instantly share code, notes, and snippets.

@Morantron
Last active December 1, 2021 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morantron/bf7e01de9d273e9d5f517cd779ab5da9 to your computer and use it in GitHub Desktop.
Save Morantron/bf7e01de9d273e9d5f517cd779ab5da9 to your computer and use it in GitHub Desktop.
netplan udevadm
root@core-machine03:/home/ubuntu# netplan --debug try
DEBUG:enp4s0 not found in {}
DEBUG:Merged config:
network:
ethernets:
enp4s0:
dhcp4: true
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
version: 2
DEBUG:New interfaces: set()
** (generate:2044699): DEBUG: 11:46:53.536: Processing input file /etc/netplan/00-installer-config.yaml..
** (generate:2044699): DEBUG: 11:46:53.536: starting new processing pass
** (generate:2044699): DEBUG: 11:46:53.536: We have some netdefs, pass them through a final round of validation
** (generate:2044699): DEBUG: 11:46:53.536: enp4s0: setting default backend to 1
** (generate:2044699): DEBUG: 11:46:53.536: Configuration is valid
** (generate:2044699): DEBUG: 11:46:53.537: Generating output files..
** (generate:2044699): DEBUG: 11:46:53.537: openvswitch: definition enp4s0 is not for us (backend 1)
** (generate:2044699): DEBUG: 11:46:53.537: NetworkManager: definition enp4s0 is not for us (backend 1)
(generate:2044699): GLib-DEBUG: 11:46:53.537: posix_spawn avoided (fd close requested)
(generate:2044699): GLib-DEBUG: 11:46:53.537: posix_spawn avoided (fd close requested)
DEBUG:netplan generated networkd configuration changed, restarting networkd
DEBUG:enp4s0 not found in {}
DEBUG:Merged config:
network:
ethernets:
enp4s0:
dhcp4: true
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
version: 2
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
DEBUG:no netplan generated NM configuration exists
DEBUG:enp4s0 not found in {}
DEBUG:Merged config:
network:
ethernets:
enp4s0:
dhcp4: true
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
version: 2
DEBUG:Link changes: {}
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for enp4s0
DEBUG:netplan triggering .link rules for lxcbr0
DEBUG:netplan triggering .link rules for docker0
DEBUG:netplan triggering .link rules for veth7b20a6d
DEBUG:netplan triggering .link rules for veth37860f7
DEBUG:netplan triggering .link rules for vethaa02a95
DEBUG:netplan triggering .link rules for veth7669cc6
Traceback (most recent call last):
File "/usr/share/netplan/netplan/cli/commands/try_command.py", line 84, in command_try
NetplanApply().command_apply(run_generate=True, sync=True, exit_on_error=False)
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 226, in command_apply
subprocess.check_call(['udevadm', 'settle'])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'settle']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
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 264, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/try_command.py", line 66, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 264, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/try_command.py", line 95, in command_try
self.revert()
File "/usr/share/netplan/netplan/cli/commands/try_command.py", line 118, in revert
NetplanApply().command_apply(run_generate=False, sync=True, exit_on_error=False)
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 226, in command_apply
subprocess.check_call(['udevadm', 'settle'])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'settle']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment