Ubuntu Pastebin

Paste from smoser at Tue, 14 Jun 2016 18:22:09 +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
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
$ tox
GLOB sdist-make: /home/smoser-public/src/cloud-init/trunk/setup.py
py27 inst-nodeps: /home/smoser-public/src/cloud-init/trunk/.tox/dist/cloud-init-0.7.7.zip
py27 installed: Cheetah==2.4.4,cloud-init==0.7.7,configobj==5.0.6,contextlib2==0.5.3,flake8==2.5.4,funcsigs==1.0.2,hacking==0.10.2,httpretty==0.8.14,Jinja2==2.8,jsonpatch==1.14,jsonpointer==1.10,linecache2==1.0.0,Markdown==2.6.6,MarkupSafe==0.23,mccabe==0.4.0,mock==2.0.0,nose==1.3.7,oauthlib==1.1.2,pbr==1.10.0,pep8==1.7.0,pkg-resources==0.0.0,prettytable==0.7.2,pyflakes==1.1.0,PyYAML==3.11,requests==2.10.0,six==1.10.0,traceback2==1.4.0,unittest2==1.1.0
py27 runtests: PYTHONHASHSEED='1608104214'
py27 runtests: commands[0] | python -m nose tests
................SSSSS.....................................................................................................................................................FFFFFFFF................................................................................................................................................................../home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
  "\nYou don't have the C version of NameMapper installed! "
.......................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_instance_level_keys_replace_project_level_keys (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 161, in test_instance_level_keys_replace_project_level_keys
    self.assertEqual([key_content], self.ds.get_public_ssh_keys())
AssertionError: Lists differ: ['ssh-rsa JustAUser root@server'] != [u'//search.wowway.com/index.php?origURL=h[273 chars]ml>']

First differing element 0:
ssh-rsa JustAUser root@server
//search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>

- ['ssh-rsa JustAUser root@server']
+ [u'//search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>']
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_instance_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 151, in test_instance_level_ssh_keys_are_used
    self.assertIn(key_content, self.ds.get_public_ssh_keys())
AssertionError: 'ssh-rsa JustAUser root@server' not found in [u'//search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>']
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_metadata (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 99, in test_metadata
    self.ds.get_hostname())
AssertionError: 'server' != u'<html><head><meta http-equiv="refresh" content="0;url=http://search'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_metadata_encoding (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 124, in test_metadata_encoding
    self.assertEqual(decoded, self.ds.get_userdata_raw())
AssertionError: '/bin/echo baz\n' != '<html><head><meta http-equiv="refresh" co[331 chars]tml>'
- /bin/echo baz
+ <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_metadata_partial (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 113, in test_metadata_partial
    self.ds.get_instance_id())
AssertionError: '1234' != u'<html><head><meta http-equiv="refresh" [315 chars]tml>'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_missing_required_keys_return_false (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 132, in test_missing_required_keys_return_false
    self.assertEqual(False, self.ds.get_data())
AssertionError: False != True
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_only_last_part_of_zone_used_for_availability_zone (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 166, in test_only_last_part_of_zone_used_for_availability_zone
    self.assertEqual('bar', self.ds.availability_zone)
AssertionError: 'bar' != u'html>'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_project_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 141, in test_project_level_ssh_keys_are_used
    self.ds.get_public_ssh_keys())
AssertionError: Lists differ: ['ssh-rsa AA2..+aRD0fyVw== root@server'] != [u'//search.wowway.com/index.php?origURL=h[273 chars]ml>']

First differing element 0:
ssh-rsa AA2..+aRD0fyVw== root@server
//search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>

- ['ssh-rsa AA2..+aRD0fyVw== root@server']
+ [u'//search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>']
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/id HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/id (200, 358b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/zone' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/zone', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/zone HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/zone (200, 360b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/hostname' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/hostname', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/hostname HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/hostname (200, 364b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/project/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys (200, 373b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/sshKeys HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys (200, 374b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data (200, 376b) after 1 attempts
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding' with {'headers': {'User-Agent': 'Cloud-Init/0.7.7', 'X-Google-Metadata-Request': True}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding', 'method': 'GET', 'allow_redirects': True} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
requests.packages.urllib3.connectionpool: DEBUG: "GET /computeMetadata/v1/instance/attributes/user-data-encoding HTTP/1.1" 200 None
cloudinit.url_helper: DEBUG: Read from http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding (200, 385b) after 1 attempts
cloudinit.sources.DataSourceGCE: WARNING: unknown user-data-encoding: <html><head><meta http-equiv="refresh" content="0;url=http://search.wowway.com/index.php?origURL=http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data-encoding&bc="/></head><body><script type="text/javascript">window.location="http://search.wowway.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer)+"&bc=";</script></body></html>, ignoring
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 619 tests in 9.909s

FAILED (SKIP=5, failures=8)
ERROR: InvocationError: '/home/smoser-public/src/cloud-init/trunk/.tox/py27/bin/python -m nose tests'
py3 inst-nodeps: /home/smoser-public/src/cloud-init/trunk/.tox/dist/cloud-init-0.7.7.zip
py3 installed: cloud-init==0.7.7,configobj==5.0.6,contextlib2==0.5.3,flake8==2.5.4,hacking==0.10.2,httpretty==0.8.14,Jinja2==2.8,jsonpatch==1.14,jsonpointer==1.10,linecache2==1.0.0,MarkupSafe==0.23,mccabe==0.4.0,mock==2.0.0,nose==1.3.7,oauthlib==1.1.2,pbr==1.10.0,pep8==1.7.0,pkg-resources==0.0.0,prettytable==0.7.2,pyflakes==1.1.0,PyYAML==3.11,requests==2.10.0,six==1.10.0,traceback2==1.4.0,unittest2==1.1.0
py3 runtests: PYTHONHASHSEED='1608104214'
py3 runtests: commands[0] | python -m nose tests
................SSSSS....................................................................................................................................................FEEEEE.EE...................................................................................................................................................................................................................................................................................................................................................................................................S.....................................................
======================================================================
ERROR: test_instance_level_keys_replace_project_level_keys (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 161, in test_instance_level_keys_replace_project_level_keys
    self.assertEqual([key_content], self.ds.get_public_ssh_keys())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
    return self.metadata['public-keys']
KeyError: 'public-keys'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_instance_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 151, in test_instance_level_ssh_keys_are_used
    self.assertIn(key_content, self.ds.get_public_ssh_keys())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
    return self.metadata['public-keys']
KeyError: 'public-keys'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_metadata (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 99, in test_metadata
    self.ds.get_hostname())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 146, in get_hostname
    return self.metadata['local-hostname'].split('.')[0]
KeyError: 'local-hostname'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_metadata_encoding (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 124, in test_metadata_encoding
    self.assertEqual(decoded, self.ds.get_userdata_raw())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 149, in get_userdata_raw
    return self.metadata['user-data']
KeyError: 'user-data'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_metadata_partial (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 113, in test_metadata_partial
    self.ds.get_instance_id())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 139, in get_instance_id
    return self.metadata['instance-id']
KeyError: 'instance-id'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_only_last_part_of_zone_used_for_availability_zone (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 166, in test_only_last_part_of_zone_used_for_availability_zone
    self.assertEqual('bar', self.ds.availability_zone)
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 153, in availability_zone
    return self.metadata['availability-zone']
KeyError: 'availability-zone'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_project_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 141, in test_project_level_ssh_keys_are_used
    self.ds.get_public_ssh_keys())
  File "/home/smoser-public/src/cloud-init/trunk/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
    return self.metadata['public-keys']
KeyError: 'public-keys'
-------------------- >> begin captured logging << --------------------
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_connection (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/smoser-public/src/cloud-init/trunk/.tox/py3/lib/python3.5/site-packages/httpretty/core.py", line 1146, in wrapper
    return test(*args, **kw)
  File "/home/smoser-public/src/cloud-init/trunk/tests/unittests/test_datasource/test_gce.py", line 88, in test_connection
    self.assertTrue(success)
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: detected dns redirection: {'fvXIUG0UBoOQPpbDhgpBfS28h3rtrOIc': [': fvXIUG0UBoOQPpbDhgpBfS28h3rtrOIc'], 'does-not-exist.example.com.': [': does-not-exist.example.com.'], 'example.invalid.': [': example.invalid.']}
cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'allow_redirects': True, 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.7'}, 'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'method': 'GET'} configuration
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): metadata.google.internal
cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception ('Connection aborted.', gaierror(-2, 'Name or service not known'))
cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 619 tests in 2.627s

FAILED (SKIP=6, errors=7, failures=1)
ERROR: InvocationError: '/home/smoser-public/src/cloud-init/trunk/.tox/py3/bin/python -m nose tests'
flake8 inst-nodeps: /home/smoser-public/src/cloud-init/trunk/.tox/dist/cloud-init-0.7.7.zip
flake8 installed: cloud-init==0.7.7,configobj==5.0.6,contextlib2==0.5.3,flake8==2.5.4,hacking==0.10.2,httpretty==0.8.14,Jinja2==2.8,jsonpatch==1.14,jsonpointer==1.10,linecache2==1.0.0,MarkupSafe==0.23,mccabe==0.4.0,mock==2.0.0,nose==1.3.7,oauthlib==1.1.2,pbr==1.10.0,pep8==1.7.0,pkg-resources==0.0.0,prettytable==0.7.2,pyflakes==1.1.0,PyYAML==3.11,requests==2.10.0,six==1.10.0,traceback2==1.4.0,unittest2==1.1.0
flake8 runtests: PYTHONHASHSEED='1608104214'
flake8 runtests: commands[0] | /home/smoser-public/src/cloud-init/trunk/.tox/flake8/bin/python -m flake8 cloudinit/ tests/ tools/
cloudinit/net/eni.py:395:29: W503 line break before binary operator
ERROR: InvocationError: '/home/smoser-public/src/cloud-init/trunk/.tox/flake8/bin/python -m flake8 cloudinit/ tests/ tools/'
__________________________________________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________________________________________
ERROR:   py27: commands failed
ERROR:   py3: commands failed
ERROR:   flake8: commands failed
Download as text