** Description changed: - # netplan apply + [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) + 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.
-- 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