Exception thrown when set-name equals an altname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
In Progress
|
Undecided
|
Jorge Merlino |
Bug Description
When a netplan configuration file contains a set-name for an interface and that name has been already set as an altname by systemd, netplan throws an exception and the interface ends up with no ip address.
Example:
Config file:
ens3:
dhcp4: true
match:
macaddress: xx:xx:xx:xx:xx:xx
set-name: enp0s3
Interface:
2: ens3: <BROADCAST,
link/ether 52:54:00:1e:76:cc brd ff:ff:ff:ff:ff:ff
altname enp0s3
Exception:
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
Changed in netplan: | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
Changed in netplan: | |
status: | New → In Progress |
Pull request for patch: https:/ /github. com/canonical/ netplan/ pull/292