← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1679602] [NEW] init-local fails with network: config: disabled.

 

Public bug reported:

When passing network-config "network: config: disabled" via NoCloud I'm
getting the following error in cloud-init.log:

2017-04-04 10:08:01,021 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'network': {'config': 'disabled'}}
2017-04-04 10:08:01,021 - util.py[WARNING]: failed stage init-local
2017-04-04 10:08:01,021 - util.py[DEBUG]: failed stage init-local
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 647, in status_wrapper
    ret = functor(name, args)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 365, 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
    return self.distro.apply_network_config(netcfg, bring_up=bring_up)
  File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 150, in apply_network_config
    dev_names = self._write_network_config(netconfig)
  File "/usr/lib/python3/dist-packages/cloudinit/distros/debian.py", line 84, in _write_network_config
    self._net_renderer.render_network_state("/", ns)
  File "/usr/lib/python3/dist-packages/cloudinit/net/eni.py", line 451, in render_network_state
    util.write_file(fpeni, header + self._render_interfaces(network_state))
  File "/usr/lib/python3/dist-packages/cloudinit/net/eni.py", line 409, in _render_interfaces
    for iface in network_state.iter_interfaces():
AttributeError: 'NoneType' object has no attribute 'iter_interfaces'

** 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/1679602

Title:
  init-local fails with network: config: disabled.

Status in cloud-init:
  New

Bug description:
  When passing network-config "network: config: disabled" via NoCloud
  I'm getting the following error in cloud-init.log:

  2017-04-04 10:08:01,021 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'network': {'config': 'disabled'}}
  2017-04-04 10:08:01,021 - util.py[WARNING]: failed stage init-local
  2017-04-04 10:08:01,021 - util.py[DEBUG]: failed stage init-local
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 647, in status_wrapper
      ret = functor(name, args)
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 365, 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
      return self.distro.apply_network_config(netcfg, bring_up=bring_up)
    File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 150, in apply_network_config
      dev_names = self._write_network_config(netconfig)
    File "/usr/lib/python3/dist-packages/cloudinit/distros/debian.py", line 84, in _write_network_config
      self._net_renderer.render_network_state("/", ns)
    File "/usr/lib/python3/dist-packages/cloudinit/net/eni.py", line 451, in render_network_state
      util.write_file(fpeni, header + self._render_interfaces(network_state))
    File "/usr/lib/python3/dist-packages/cloudinit/net/eni.py", line 409, in _render_interfaces
      for iface in network_state.iter_interfaces():
  AttributeError: 'NoneType' object has no attribute 'iter_interfaces'

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


Follow ups