← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1637252] [NEW] sysconfig.py fails to configure network

 

Public bug reported:

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

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

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

Title:
  sysconfig.py fails to configure network

Status in cloud-init:
  New

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

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