RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac '9c:XX:XX:46:5d:91'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned |
Bug Description
2019-01-22 13:58:22,667 - util.py[DEBUG]: failed stage init
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
netcfg, src = self._find_
File "/usr/lib/
if self.datasource and hasattr(
File "/usr/lib/
self.
File "/usr/lib/
known_macs = net.get_
File "/usr/lib/
(name, ret[mac], mac))
RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac '9c:XX:XX:46:5d:91'
Net config:
2019-01-22 13:56:20,055 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'mtu': 1500, 'type': 'bond', 'subnets': [{'type': 'dhcp4'}], 'params': {'mac_address': '9c:XX:
ns4d1']}, {'type': 'physical', 'mtu': 1500, 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'f4:XX:
OS: Ubuntu 18.04.1 LTS
cloud-init: 18.4-0ubuntu1~
cloud-provider: OpenStack
Datasource: ConfigDrive
Related branches
- Ryan Harper: Approve
- Server Team CI bot: Approve (continuous-integration)
- Dan Watkins: Needs Information
-
Diff: 13 lines (+2/-0)1 file modifiedcloudinit/net/__init__.py (+2/-0)
summary: |
RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac - '9c:dc:71:46:5d:91' + '9c:XX:XX:46:5d:91' |
Usually bonds inherit mac address from one of
physical interface
This PR fixes the problem https:/ /github. com/cloud- init/cloud- init/pull/ 19