Ubuntu Pastebin

Paste from kszarlej at Thu, 21 Sep 2017 19:25:53 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
network:
  version: 1
  config:
  - type: physical
    name: eth0
    mac_address:
    subnets:
      - control: auto
        type: static
        address: {{ item.ip_address }}
        gateway: {{ item.gateway }}
        dns_nameservers:
          - 8.8.8.8
          - 8.8.4.4

version: 2
ethernets:
  eth0:
     match:
         mac_address: "{{ item.mac_address }}"
     set-name: interface0
     addresses:
     - {{ item.ip_address }}/255.255.255.0
     gateway4: {{ item.gateway }}


ERROR

[   13.344675] cloud-init[376]: Cloud-init v. 0.7.9 running 'init-local' at Thu, 21 Sep 2017 19:24:45 +0000. Up 13.08 seconds.
[   14.187245] cloud-init[376]: 2017-09-21 19:24:46,931 - util.py[WARNING]: failed stage init-local
[   14.239789] cloud-init[376]: failed run of stage init-local
[   14.244084] cloud-init[376]: ------------------------------------------------------------
[   14.251630] cloud-init[376]: Traceback (most recent call last):
[   14.258623] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 513, in status_wrapper
[   14.267998] cloud-init[376]: ret = functor(name, args)
[   14.275593] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 269, in main_init
[   14.278790] cloud-init[376]: init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
[   14.284421] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 642, in apply_network_config
[   14.290428] cloud-init[376]: return self.distro.apply_network_config(netcfg, bring_up=bring_up)
[   14.297709] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/distros/__init__.py", line 150, in apply_network_config
[   14.305837] cloud-init[376]: dev_names = self._write_network_config(netconfig)
[   14.308526] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/distros/rhel.py", line 60, in _write_network_config
[   14.316880] cloud-init[376]: self._net_renderer.render_network_state("/", ns)
[   14.323691] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/net/sysconfig.py", line 509, in render_network_state
[   14.327310] cloud-init[376]: network_state).items():
[   14.331559] cloud-init[376]: File "/usr/lib/python2.7/site-packages/cloudinit/net/sysconfig.py", line 483, in _render_sysconfig
[   14.340565] cloud-init[376]: for iface in network_state.iter_interfaces():
[   14.345095] cloud-init[376]: AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
[   14.352568] cloud-init[376]: ------------------------------------------------------------
Download as text