yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91367
[Bug 1997922] Re: RuntimeError: duplicate mac found! both 'swp1' and 'swp3' have mac '32:98:88:9c:2d:29'
This bug is believed to be fixed in cloud-init in version 23.1. If this
is still a problem for you, please make a comment and set the state back
to New
Thank you.
** Changed in: cloud-init
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1997922
Title:
RuntimeError: duplicate mac found! both 'swp1' and 'swp3' have mac
'32:98:88:9c:2d:29'
Status in cloud-init:
Fix Released
Status in OEM Priority Project:
New
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-0ubuntu1~22.04.1 running 'init-local' at Fri, 25 Nov 2022 01:23:27 +0000. Up 22.75 seconds.
[ 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/python3/dist-packages/cloudinit/cmd/main.py", line 767, in status_wrapper
[ 23.832472] cloud-init[519]: ret = functor(name, args)
[ 23.848500] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 433, in main_init
[ 23.869966] cloud-init[519]: init.apply_network_config(bring_up=bring_up_interfaces)
[ 23.888410] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 922, in apply_network_config
[ 23.908494] cloud-init[519]: self.distro.networking.wait_for_physdevs(netcfg)
[ 23.928436] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/distros/networking.py", line 148, in wait_for_physdevs
[ 23.952413] cloud-init[519]: present_macs = self.get_interfaces_by_mac().keys()
[ 23.972380] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/distros/networking.py", line 75, in get_interfaces_by_mac
[ 23.996508] cloud-init[519]: return net.get_interfaces_by_mac(
[ 24.012399] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 926, in get_interfaces_by_mac
[ 24.036393] cloud-init[519]: return get_interfaces_by_mac_on_linux(
[ 24.056387] cloud-init[519]: File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 1007, in get_interfaces_by_mac_on_linux
[ 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,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 16:11:29:db:df:62 brd ff:ff:ff:ff:ff:ff
3: enp0s0f2: <BROADCAST,MULTICAST> mtu 1520 qdisc noop state DOWN group default qlen 1000
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,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
7: swp1@enp0s0f2: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
8: swp2@enp0s0f2: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9a:57:7d:78:47:c0 brd ff:ff:ff:ff:ff:ff
9: swp3@enp0s0f2: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
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!
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1997922/+subscriptions
References