Verification-done on disco as well:

After applying the update I can successfully run 'netplan apply' on a
system on which a label exists; this would otherwise fail even if the
interface isn't mentioned in YAML:

ubuntu@oddish:~$ cat /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
ubuntu@oddish:~$ ip addr show wlp58s0
2: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group 
default qlen 1000
    link/ether 44:85:00:1d:8f:df brd ff:ff:ff:ff:ff:ff
    inet 10.3.1.243/22 brd 10.3.3.255 scope global dynamic noprefixroute wlp58s0
       valid_lft 14118sec preferred_lft 14118sec
    inet 192.168.0.1/24 scope global wlp58s0:0
       valid_lft forever preferred_lft forever
    inet6 2001:470:b0cc::78b/128 scope global dynamic noprefixroute 
       valid_lft 28528sec preferred_lft 6928sec
    inet6 fe80::3070:bc33:a203:cbc3/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Before:

ubuntu@oddish:~$ sudo netplan apply
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 130, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 106, in 
command_apply
    stderr=subprocess.DEVNULL)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 
'net_setup_link', '/sys/class/net/wlp58s0:0']' returned non-zero exit status 1.

After:

ubuntu@oddish:~$ sudo netplan apply
[prompt returns with no error]


** Tags added: verification-done-disco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1810043

Title:
  netplan apply fails if NIC alias exists

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1810043/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to