daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Apr 27th, 2017 349 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # cat ~/cloudinit.yaml
  2. datasource_list: [Scaleway]
  3.  
  4. # curl -s http://169.254.42.42/conf?format=json | jq  .
  5. {
  6.   "tags": [],
  7.   "state_detail": "booted",
  8.   "public_ip": {
  9.     "dynamic": true,
  10.     "id": "8419932b-485e-42da-bb09-cb73d7d27d71",
  11.     "address": "212.47.229.91"
  12.   },
  13.   "ssh_public_keys": [
  14.     {
  15.       "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjHvTHk5QY+JZdCvAep6APwOhZvIimlC4aybrXkGSBxpNeZI1f+AexDuFFWGZPb1y135pgTAc7VXpKD2FU2xd4EwsSTHaBcaBIs1HkhpFScTwN15IfLiefIHgjgveP/8U8AKQvCK7oecz3egjvqNtBDDj9cHySpQ6w5Zq/rtF7Ku8xAfBa78NEQrwaYvdfHqI/1APeoo61MJse+xZH2LVHX1EZp79jRbHny/0WkZifVXudDCmM9aqI3G1ZgWTWvFxHW/HTkSLz1v8OHD1ZPOEjIIKLxCoYE4kukK2eVZVUWFb+iU+u6GunwqWUa6W/g+0NzpEoSHVcasIC88d3tBZD niluje@juliens-imac.iliad.local",
  16.       "fingerprint": "2048 06:ae:84:bf:25:da:db:b8:e2:a2:49:c2:19:80:83:db  niluje@juliens-imac.iliad.local (RSA)"
  17.     },
  18.     {
  19.       "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAutWtCIFyrtcpxBevMyDrNlYabV6cCVPjfWwfuKABofuWwCSX8gP2gSnmjQCdtTwYnz/vAuAXbKxn8pxtUy4c24oRvtwqHpEsFDMpzzMzWtghQFOHEd7NWzda3yDGCaJ8OFD1IkiFad5QNKmOt8nlERBUK9cwbPjzhTnP/o2Odn5nJJ8WySn0/TWwMaHH6hpZTtKMSrIn06Fo5MviPfeZ9Loe8IfgV7llB7ITMFTUKP5vPVvMlPJi8MYeo0AYmhFhbTO5wWj8hK8AJELF9RwMCehcsxjDRxKKbxiv9RL3yIdBH0dftlaNX5rYazRp4zB2BYvfPNjhpTqrY2RdPYAvTw== juliencastets@bibook.local",
  20.       "fingerprint": "2048 8f:1a:0a:29:b0:0a:8e:5e:1d:df:43:81:eb:33:f5:d8  juliencastets@bibook.local (RSA)"
  21.     },
  22.     {
  23.       "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBFwqhsHfM4SwPAasvcy2bbrzz3aFF83FjxV0d+5J7cdwidP5soB6v3cMSMy8iK+sOdivXYQV5QrJrju74j6WNR7J2RU6mU+bDBmGl6oVAY/gm7eI44aTiMj8Iu3Kt8pn8j3QhfbHwOG/3NqiysbD3+lHV91bbNXFWmeuqqJ0aAN7ZoOTp/hu/M620Fs5W4hqScJ3oNp4pPC6Ra+L7VacmbOOAkkRErf18sTr6mXNPG1K1B2p4B4JvaQACRBUqL50NnUI03Pz8PTl4zEmYn0Y/O2WBqecLr9AyS4njJCSjUFs3BDRspKpSCJaSVmsbvDDDLrsb9SvtvohhAJBqPHh1H5Lt+XZHkk9OX78vIAPtwCiPpVnJ4qTNxfNl7flb4zVlybgtqU6UEu5rwRTlswURcamdLnkNyBXReoE4OAASK0rqGbBzJ20RP+NV759f6uR++kPWiBwdCaiSs2yTAUJHQQVaMtKqCykXc27ClWGH4fNnr/VNohSCt2pVZOlJaU3P2FlN8ls5rQs5ghajK2U7Y2K0riPY9UCCPl4GqyZZeP78ZZrThCMU4SCji8CEFGaFpTQdZ0gBGp4792aCP5YVNQ0lC8e4AIYTLQ4sjw75X1sPdY0sh2mT+PHt4JzbSgkXA9bDA7gNCkxiVdxCe13d7YQo8SUqQVAM70gFZz5wew== niluje@biwork",
  24.       "fingerprint": "4096 41:09:18:8b:db:e1:11:63:31:41:ac:c8:0b:fe:63:b8  niluje@biwork (RSA)"
  25.     }
  26.   ],
  27.   "private_ip": "10.2.204.17",
  28.   "timezone": "UTC",
  29.   "id": "673ba8f7-5a3c-467f-9fb4-c47178bef082",
  30.   "extra_networks": [],
  31.   "name": "docker",
  32.   "hostname": "docker",
  33.   "location": {
  34.     "platform_id": "12",
  35.     "hypervisor_id": "407",
  36.     "node_id": "8",
  37.     "cluster_id": "84",
  38.     "zone_id": "par1"
  39.   },
  40.   "volumes": {
  41.     "0": {
  42.       "name": "docker-x86_64-ubuntu-xenial-2017-01-05_09:58",
  43.       "modification_date": "2017-04-18T08:18:48.405891+00:00",
  44.       "export_uri": "device://dev/vda",
  45.       "volume_type": "l_ssd",
  46.       "creation_date": "2017-04-18T08:18:48.405891+00:00",
  47.       "organization": "e3cb251a-72e2-4dda-b2ed-e6eb3536533b",
  48.       "server": {
  49.         "id": "673ba8f7-5a3c-467f-9fb4-c47178bef082",
  50.         "name": "docker"
  51.       },
  52.       "id": "476401ab-d236-4f19-b3a5-d625ce8e0102",
  53.       "size": 50000000000
  54.     }
  55.   },
  56.   "ipv6": null,
  57.   "organization": "e3cb251a-72e2-4dda-b2ed-e6eb3536533b",
  58.   "commercial_type": "VC1S"
  59. }
  60.  
  61. # curl --local-port 1-1024 -s http://169.254.42.42/user_data/cloud-init
  62. #cloud-config
  63.  
  64. write_files:
  65.     - path: /tmp/toto
  66.       content: |
  67.         Hello world
  68.         :-)
  69.  
  70. # rm -rf /var/lib/cloud && cloud-init --file ~/cloudinit.yaml init
  71. WARN: no logging configured! (tried 0 configs)
  72. Setting up basic logging...
  73. Cloud-init v. 0.7.9 running 'init' at Thu, 27 Apr 2017 14:16:16 +0000. Up 798958.23 seconds.
  74. 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.
  75. 2017-04-27 14:16:17,024 - main.py[DEBUG]: No kernel command line url found.
  76. 2017-04-27 14:16:17,024 - main.py[DEBUG]: Closing stdin.
  77. 2017-04-27 14:16:17,030 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [420] 0 bytes
  78. 2017-04-27 14:16:17,032 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 108:4
  79. 2017-04-27 14:16:17,033 - util.py[DEBUG]: Running command ['ifconfig', '-a'] with allowed return codes [0] (shell=False, capture=True)
  80. 2017-04-27 14:16:17,068 - util.py[DEBUG]: Running command ['netstat', '-rn'] with allowed return codes [0] (shell=False, capture=True)
  81. 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)
  82. ci-info: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  83. ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
  84. ci-info: |      Device     |   Up  |           Address            |       Mask      | Scope |                    Hw-Address                   |
  85. ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
  86. ci-info: |     docker0     |  True |          172.17.0.1          |   255.255.0.0   |   .   |                02:42:6f:37:8d:e7                |
  87. ci-info: |     docker0     |  True |  fe80::42:6fff:fe37:8de7/64  |        .        |  link |                02:42:6f:37:8d:e7                |
  88. ci-info: |   veth662db22   |  True |              .               |        .        |   .   |                7a:7c:61:28:bc:b5                |
  89. ci-info: |   veth662db22   |  True | fe80::787c:61ff:fe28:bcb5/64 |        .        |  link |                7a:7c:61:28:bc:b5                |
  90. ci-info: |     ip6tnl0     | False |              .               |        .        |   .   | 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 |
  91. ci-info: | br-15cbd038d83d |  True |          172.20.0.1          |   255.255.0.0   |   .   |                02:42:e6:ff:96:0e                |
  92. ci-info: | br-15cbd038d83d |  True |  fe80::42:e6ff:feff:960e/64  |        .        |  link |                02:42:e6:ff:96:0e                |
  93. ci-info: |        lo       |  True |          127.0.0.1           |    255.0.0.0    |   .   |                        .                        |
  94. ci-info: |        lo       |  True |           ::1/128            |        .        |  host |                        .                        |
  95. ci-info: |     ip6_vti0    | False |              .               |        .        |   .   | 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 |
  96. ci-info: |       sit0      | False |              .               |        .        |   .   |                        .                        |
  97. ci-info: |       eth0      |  True |         10.2.204.17          | 255.255.255.254 |   .   |                de:19:50:19:70:08                |
  98. ci-info: |       eth0      |  True | fe80::dc19:50ff:fe19:7008/64 |        .        |  link |                de:19:50:19:70:08                |
  99. ci-info: +-----------------+-------+------------------------------+-----------------+-------+-------------------------------------------------+
  100. ci-info: ++++++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++++++
  101. ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
  102. ci-info: | Route |  Destination   |   Gateway   |     Genmask     |    Interface    | Flags |
  103. ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
  104. ci-info: |   0   |    0.0.0.0     | 10.2.204.16 |     0.0.0.0     |       eth0      |   UG  |
  105. ci-info: |   1   |  10.2.204.16   |   0.0.0.0   | 255.255.255.254 |       eth0      |   U   |
  106. ci-info: |   2   |  10.201.3.226  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  107. ci-info: |   3   |  10.201.3.227  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  108. ci-info: |   4   |  10.201.3.228  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  109. ci-info: |   5   |  10.201.3.232  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  110. ci-info: |   6   |  10.230.0.140  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  111. ci-info: |   7   |   172.17.0.0   |   0.0.0.0   |   255.255.0.0   |     docker0     |   U   |
  112. ci-info: |   8   |   172.20.0.0   |   0.0.0.0   |   255.255.0.0   | br-15cbd038d83d |   U   |
  113. ci-info: |   9   | 192.168.58.19  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  114. ci-info: |   10  | 192.168.58.38  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  115. ci-info: |   11  | 192.168.105.2  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  116. ci-info: |   12  | 192.168.105.3  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  117. ci-info: |   13  | 192.168.105.4  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  118. ci-info: |   14  | 192.168.105.5  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  119. ci-info: |   15  | 192.168.105.6  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  120. ci-info: |   16  | 192.168.105.7  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  121. ci-info: |   17  | 192.168.105.8  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  122. ci-info: |   18  | 192.168.105.9  |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  123. ci-info: |   19  | 192.168.105.10 |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  124. ci-info: |   20  | 192.168.105.11 |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  125. ci-info: |   21  | 192.168.105.12 |  172.20.0.2 | 255.255.255.255 | br-15cbd038d83d |  UGH  |
  126. ci-info: +-------+----------------+-------------+-----------------+-----------------+-------+
  127. 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.
  128. 2017-04-27 14:16:17,114 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early.
  129. 2017-04-27 14:16:17,115 - handlers.py[DEBUG]: start: init-network/check-cache: attempting to read from cache [trust]
  130. 2017-04-27 14:16:17,116 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
  131. 2017-04-27 14:16:17,117 - stages.py[DEBUG]: no cache found
  132. 2017-04-27 14:16:17,117 - handlers.py[DEBUG]: finish: init-network/check-cache: SUCCESS: no cache found
  133. 2017-04-27 14:16:17,118 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
  134. 2017-04-27 14:16:17,122 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
  135. 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']
  136. 2017-04-27 14:16:17,126 - __init__.py[DEBUG]: Searching for network data source in: [u'DataSourceScaleway']
  137. 2017-04-27 14:16:17,127 - handlers.py[DEBUG]: start: init-network/search-Scaleway: searching for network data from DataSourceScaleway
  138. 2017-04-27 14:16:17,127 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceScaleway.DataSourceScaleway'>
  139. 2017-04-27 14:16:17,128 - DataSourceScaleway.py[DEBUG]: Init Scaleway
  140. 2017-04-27 14:16:17,135 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
  141. 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
  142. 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
  143. 2017-04-27 14:16:17,166 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
  144. 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
  145. 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
  146. 2017-04-27 14:16:18,643 - DataSourceScaleway.py[DEBUG]: metadata downloaded
  147. 2017-04-27 14:16:18,643 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 1)...
  148. 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
  149. 2017-04-27 14:16:18,647 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
  150. 2017-04-27 14:16:18,649 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 2)...
  151. 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
  152. 2017-04-27 14:16:18,654 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
  153. 2017-04-27 14:16:18,656 - DataSourceScaleway.py[DEBUG]: Trying to get user data (bind on port 3)...
  154. 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
  155. 2017-04-27 14:16:18,660 - connectionpool.py[DEBUG]: Starting new HTTP connection (1): 169.254.42.42
  156. 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
  157. 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
  158. 2017-04-27 14:16:19,958 - DataSourceScaleway.py[DEBUG]: user-data downloaded
  159. 2017-04-27 14:16:19,959 - handlers.py[DEBUG]: finish: init-network/search-Scaleway: SUCCESS: found network data from DataSourceScaleway
  160. 2017-04-27 14:16:19,960 - stages.py[INFO]: Loaded datasource DataSourceScaleway - DataSourceScaleway
  161. 2017-04-27 14:16:19,961 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False)
  162. 2017-04-27 14:16:19,961 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False)
  163. 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'>,)
  164. 2017-04-27 14:16:19,963 - util.py[DEBUG]: load_yaml given empty string, returning default
  165. 2017-04-27 14:16:19,965 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
  166. 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'
  167. 2017-04-27 14:16:19,968 - util.py[DEBUG]: Reading from /var/lib/cloud/instances/673ba8f7-5a3c-467f-9fb4-c47178bef082/datasource (quiet=False)
  168. 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
  169. 2017-04-27 14:16:19,970 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-datasource - wb: [420] 39 bytes
  170. 2017-04-27 14:16:19,971 - util.py[DEBUG]: Reading from /var/lib/cloud/data/instance-id (quiet=False)
  171. 2017-04-27 14:16:19,972 - stages.py[DEBUG]: previous iid found to be NO_PREVIOUS_INSTANCE_ID
  172. 2017-04-27 14:16:19,973 - util.py[DEBUG]: Writing to /var/lib/cloud/data/instance-id - wb: [420] 37 bytes
  173. 2017-04-27 14:16:19,974 - util.py[DEBUG]: Writing to /run/cloud-init/.instance-id - wb: [420] 37 bytes
  174. 2017-04-27 14:16:19,975 - util.py[DEBUG]: Writing to /var/lib/cloud/data/previous-instance-id - wb: [420] 24 bytes
  175. 2017-04-27 14:16:19,978 - util.py[DEBUG]: Writing to /var/lib/cloud/instance/obj.pkl - wb: [256] 4211 bytes
  176. 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
  177. 2017-04-27 14:16:19,980 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False)
  178. 2017-04-27 14:16:19,981 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False)
  179. 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'>,)
  180. 2017-04-27 14:16:19,982 - util.py[DEBUG]: load_yaml given empty string, returning default
  181. 2017-04-27 14:16:19,984 - util.py[DEBUG]: Reading from /sys/class/net/lo/address (quiet=False)
  182. 2017-04-27 14:16:19,985 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/lo/address
  183. 2017-04-27 14:16:19,986 - util.py[DEBUG]: Reading from /sys/class/net/veth662db22/address (quiet=False)
  184. 2017-04-27 14:16:19,986 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/veth662db22/address
  185. 2017-04-27 14:16:19,987 - util.py[DEBUG]: Reading from /sys/class/net/ip6tnl0/address (quiet=False)
  186. 2017-04-27 14:16:19,988 - util.py[DEBUG]: Read 48 bytes from /sys/class/net/ip6tnl0/address
  187. 2017-04-27 14:16:19,988 - util.py[DEBUG]: Reading from /sys/class/net/sit0/address (quiet=False)
  188. 2017-04-27 14:16:19,989 - util.py[DEBUG]: Read 12 bytes from /sys/class/net/sit0/address
  189. 2017-04-27 14:16:19,989 - util.py[DEBUG]: Reading from /sys/class/net/ip6_vti0/address (quiet=False)
  190. 2017-04-27 14:16:19,990 - util.py[DEBUG]: Read 48 bytes from /sys/class/net/ip6_vti0/address
  191. 2017-04-27 14:16:19,991 - util.py[DEBUG]: Reading from /sys/class/net/docker0/address (quiet=False)
  192. 2017-04-27 14:16:19,991 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/docker0/address
  193. 2017-04-27 14:16:19,992 - util.py[DEBUG]: Reading from /sys/class/net/eth0/address (quiet=False)
  194. 2017-04-27 14:16:19,992 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/eth0/address
  195. 2017-04-27 14:16:19,993 - util.py[DEBUG]: Reading from /sys/class/net/br-15cbd038d83d/address (quiet=False)
  196. 2017-04-27 14:16:19,993 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/br-15cbd038d83d/address
  197. 2017-04-27 14:16:19,996 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': []}
  198. 2017-04-27 14:16:19,997 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
  199. 2017-04-27 14:16:19,998 - __init__.py[DEBUG]: no interfaces to rename
  200. 2017-04-27 14:16:19,999 - stages.py[INFO]: Applying network configuration from cmdline bringup=True: {'version': 1, 'config': []}
  201. 2017-04-27 14:16:20,000 - __init__.py[DEBUG]: Selected renderer 'eni' from priority list: None
  202. 2017-04-27 14:16:20,001 - util.py[WARNING]: failed stage init
  203. 2017-04-27 14:16:20,001 - util.py[DEBUG]: failed stage init
  204. Traceback (most recent call last):
  205.   File "/root/cloud-init/cloudinit/cmd/main.py", line 648, in status_wrapper
  206.     ret = functor(name, args)
  207.   File "/root/cloud-init/cloudinit/cmd/main.py", line 365, in main_init
  208.     init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  209.   File "/root/cloud-init/cloudinit/stages.py", line 649, in apply_network_config
  210.     return self.distro.apply_network_config(netcfg, bring_up=bring_up)
  211.   File "/root/cloud-init/cloudinit/distros/__init__.py", line 163, in apply_network_config
  212.     dev_names = self._write_network_config(netconfig)
  213.   File "/root/cloud-init/cloudinit/distros/debian.py", line 89, in _write_network_config
  214.     return self._supported_write_network_config(netconfig)
  215.   File "/root/cloud-init/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
  216.     renderer.render_network_config(network_config=network_config)
  217.   File "/root/cloud-init/cloudinit/net/renderer.py", line 47, in render_network_config
  218.     network_state=parse_net_config_data(network_config), target=target)
  219.   File "/root/cloud-init/cloudinit/net/eni.py", line 446, in render_network_state
  220.     util.write_file(fpeni, header + self._render_interfaces(network_state))
  221.   File "/root/cloud-init/cloudinit/net/eni.py", line 403, in _render_interfaces
  222.     for iface in network_state.iter_interfaces():
  223. AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
  224. failed run of stage init
  225. ------------------------------------------------------------
  226. Traceback (most recent call last):
  227.   File "/root/cloud-init/cloudinit/cmd/main.py", line 648, in status_wrapper
  228.     ret = functor(name, args)
  229.   File "/root/cloud-init/cloudinit/cmd/main.py", line 365, in main_init
  230.     init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  231.   File "/root/cloud-init/cloudinit/stages.py", line 649, in apply_network_config
  232.     return self.distro.apply_network_config(netcfg, bring_up=bring_up)
  233.   File "/root/cloud-init/cloudinit/distros/__init__.py", line 163, in apply_network_config
  234.     dev_names = self._write_network_config(netconfig)
  235.   File "/root/cloud-init/cloudinit/distros/debian.py", line 89, in _write_network_config
  236.     return self._supported_write_network_config(netconfig)
  237.   File "/root/cloud-init/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
  238.     renderer.render_network_config(network_config=network_config)
  239.   File "/root/cloud-init/cloudinit/net/renderer.py", line 47, in render_network_config
  240.     network_state=parse_net_config_data(network_config), target=target)
  241.   File "/root/cloud-init/cloudinit/net/eni.py", line 446, in render_network_state
  242.     util.write_file(fpeni, header + self._render_interfaces(network_state))
  243.   File "/root/cloud-init/cloudinit/net/eni.py", line 403, in _render_interfaces
  244.     for iface in network_state.iter_interfaces():
  245. AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
  246. ------------------------------------------------------------
  247. 2017-04-27 14:16:20,008 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
  248. 2017-04-27 14:16:20,009 - util.py[DEBUG]: Read 21 bytes from /proc/uptime
  249. 2017-04-27 14:16:20,009 - util.py[DEBUG]: cloud-init mode 'init' took 3.063 seconds (3.07)
  250. 2017-04-27 14:16:20,010 - handlers.py[DEBUG]: finish: init-network: SUCCESS: searching for network datasources
RAW Paste Data
Top