← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] ~prometheanfire/cloud-init:fix-netdev-listing into cloud-init:master

 

here's the bug I encountered that triggered this.


failed run of stage init
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/cloudinit/cmd/main.py", line 530, in status_wrapper
    ret = functor(name, args)
  File "/usr/lib64/python3.4/site-packages/cloudinit/cmd/main.py", line 277, in main_init
    init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  File "/usr/lib64/python3.4/site-packages/cloudinit/stages.py", line 631, in apply_network_config
    netcfg, src = self._find_networking_config()
  File "/usr/lib64/python3.4/site-packages/cloudinit/stages.py", line 618, in _find_networking_config
    if self.datasource and hasattr(self.datasource, 'network_config'):
  File "/usr/lib64/python3.4/site-packages/cloudinit/sources/DataSourceConfigDrive.py", line 159, in network_config
    self.network_json, known_macs=self.known_macs)
  File "/usr/lib64/python3.4/site-packages/cloudinit/sources/helpers/openstack.py", line 608, in convert_net_json
    known_macs = net.get_interfaces_by_mac()
  File "/usr/lib64/python3.4/site-packages/cloudinit/net/__init__.py", line 365, in get_interfaces_by_mac
    mac = get_interface_mac(name)
  File "/usr/lib64/python3.4/site-packages/cloudinit/net/__init__.py", line 350, in get_interface_mac
    return read_sys_net(ifname, "address", enoent=False)
  File "/usr/lib64/python3.4/site-packages/cloudinit/net/__init__.py", line 37, in read_sys_net
    contents = util.load_file(sys_dev_path(devname, path))
  File "/usr/lib64/python3.4/site-packages/cloudinit/util.py", line 1198, in load_file
    with open(fname, 'rb') as ifh:
NotADirectoryError: [Errno 20] Not a directory: '/sys/class/net/bonding_masters/address'
------------------------------------------------------------
-- 
https://code.launchpad.net/~prometheanfire/cloud-init/+git/cloud-init/+merge/303489
Your team cloud init development team is requested to review the proposed merge of ~prometheanfire/cloud-init:fix-netdev-listing into cloud-init:master.


References