Azure/Xenial Pro FIPS: RuntimeError: duplicate mac found!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
self.
File "/usr/lib/
present_macs = self.get_
File "/usr/lib/
blacklist_
File "/usr/lib/
blacklist_
File "/usr/lib/
(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:
https:/
We addressed something like this in the past with https:/ /bugs.launchpad .net/cloud- init/+bug/ 1844191 and the resulting commit https:/ /github. com/canonical/ cloud-init/ commit/ 059d049c57cac02 cdeaca832233a19 712e0b4ded
Maybe something in FIPS specific kernel isn't surfacing bridge/bonds the way cloud-init expects