Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat ~/cloudinit.yaml
- datasource_list: [Scaleway]
- # curl -s http://169.254.42.42/conf?format=json | jq .
- {
- "tags": [],
- "state_detail": "booted",
- "public_ip": {
- "dynamic": true,
- "id": "8419932b-485e-42da-bb09-cb73d7d27d71",
- "address": "212.47.229.91"
- },
- "ssh_public_keys": [
- {
- "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjHvTHk5QY+JZdCvAep6APwOhZvIimlC4aybrXkGSBxpNeZI1f+AexDuFFWGZPb1y135pgTAc7VXpKD2FU2xd4EwsSTHaBcaBIs1HkhpFScTwN15IfLiefIHgjgveP/8U8AKQvCK7oecz3egjvqNtBDDj9cHySpQ6w5Zq/rtF7Ku8xAfBa78NEQrwaYvdfHqI/1APeoo61MJse+xZH2LVHX1EZp79jRbHny/0WkZifVXudDCmM9aqI3G1ZgWTWvFxHW/HTkSLz1v8OHD1ZPOEjIIKLxCoYE4kukK2eVZVUWFb+iU+u6GunwqWUa6W/g+0NzpEoSHVcasIC88d3tBZD [email protected]",
- "fingerprint": "2048 06:ae:84:bf:25:da:db:b8:e2:a2:49:c2:19:80:83:db [email protected] (RSA)"
- },
- {
- "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAutWtCIFyrtcpxBevMyDrNlYabV6cCVPjfWwfuKABofuWwCSX8gP2gSnmjQCdtTwYnz/vAuAXbKxn8pxtUy4c24oRvtwqHpEsFDMpzzMzWtghQFOHEd7NWzda3yDGCaJ8OFD1IkiFad5QNKmOt8nlERBUK9cwbPjzhTnP/o2Odn5nJJ8WySn0/TWwMaHH6hpZTtKMSrIn06Fo5MviPfeZ9Loe8IfgV7llB7ITMFTUKP5vPVvMlPJi8MYeo0AYmhFhbTO5wWj8hK8AJELF9RwMCehcsxjDRxKKbxiv9RL3yIdBH0dftlaNX5rYazRp4zB2BYvfPNjhpTqrY2RdPYAvTw== [email protected]",
- "fingerprint": "2048 8f:1a:0a:29:b0:0a:8e:5e:1d:df:43:81:eb:33:f5:d8 [email protected] (RSA)"
- },
- {
- "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBFwqhsHfM4SwPAasvcy2bbrzz3aFF83FjxV0d+5J7cdwidP5soB6v3cMSMy8iK+sOdivXYQV5QrJrju74j6WNR7J2RU6mU+bDBmGl6oVAY/gm7eI44aTiMj8Iu3Kt8pn8j3QhfbHwOG/3NqiysbD3+lHV91bbNXFWmeuqqJ0aAN7ZoOTp/hu/M620Fs5W4hqScJ3oNp4pPC6Ra+L7VacmbOOAkkRErf18sTr6mXNPG1K1B2p4B4JvaQACRBUqL50NnUI03Pz8PTl4zEmYn0Y/O2WBqecLr9AyS4njJCSjUFs3BDRspKpSCJaSVmsbvDDDLrsb9SvtvohhAJBqPHh1H5Lt+XZHkk9OX78vIAPtwCiPpVnJ4qTNxfNl7flb4zVlybgtqU6UEu5rwRTlswURcamdLnkNyBXReoE4OAASK0rqGbBzJ20RP+NV759f6uR++kPWiBwdCaiSs2yTAUJHQQVaMtKqCykXc27ClWGH4fNnr/VNohSCt2pVZOlJaU3P2FlN8ls5rQs5ghajK2U7Y2K0riPY9UCCPl4GqyZZeP78ZZrThCMU4SCji8CEFGaFpTQdZ0gBGp4792aCP5YVNQ0lC8e4AIYTLQ4sjw75X1sPdY0sh2mT+PHt4JzbSgkXA9bDA7gNCkxiVdxCe13d7YQo8SUqQVAM70gFZz5wew== niluje@biwork",
- "fingerprint": "4096 41:09:18:8b:db:e1:11:63:31:41:ac:c8:0b:fe:63:b8 niluje@biwork (RSA)"
- }
- ],
- "private_ip": "10.2.204.17",
- "timezone": "UTC",
- "id": "673ba8f7-5a3c-467f-9fb4-c47178bef082",
- "extra_networks": [],
- "name": "docker",
- "hostname": "docker",
- "location": {
- "platform_id": "12",
- "hypervisor_id": "407",
- "node_id": "8",
- "cluster_id": "84",
- "zone_id": "par1"
- },
- "volumes": {
- "0": {
- "name": "docker-x86_64-ubuntu-xenial-2017-01-05_09:58",
- "modification_date": "2017-04-18T08:18:48.405891+00:00",
- "export_uri": "device://dev/vda",
- "volume_type": "l_ssd",
- "creation_date": "2017-04-18T08:18:48.405891+00:00",
- "organization": "e3cb251a-72e2-4dda-b2ed-e6eb3536533b",
- "server": {
- "id": "673ba8f7-5a3c-467f-9fb4-c47178bef082",
- "name": "docker"
- },
- "id": "476401ab-d236-4f19-b3a5-d625ce8e0102",
- "size": 50000000000
- }
- },
- "ipv6": null,
- "organization": "e3cb251a-72e2-4dda-b2ed-e6eb3536533b",
- "commercial_type": "VC1S"
- }
- # curl --local-port 1-1024 -s http://169.254.42.42/user_data/cloud-init
- #cloud-config
- write_files:
- - path: /tmp/toto
- content: |
- Hello world
- :-)
- # rm -rf /var/lib/cloud && cloud-init --file ~/cloudinit.yaml init
- WARN: no logging configured! (tried 0 configs)
- Setting up basic logging...
- Cloud-init v. 0.7.9 running 'init' at Thu, 27 Apr 2017 14:16:16 +0000. Up 798958.23 seconds.
- 2017-04-27 14:16:17,023 - util.py[DEBUG]: Cloud-init v. 0.7.9 running 'init' at Thu, 27 Apr 2017 14:16:16 +0000. Up 798958.23 seconds.
- 2017-04-27 14:16:17,024 - main.py[DEBUG]: No kernel command line url found.
- 2017-04-27 14:16:17,024 - main.py[DEBUG]: Closing stdin.
- 2017-04-27 14:16:17,030 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [420] 0 bytes
- 2017-04-27 14:16:17,032 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 108:4
- 2017-04-27 14:16:17,033 - util.py[DEBUG]: Running command ['ifconfig', '-a'] with allowed return codes [0] (shell=False, capture=True)
- 2017-04-27 14:16:17,068 - util.py[DEBUG]: Running command ['netstat', '-rn'] with allowed return codes [0] (shell=False, capture=True)
- 2017-04-27 14:16:17,080 - util.py[DEBUG]: Running command ['netstat', '-A', 'inet6', '-n'] with allowed return codes [0] (shell=False, capture=True)
- ci-info: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
- ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
- ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
- ci-info: | docker0 | True | 172.17.0.1 | 255.255.0.0 | . | 02:42:6f:37:8d:e7 |
- ci-info: | docker0 | True | fe80::42:6fff:fe37:8de7/64 | . | link | 02:42:6f:37:8d:e7 |
- ci-info: | veth662db22 | True | . | . | . | 7a:7c:61:28:bc:b5 |
- ci-info: | veth662db22 | True | fe80::787c:61ff:fe28:bcb5/64 | . | link | 7a:7c:61:28:bc:b5 |
- ci-info: | ip6tnl0 | False | . | . | . | 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 |
- ci-info: | br-15cbd038d83d | True | 172.20.0.1 | 255.255.0.0 | . | 02:42:e6:ff:96:0e |
- ci-info: | br-15cbd038d83d | True | fe80::42:e6ff:feff:960e/64 | . | link | 02:42:e6:ff:96:0e |
- ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . |
- ci-info: | lo | True | ::1/128 | . | host | . |
- ci-info: | ip6_vti0 | False | . | . | . | 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 |
- ci-info: | sit0 | False | . | . | . | . |
- ci-info: | eth0 | True | 10.2.204.17 | 255.255.255.254 | . | de:19:50:19:70:08 |
- ci-info: | eth0 | True | fe80::dc19:50ff:fe19:7008/64 | . | link | de:19:50:19:70:08 |
- ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
- ci-info: ++++++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++++++
- ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
- ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
- ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
- ci-info: | 0 | 0.0.0.0 | 10.2.204.16 | 0.0.0.0 | eth0 | UG |
- ci-info: | 1 | 10.2.204.16 | 0.0.0.0 | 255.255.255.254 | eth0 | U |
- ci-info: | 2 | 10.201.3.226 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 3 | 10.201.3.227 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 4 | 10.201.3.228 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 5 | 10.201.3.232 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 6 | 10.230.0.140 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 7 | 172.17.0.0 | 0.0.0.0 | 255.255.0.0 | docker0 | U |
- ci-info: | 8 | 172.20.0.0 | 0.0.0.0 | 255.255.0.0 | br-15cbd038d83d | U |
- ci-info: | 9 | 192.168.58.19 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 10 | 192.168.58.38 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 11 | 192.168.105.2 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 12 | 192.168.105.3 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 13 | 192.168.105.4 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 14 | 192.168.105.5 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 15 | 192.168.105.6 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 16 | 192.168.105.7 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 17 | 192.168.105.8 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 18 | 192.168.105.9 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 19 | 192.168.105.10 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 20 | 192.168.105.11 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: | 21 | 192.168.105.12 | 172.20.0.2 | 255.255.255.255 | br-15cbd038d83d | UGH |
- ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
- 2017-04-27 14:16:17,113 - 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-04-27 14:16:17,114 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early.
- 2017-04-27 14:16:17,115 - handlers.py[DEBUG]: start: init-network/check-cache: attempting to read from cache [trust]
- 2017-04-27 14:16:17,116 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
- 2017-04-27 14:16:17,117 - stages.py[DEBUG]: no cache found
- 2017-04-27 14:16:17,117 - handlers.py[DEBUG]: finish: init-network/check-cache: SUCCESS: no cache found
- 2017-04-27 14:16:17,118 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
- 2017-04-27 14:16:17,122 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
- 2017-04-27 14:16:17,123 - __init__.py[DEBUG]: Looking for for data source in: ['Scaleway'], via packages ['', u'cloudinit.sources'] that matches dependencies ['FILESYSTEM', 'NETWORK']
- 2017-04-27 14:16:17,126 - __init__.py[DEBUG]: Searching for network data source in: [u'DataSourceScaleway']
- 2017-04-27 14:16:17,127 - handlers.py[DEBUG]: start: init-network/search-Scaleway: searching for network data from DataSourceScaleway
- 2017-04-27 14:16:17,127 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceScaleway.DataSourceScaleway'>
- 2017-04-27 14:16:17,128 - DataSourceScaleway.py[DEBUG]: Init Scaleway
- 2017-04-27 14:16:17,135 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
- 2017-04-27 14:16:17,159 - connectionpool.py[DEBUG]: http://169.254.42.42:80 "HEAD /user_data/cloud-init HTTP/1.1" 403 0
- 2017-04-27 14:16:17,162 - url_helper.py[DEBUG]: [0/6] open 'http://169.254.42.42/conf?format=json' with {'url': 'http://169.254.42.42/conf?format=json', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 10.0} configuration
- 2017-04-27 14:16:17,166 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
- 2017-04-27 14:16:18,640 - connectionpool.py[DEBUG]: http://169.254.42.42:80 "GET /conf?format=json HTTP/1.1" 200 2878
- 2017-04-27 14:16:18,642 - url_helper.py[DEBUG]: Read from http://169.254.42.42/conf?format=json (200, 2878b) after 1 attempts
- 2017-04-27 14:16:18,643 - DataSourceScaleway.py[DEBUG]: metadata downloaded
- 2017-04-27 14:16:18,643 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 1)...
- 2017-04-27 14:16:18,644 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.42.42/user_data/cloud-init' with {'url': 'http://169.254.42.42/user_data/cloud-init', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 10.0} configuration
- 2017-04-27 14:16:18,647 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
- 2017-04-27 14:16:18,649 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 2)...
- 2017-04-27 14:16:18,650 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.42.42/user_data/cloud-init' with {'url': 'http://169.254.42.42/user_data/cloud-init', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 10.0} configuration
- 2017-04-27 14:16:18,654 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
- 2017-04-27 14:16:18,656 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 3)...
- 2017-04-27 14:16:18,657 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.42.42/user_data/cloud-init' with {'url': 'http://169.254.42.42/user_data/cloud-init', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 10.0} configuration
- 2017-04-27 14:16:18,660 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
- 2017-04-27 14:16:19,955 - connectionpool.py[DEBUG]: http://169.254.42.42:80 "GET /user_data/cloud-init HTTP/1.1" 200 248
- 2017-04-27 14:16:19,957 - url_helper.py[DEBUG]: Read from http://169.254.42.42/user_data/cloud-init (200, 248b) after 1 attempts
- 2017-04-27 14:16:19,958 - DataSourceScaleway.py[DEBUG]: user-data downloaded
- 2017-04-27 14:16:19,959 - handlers.py[DEBUG]: finish: init-network/search-Scaleway: SUCCESS: found network data from DataSourceScaleway
- 2017-04-27 14:16:19,960 - stages.py[INFO]: Loaded datasource DataSourceScaleway - DataSourceScaleway
- 2017-04-27 14:16:19,961 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False)
- 2017-04-27 14:16:19,961 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False)
- 2017-04-27 14:16:19,962 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (<type 'dict'>,)
- 2017-04-27 14:16:19,963 - util.py[DEBUG]: load_yaml given empty string, returning default
- 2017-04-27 14:16:19,965 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
- 2017-04-27 14:16:19,965 - util.py[DEBUG]: Creating symbolic link from '/var/lib/cloud/instance' => '/var/lib/cloud/instances/673ba8f7-5a3c-467f-9fb4-c47178bef082'
- 2017-04-27 14:16:19,968 - util.py[DEBUG]: Reading from /var/lib/cloud/instances/673ba8f7-5a3c-467f-9fb4-c47178bef082/datasource (quiet=False)
- 2017-04-27 14:16:19,969 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/673ba8f7-5a3c-467f-9fb4-c47178bef082/datasource - wb: [420] 39 bytes
- 2017-04-27 14:16:19,970 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-datasource - wb: [420] 39 bytes
- 2017-04-27 14:16:19,971 - util.py[DEBUG]: Reading from /var/lib/cloud/data/instance-id (quiet=False)
- 2017-04-27 14:16:19,972 - stages.py[DEBUG]: previous iid found to be NO_PREVIOUS_INSTANCE_ID
- 2017-04-27 14:16:19,973 - util.py[DEBUG]: Writing to /var/lib/cloud/data/instance-id - wb: [420] 37 bytes
- 2017-04-27 14:16:19,974 - util.py[DEBUG]: Writing to /run/cloud-init/.instance-id - wb: [420] 37 bytes
- 2017-04-27 14:16:19,975 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-instance-id - wb: [420] 24 bytes
- 2017-04-27 14:16:19,978 - util.py[DEBUG]: Writing to /var/lib/cloud/instance/obj.pkl - wb: [256] 4211 bytes
- 2017-04-27 14:16:19,979 - main.py[DEBUG]: [net] init will now be targeting instance id: 673ba8f7-5a3c-467f-9fb4-c47178bef082. new=True
- 2017-04-27 14:16:19,980 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False)
- 2017-04-27 14:16:19,981 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False)
- 2017-04-27 14:16:19,981 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (<type 'dict'>,)
- 2017-04-27 14:16:19,982 - util.py[DEBUG]: load_yaml given empty string, returning default
- 2017-04-27 14:16:19,984 - util.py[DEBUG]: Reading from /sys/class/net/lo/address (quiet=False)
- 2017-04-27 14:16:19,985 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/lo/address
- 2017-04-27 14:16:19,986 - util.py[DEBUG]: Reading from /sys/class/net/veth662db22/address (quiet=False)
- 2017-04-27 14:16:19,986 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/veth662db22/address
- 2017-04-27 14:16:19,987 - util.py[DEBUG]: Reading from /sys/class/net/ip6tnl0/address (quiet=False)
- 2017-04-27 14:16:19,988 - util.py[DEBUG]: Read 48 bytes from /sys/class/net/ip6tnl0/address
- 2017-04-27 14:16:19,988 - util.py[DEBUG]: Reading from /sys/class/net/sit0/address (quiet=False)
- 2017-04-27 14:16:19,989 - util.py[DEBUG]: Read 12 bytes from /sys/class/net/sit0/address
- 2017-04-27 14:16:19,989 - util.py[DEBUG]: Reading from /sys/class/net/ip6_vti0/address (quiet=False)
- 2017-04-27 14:16:19,990 - util.py[DEBUG]: Read 48 bytes from /sys/class/net/ip6_vti0/address
- 2017-04-27 14:16:19,991 - util.py[DEBUG]: Reading from /sys/class/net/docker0/address (quiet=False)
- 2017-04-27 14:16:19,991 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/docker0/address
- 2017-04-27 14:16:19,992 - util.py[DEBUG]: Reading from /sys/class/net/eth0/address (quiet=False)
- 2017-04-27 14:16:19,992 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/eth0/address
- 2017-04-27 14:16:19,993 - util.py[DEBUG]: Reading from /sys/class/net/br-15cbd038d83d/address (quiet=False)
- 2017-04-27 14:16:19,993 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/br-15cbd038d83d/address
- 2017-04-27 14:16:19,996 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': []}
- 2017-04-27 14:16:19,997 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
- 2017-04-27 14:16:19,998 - __init__.py[DEBUG]: no interfaces to rename
- 2017-04-27 14:16:19,999 - stages.py[INFO]: Applying network configuration from cmdline bringup=True: {'version': 1, 'config': []}
- 2017-04-27 14:16:20,000 - __init__.py[DEBUG]: Selected renderer 'eni' from priority list: None
- 2017-04-27 14:16:20,001 - util.py[WARNING]: failed stage init
- 2017-04-27 14:16:20,001 - util.py[DEBUG]: failed stage init
- Traceback (most recent call last):
- File "/root/cloud-init/cloudinit/cmd/main.py", line 648, in status_wrapper
- ret = functor(name, args)
- File "/root/cloud-init/cloudinit/cmd/main.py", line 365, in main_init
- init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
- File "/root/cloud-init/cloudinit/stages.py", line 649, in apply_network_config
- return self.distro.apply_network_config(netcfg, bring_up=bring_up)
- File "/root/cloud-init/cloudinit/distros/__init__.py", line 163, in apply_network_config
- dev_names = self._write_network_config(netconfig)
- File "/root/cloud-init/cloudinit/distros/debian.py", line 89, in _write_network_config
- return self._supported_write_network_config(netconfig)
- File "/root/cloud-init/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
- renderer.render_network_config(network_config=network_config)
- File "/root/cloud-init/cloudinit/net/renderer.py", line 47, in render_network_config
- network_state=parse_net_config_data(network_config), target=target)
- File "/root/cloud-init/cloudinit/net/eni.py", line 446, in render_network_state
- util.write_file(fpeni, header + self._render_interfaces(network_state))
- File "/root/cloud-init/cloudinit/net/eni.py", line 403, in _render_interfaces
- for iface in network_state.iter_interfaces():
- AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
- failed run of stage init
- ------------------------------------------------------------
- Traceback (most recent call last):
- File "/root/cloud-init/cloudinit/cmd/main.py", line 648, in status_wrapper
- ret = functor(name, args)
- File "/root/cloud-init/cloudinit/cmd/main.py", line 365, in main_init
- init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
- File "/root/cloud-init/cloudinit/stages.py", line 649, in apply_network_config
- return self.distro.apply_network_config(netcfg, bring_up=bring_up)
- File "/root/cloud-init/cloudinit/distros/__init__.py", line 163, in apply_network_config
- dev_names = self._write_network_config(netconfig)
- File "/root/cloud-init/cloudinit/distros/debian.py", line 89, in _write_network_config
- return self._supported_write_network_config(netconfig)
- File "/root/cloud-init/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
- renderer.render_network_config(network_config=network_config)
- File "/root/cloud-init/cloudinit/net/renderer.py", line 47, in render_network_config
- network_state=parse_net_config_data(network_config), target=target)
- File "/root/cloud-init/cloudinit/net/eni.py", line 446, in render_network_state
- util.write_file(fpeni, header + self._render_interfaces(network_state))
- File "/root/cloud-init/cloudinit/net/eni.py", line 403, in _render_interfaces
- for iface in network_state.iter_interfaces():
- AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
- ------------------------------------------------------------
- 2017-04-27 14:16:20,008 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
- 2017-04-27 14:16:20,009 - util.py[DEBUG]: Read 21 bytes from /proc/uptime
- 2017-04-27 14:16:20,009 - util.py[DEBUG]: cloud-init mode 'init' took 3.063 seconds (3.07)
- 2017-04-27 14:16:20,010 - handlers.py[DEBUG]: finish: init-network: SUCCESS: searching for network datasources
Advertisement
Add Comment
Please, Sign In to add comment