← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1812857] [NEW] RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac '9c:XX:XX:46:5d:91'

 

Public bug reported:

2019-01-22 13:58:22,667 - util.py[DEBUG]: failed stage init                                                              
Traceback (most recent call last):                                                                                       
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 658, in status_wrapper                               
    ret = functor(name, args)                                                                                            
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 362, in main_init                                    
    init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))                                               
  File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 648, in apply_network_config                           
    netcfg, src = self._find_networking_config()                                                                         
  File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 635, in _find_networking_config                        
    if self.datasource and hasattr(self.datasource, 'network_config'):                                                   
  File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 155, in network_config          
    self.network_json, known_macs=self.known_macs)                                                                       
  File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py", line 655, in convert_net_json            
    known_macs = net.get_interfaces_by_mac()                                                                             
  File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 595, in get_interfaces_by_mac                    
    (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:XX:46:5d:91', 'bond_up-delay': 250000, 'bond_mimon': 100, 'bond_xmit_hash_policy': 'layer2+3', 'bond_mode': '802.3ad'}, 'name': 'bond0', 'bond_interfaces': ['ens4', 'e
ns4d1']}, {'type': 'physical', 'mtu': 1500, 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'f4:XX:XX:44:6f:f0', 'name': 'eno1'}, {'type': 'physical', 'subnets': [], 'mac_address': '9c:XX:XX:46:5d:91', 'name': 'ens4'}, {'type': 'physical', 'subnets': [], 'mac_address': '9c:XX:XX:46:5d:92', 'name': 'ens4d1'}, {'type': 'nameserver', 'address': '8.8.8.8'}]}  

OS: Ubuntu 18.04.1 LTS
cloud-init: 18.4-0ubuntu1~18.04.1
cloud-provider: OpenStack
Datasource: ConfigDrive

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Summary changed:

- RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac '9c:dc:71:46:5d:91'
+ RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac '9c:XX:XX:46:5d:91'

-- 
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/1812857

Title:
  RuntimeError: duplicate mac found! both 'ens4' and 'bond0' have mac
  '9c:XX:XX:46:5d:91'

Status in cloud-init:
  New

Bug description:
  2019-01-22 13:58:22,667 - util.py[DEBUG]: failed stage init                                                              
  Traceback (most recent call last):                                                                                       
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 658, in status_wrapper                               
      ret = functor(name, args)                                                                                            
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 362, in main_init                                    
      init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))                                               
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 648, in apply_network_config                           
      netcfg, src = self._find_networking_config()                                                                         
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 635, in _find_networking_config                        
      if self.datasource and hasattr(self.datasource, 'network_config'):                                                   
    File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 155, in network_config          
      self.network_json, known_macs=self.known_macs)                                                                       
    File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py", line 655, in convert_net_json            
      known_macs = net.get_interfaces_by_mac()                                                                             
    File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 595, in get_interfaces_by_mac                    
      (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:XX:46:5d:91', 'bond_up-delay': 250000, 'bond_mimon': 100, 'bond_xmit_hash_policy': 'layer2+3', 'bond_mode': '802.3ad'}, 'name': 'bond0', 'bond_interfaces': ['ens4', 'e
  ns4d1']}, {'type': 'physical', 'mtu': 1500, 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'f4:XX:XX:44:6f:f0', 'name': 'eno1'}, {'type': 'physical', 'subnets': [], 'mac_address': '9c:XX:XX:46:5d:91', 'name': 'ens4'}, {'type': 'physical', 'subnets': [], 'mac_address': '9c:XX:XX:46:5d:92', 'name': 'ens4d1'}, {'type': 'nameserver', 'address': '8.8.8.8'}]}  

  OS: Ubuntu 18.04.1 LTS
  cloud-init: 18.4-0ubuntu1~18.04.1
  cloud-provider: OpenStack
  Datasource: ConfigDrive

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1812857/+subscriptions


Follow ups