RuntimeError: duplicate mac found! both 'swp1' and 'swp3' have mac '32:98:88:9c:2d:29'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
High
|
Unassigned | ||
cloud-init |
Fix Released
|
High
|
James Falcon |
Bug Description
Hi,
This is Aristo from OEM Enablement team in Taiwan, I am currently enabling a device that has 1 Ethernet port and 4 Etherent switch port, and I will get the following error on first boot
"""
[ 22.855169] cloud-init[519]: Cloud-init v. 22.3.4-
[ 23.745575] cloud-init[519]: 2022-11-25 01:23:28,899 - util.py[WARNING]: failed stage init-local
[ 23.764650] cloud-init[519]: failed run of stage init-local
[ 23.780376] cloud-init[519]: -------
[ 23.796379] cloud-init[519]: Traceback (most recent call last):
[ 23.812604] cloud-init[519]: File "/usr/lib/
[ 23.832472] cloud-init[519]: ret = functor(name, args)
[ 23.848500] cloud-init[519]: File "/usr/lib/
[ 23.869966] cloud-init[519]: init.apply_
[ 23.888410] cloud-init[519]: File "/usr/lib/
[ 23.908494] cloud-init[519]: self.distro.
[ 23.928436] cloud-init[519]: File "/usr/lib/
[ 23.952413] cloud-init[519]: present_macs = self.get_
[ 23.972380] cloud-init[519]: File "/usr/lib/
[ 23.996508] cloud-init[519]: return net.get_
[ 24.012399] cloud-init[519]: File "/usr/lib/
[ 24.036393] cloud-init[519]: return get_interfaces_
[ 24.056387] cloud-init[519]: File "/usr/lib/
[ 24.080426] cloud-init[519]: raise RuntimeError(
[ 24.099221] cloud-init[519]: RuntimeError: duplicate mac found! both 'swp1' and 'swp3' have mac '9a:57:7d:78:47:c0'
[ 24.120454] cloud-init[519]: -------
"""
The network-config is
"""
#cloud-config
version: 2
ethernets:
enp0s0f0:
dhcp4: true
optional: true
"""
Here is all the interfaces
"""
$ ip a
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s0f0: <BROADCAST,
link/ether 16:11:29:db:df:62 brd ff:ff:ff:ff:ff:ff
3: enp0s0f2: <BROADCAST,
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
5: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
6: swp0@enp0s0f2: <BROADCAST,
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
7: swp1@enp0s0f2: <BROADCAST,
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
8: swp2@enp0s0f2: <BROADCAST,
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
9: swp3@enp0s0f2: <BROADCAST,
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
"""
Please let me know if you need any further info from me, thanks!
Changed in oem-priority: | |
importance: | Undecided → High |
tags: | added: originate-from-1998894 |
tags: | added: oem-priority |
Changed in cloud-init: | |
status: | Incomplete → Triaged |
importance: | Undecided → High |
Changed in oem-priority: | |
status: | New → Fix Released |
This patch fix the issue, though it may not be the proper way, please let me know if you have any concern about this patch, thanks!