sysconfig.py fails to configure network

Bug #1637252 reported by Ben Howard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Incomplete
Medium
Unassigned

Bug Description

Cloud-init sysconfig.py does not render the subnet configuration properly when the datasource provides a network configruation.

This can be seen on OpenSUSE LEAP 42 and the upcoming Fedora 25.

Cloud-init v. 0.7.8 running 'init-local' at Wed, 26 Oct 2016 21:49:31 +0000. Up 6.08 seconds.
2016-10-26 21:49:31,477 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/cloudinit/cmd/main.py", line 521, in status_wrapper
    ret = functor(name, args)
  File "/usr/lib/python3.5/site-packages/cloudinit/cmd/main.py", line 280, in main_init
    init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  File "/usr/lib/python3.5/site-packages/cloudinit/stages.py", line 650, in apply_network_config
    return self.distro.apply_network_config(netcfg, bring_up=bring_up)
  File "/usr/lib/python3.5/site-packages/cloudinit/distros/__init__.py", line 162, in apply_network_config
    dev_names = self._write_network_config(netconfig)
  File "/usr/lib/python3.5/site-packages/cloudinit/distros/rhel.py", line 73, in _write_network_config
    self._net_renderer.render_network_state("/", ns)
  File "/usr/lib/python3.5/site-packages/cloudinit/net/sysconfig.py", line 389, in render_network_state
    network_state).items():
  File "/usr/lib/python3.5/site-packages/cloudinit/net/sysconfig.py", line 371, in _render_sysconfig
    cls._render_physical_interfaces(network_state, iface_contents)
  File "/usr/lib/python3.5/site-packages/cloudinit/net/sysconfig.py", line 297, in _render_physical_interfaces
    start=len(iface.children)):
AttributeError: 'dict' object has no attribute 'children

Revision history for this message
Scott Moser (smoser) wrote :

Hi,
I suspect this is on digital ocean.

Could you please attach the metadata that was sent to the instance?

The full content in /var/log/cloud-init.log would be good as well.

Changed in cloud-init:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

Hi, Ben?
Can you provide this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.