netplan apply fails if NIC alias exists

Bug #1810043 reported by Don Thornton Jr. on 2018-12-29
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan
Undecided
Unassigned

Bug Description

# 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 93, in command_apply
    stderr=subprocess.DEVNULL)
  File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 'net_setup_link', '/sys/class/net/eth0:0']' returned non-zero exit status 4.

more specifically... if there is a label set for alias as in:

ifconfig eth0:0 192.168.0.1

 -- or --

ip addr add 192.168.0.1/24 dev eth0 label eth0:0

Ryan Harper (raharper) on 2019-01-07
Changed in netplan:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers