[Bug 1810043] Re: netplan apply fails if NIC alias exists
Brian Murray
brian at ubuntu.com
Wed Oct 2 21:49:41 UTC 2019
** Also affects: netplan.io (Ubuntu Disco)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu Disco)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1810043
Title:
netplan apply fails if NIC alias exists
Status in netplan:
Fix Released
Status in netplan.io package in Ubuntu:
Fix Released
Status in netplan.io source package in Bionic:
Fix Released
Status in netplan.io source package in Disco:
Fix Released
Bug description:
[Impact]
Running 'netplan apply' when an interface has an alias/label defined for it.
[Test case]
On a system which has a label set for an interface:
ip addr add 192.168.0.1/24 dev eth0 label eth0:0
1) run 'netplan apply'
2) verify that the configuration for netplan can be applied without errors.
[Regression potential]
This has minimal risk, and only adds an extra check for a subprocess call that will otherwise fail, but is safely skipped. Avoid crashing in netplan when the files required to run 'net_setup_link' are not available, as the rest of the process will already run net_setup_link for the "master" interface which will have its own files in /sys/class/net.
---
# 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1810043/+subscriptions
More information about the foundations-bugs
mailing list