Azure/Xenial Pro FIPS: RuntimeError: duplicate mac found!

Bug #1927124 reported by Gauthier Jolly on 2021-05-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)

Bug Description

On Azure instances running Xenial Pro FIPS images with accelerated networking enabled, cloud-init fails to setup the user's ssh key and I can see the following stack trace in the logs:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/", line 652, in status_wrapper
    ret = functor(name, args)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/", line 361, in main_init
    init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  File "/usr/lib/python3/dist-packages/cloudinit/", line 735, in apply_network_config
  File "/usr/lib/python3/dist-packages/cloudinit/distros/", line 147, in wait_for_physdevs
    present_macs = self.get_interfaces_by_mac().keys()
  File "/usr/lib/python3/dist-packages/cloudinit/distros/", line 76, in get_interfaces_by_mac
  File "/usr/lib/python3/dist-packages/cloudinit/net/", line 830, in get_interfaces_by_mac
  File "/usr/lib/python3/dist-packages/cloudinit/net/", line 901, in get_interfaces_by_mac_on_linux
    (name, ret[mac], mac))
RuntimeError: duplicate mac found! both 'eth0' and 'enP1p0s2' have mac '00:0d:3a:7f:a8:e5'

The following SAS URL can be used to start a VM with this image in order to reproduce the problem:

Gauthier Jolly (gjolly) wrote :
Chad Smith (chad.smith) wrote :

We addressed something like this in the past with and the resulting commit

Maybe something in FIPS specific kernel isn't surfacing bridge/bonds the way cloud-init expects

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers