2017-11-17 20:27:24,501 - util.py[DEBUG]: Cloud-init v. 17.1 running 'init' at Fri, 17 Nov 2017 20:27:24 +0000. Up 837633.65 seconds. 2017-11-17 20:27:24,502 - main.py[DEBUG]: No kernel command line url found. 2017-11-17 20:27:24,502 - main.py[DEBUG]: Closing stdin. 2017-11-17 20:27:24,505 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes 2017-11-17 20:27:24,506 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4 2017-11-17 20:27:24,506 - util.py[DEBUG]: Running command ['ifconfig', '-a'] with allowed return codes [0, 1] (shell=False, capture=True) 2017-11-17 20:27:24,516 - util.py[DEBUG]: Running command ['netstat', '-rn'] with allowed return codes [0, 1] (shell=False, capture=True) 2017-11-17 20:27:24,519 - util.py[DEBUG]: Running command ['netstat', '-A', 'inet6', '-n'] with allowed return codes [0, 1] (shell=False, capture=True) 2017-11-17 20:27:24,525 - main.py[DEBUG]: Checking to see if files that we need already exist from a previous run that would allow us to stop early. 2017-11-17 20:27:24,525 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early. 2017-11-17 20:27:24,525 - handlers.py[DEBUG]: start: init-network/check-cache: attempting to read from cache [trust] 2017-11-17 20:27:24,525 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False) 2017-11-17 20:27:24,526 - util.py[DEBUG]: Read 5178 bytes from /var/lib/cloud/instance/obj.pkl 2017-11-17 20:27:24,534 - util.py[DEBUG]: Reading from /run/cloud-init/.instance-id (quiet=False) 2017-11-17 20:27:24,534 - util.py[DEBUG]: Read 20 bytes from /run/cloud-init/.instance-id 2017-11-17 20:27:24,534 - stages.py[DEBUG]: restored from cache with run check: DataSourceEc2 2017-11-17 20:27:24,534 - handlers.py[DEBUG]: finish: init-network/check-cache: SUCCESS: restored from cache with run check: DataSourceEc2 2017-11-17 20:27:24,534 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2017-11-17 20:27:24,534 - util.py[DEBUG]: Read 3001 bytes from /etc/cloud/cloud.cfg 2017-11-17 20:27:24,534 - util.py[DEBUG]: Attempting to load yaml from string of length 3001 with allowed root types (,) 2017-11-17 20:27:24,547 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/90_dpkg.cfg (quiet=False) 2017-11-17 20:27:24,547 - util.py[DEBUG]: Read 197 bytes from /etc/cloud/cloud.cfg.d/90_dpkg.cfg 2017-11-17 20:27:24,547 - util.py[DEBUG]: Attempting to load yaml from string of length 197 with allowed root types (,) 2017-11-17 20:27:24,548 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/10_hots.cfg (quiet=False) 2017-11-17 20:27:24,548 - util.py[DEBUG]: Read 65 bytes from /etc/cloud/cloud.cfg.d/10_hots.cfg 2017-11-17 20:27:24,548 - util.py[DEBUG]: Attempting to load yaml from string of length 65 with allowed root types (,) 2017-11-17 20:27:24,549 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/10_hosts.cfg (quiet=False) 2017-11-17 20:27:24,549 - util.py[DEBUG]: Read 65 bytes from /etc/cloud/cloud.cfg.d/10_hosts.cfg 2017-11-17 20:27:24,549 - util.py[DEBUG]: Attempting to load yaml from string of length 65 with allowed root types (,) 2017-11-17 20:27:24,549 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2017-11-17 20:27:24,549 - util.py[DEBUG]: Read 2057 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2017-11-17 20:27:24,549 - util.py[DEBUG]: Attempting to load yaml from string of length 2057 with allowed root types (,) 2017-11-17 20:27:24,553 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2017-11-17 20:27:24,553 - util.py[DEBUG]: Read 44 bytes from /run/cloud-init/cloud.cfg 2017-11-17 20:27:24,553 - util.py[DEBUG]: Attempting to load yaml from string of length 44 with allowed root types (,) 2017-11-17 20:27:24,554 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2017-11-17 20:27:24,554 - util.py[DEBUG]: load_yaml given empty string, returning default 2017-11-17 20:27:24,554 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/cloud-config.txt (quiet=False) 2017-11-17 20:27:24,555 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/instance/cloud-config.txt 2017-11-17 20:27:24,555 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2017-11-17 20:27:24,555 - util.py[DEBUG]: load_yaml given empty string, returning default 2017-11-17 20:27:24,555 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance 2017-11-17 20:27:24,555 - util.py[DEBUG]: Creating symbolic link from '/var/lib/cloud/instance' => '/var/lib/cloud/instances/i-0acf29e2520f2fdb5' 2017-11-17 20:27:24,556 - util.py[DEBUG]: Reading from /var/lib/cloud/instances/i-0acf29e2520f2fdb5/datasource (quiet=False) 2017-11-17 20:27:24,556 - util.py[DEBUG]: Read 29 bytes from /var/lib/cloud/instances/i-0acf29e2520f2fdb5/datasource 2017-11-17 20:27:24,556 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/i-0acf29e2520f2fdb5/datasource - wb: [644] 29 bytes 2017-11-17 20:27:24,557 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-datasource - wb: [644] 29 bytes 2017-11-17 20:27:24,557 - util.py[DEBUG]: Reading from /var/lib/cloud/data/instance-id (quiet=False) 2017-11-17 20:27:24,558 - util.py[DEBUG]: Read 20 bytes from /var/lib/cloud/data/instance-id 2017-11-17 20:27:24,558 - stages.py[DEBUG]: previous iid found to be i-0acf29e2520f2fdb5 2017-11-17 20:27:24,558 - util.py[DEBUG]: Writing to /var/lib/cloud/data/instance-id - wb: [644] 20 bytes 2017-11-17 20:27:24,558 - util.py[DEBUG]: Writing to /run/cloud-init/.instance-id - wb: [644] 20 bytes 2017-11-17 20:27:24,559 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-instance-id - wb: [644] 20 bytes 2017-11-17 20:27:24,559 - util.py[DEBUG]: Writing to /var/lib/cloud/instance/obj.pkl - wb: [400] 5236 bytes 2017-11-17 20:27:24,560 - main.py[DEBUG]: [net] init will now be targeting instance id: i-0acf29e2520f2fdb5. new=False 2017-11-17 20:27:24,560 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2017-11-17 20:27:24,560 - util.py[DEBUG]: Read 3001 bytes from /etc/cloud/cloud.cfg 2017-11-17 20:27:24,560 - util.py[DEBUG]: Attempting to load yaml from string of length 3001 with allowed root types (,) 2017-11-17 20:27:24,571 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/90_dpkg.cfg (quiet=False) 2017-11-17 20:27:24,571 - util.py[DEBUG]: Read 197 bytes from /etc/cloud/cloud.cfg.d/90_dpkg.cfg 2017-11-17 20:27:24,571 - util.py[DEBUG]: Attempting to load yaml from string of length 197 with allowed root types (,) 2017-11-17 20:27:24,573 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/10_hots.cfg (quiet=False) 2017-11-17 20:27:24,573 - util.py[DEBUG]: Read 65 bytes from /etc/cloud/cloud.cfg.d/10_hots.cfg 2017-11-17 20:27:24,573 - util.py[DEBUG]: Attempting to load yaml from string of length 65 with allowed root types (,) 2017-11-17 20:27:24,573 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/10_hosts.cfg (quiet=False) 2017-11-17 20:27:24,573 - util.py[DEBUG]: Read 65 bytes from /etc/cloud/cloud.cfg.d/10_hosts.cfg 2017-11-17 20:27:24,573 - util.py[DEBUG]: Attempting to load yaml from string of length 65 with allowed root types (,) 2017-11-17 20:27:24,574 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2017-11-17 20:27:24,574 - util.py[DEBUG]: Read 2057 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2017-11-17 20:27:24,574 - util.py[DEBUG]: Attempting to load yaml from string of length 2057 with allowed root types (,) 2017-11-17 20:27:24,578 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2017-11-17 20:27:24,578 - util.py[DEBUG]: Read 44 bytes from /run/cloud-init/cloud.cfg 2017-11-17 20:27:24,578 - util.py[DEBUG]: Attempting to load yaml from string of length 44 with allowed root types (,) 2017-11-17 20:27:24,579 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2017-11-17 20:27:24,579 - util.py[DEBUG]: load_yaml given empty string, returning default 2017-11-17 20:27:24,579 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/cloud-config.txt (quiet=False) 2017-11-17 20:27:24,580 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/instance/cloud-config.txt 2017-11-17 20:27:24,580 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2017-11-17 20:27:24,580 - util.py[DEBUG]: load_yaml given empty string, returning default 2017-11-17 20:27:24,580 - util.py[WARNING]: failed stage init 2017-11-17 20:27:24,580 - util.py[DEBUG]: failed stage init Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 638, in status_wrapper ret = functor(name, args) File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 357, in main_init init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL)) File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 635, in apply_network_config netcfg, src = self._find_networking_config() File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 622, in _find_networking_config if self.datasource and hasattr(self.datasource, 'network_config'): File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceEc2.py", line 307, in network_config net.get_interface_mac(self.fallback_nic): self.fallback_nic} File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 506, in get_interface_mac if os.path.isdir(sys_dev_path(ifname, "bonding_slave")): File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 38, in sys_dev_path return get_sys_class_path() + devname + "/" + path TypeError: Can't convert 'NoneType' object to str implicitly 2017-11-17 20:27:24,586 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False) 2017-11-17 20:27:24,586 - util.py[DEBUG]: Read 21 bytes from /proc/uptime 2017-11-17 20:27:24,586 - util.py[DEBUG]: cloud-init mode 'init' took 0.122 seconds (0.13) 2017-11-17 20:27:24,586 - handlers.py[DEBUG]: finish: init-network: SUCCESS: searching for network datasources