cloudinit fails with duplicate mac address on tunnel interfaces

Bug #1968329 reported by Kirill Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Undecided
Unassigned

Bug Description

Cloudinit fails with duplicate mac address while trying to read mac addresses for tunnel interfaces.
Tunnel interfaces copying mac from main interface, so it will definitely have duplicate macs.

There are different types of tunnels in linux kernel, based on https://github.com/torvalds/linux/blob/9e9fb7655ed585da8f468e29221f0ba194a5f613/include/uapi/linux/if_arp.h#L67 they have types '768', '769', '776', '777'.

Should cloudinit skip those interfaces?

I have a patch for https://github.com/canonical/cloud-init/blob/main/cloudinit/net/__init__.py. If it will help.

Revision history for this message
Kirill Ma (mashkir) wrote :
Revision history for this message
James Falcon (falcojr) wrote :

This appears to be a use case we have missed. Can you run "cloud-init collect-logs" on an affected instance and attach them here so we can get a sense of how and where things are failing?

A contribution is certainly welcome. Our contribution process is outlined at https://cloudinit.readthedocs.io/en/latest/topics/contributing.html

At the very least you would need to sign the CLA, or we will not be able to accept the patch.

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Kirill Ma (mashkir) wrote :

Hello, I signed CLA, is there anything else I could help with?

Revision history for this message
James Falcon (falcojr) wrote :

Kirill,

Thanks for signing the CLA. Can you also run "cloud-init collect-logs" on an affected instance and attach the resulting tarball here so we can get a sense of how and where things are failing?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers