Ubuntu Pastebin

Paste from ubuntu at Wed, 24 Jun 2015 17:54:39 +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
### works ###
$ tox -e py27

py27 develop-inst-noop: /home/ubuntu/cloud-init
py27 runtests: commands[0] | nosetests
.........................................................
----------------------------------------------------------------------
Ran 57 tests in 1.299s

OK
___________________________________ summary ____________________________________
  py27: commands succeeded
  congratulations :)

### no works ###
$ https_proxy=http://squid.internal:3128 http_proxy=http://squid.internal:3128 tox -e py27 >> out 2>&1
py27 develop-inst-noop: /home/ubuntu/cloud-init
py27 runtests: commands[0] | nosetests
...................................................EEEEE.
======================================================================
ERROR: cloudinit.tests.test_url_helper.UrlHelperFetchTest.test_failed_retry_url_fetch
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1063, in wrapper
    return test(*args, **kw)
  File "/home/ubuntu/cloud-init/cloudinit/tests/test_url_helper.py", line 104, in test_failed_retry_url_fetch
    retries=2)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
    reraise(*matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/ubuntu/cloud-init/cloudinit/url_helper.py", line 192, in read_url
    response = session.request(**request_args)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python2.7/httplib.py", line 973, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 313, in connect
    raise UnmockedError()
httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).

-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: cloudinit.tests.test_url_helper.UrlHelperFetchTest.test_failed_url_fetch
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1063, in wrapper
    return test(*args, **kw)
  File "/home/ubuntu/cloud-init/cloudinit/tests/test_url_helper.py", line 87, in test_failed_url_fetch
    url_helper.read_url, "http://www.yahoo.com")
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
    reraise(*matchee)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/ubuntu/cloud-init/cloudinit/url_helper.py", line 192, in read_url
    response = session.request(**request_args)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python2.7/httplib.py", line 973, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 313, in connect
    raise UnmockedError()
httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).

-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: cloudinit.tests.test_url_helper.UrlHelperFetchTest.test_retry_url_fetch
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1063, in wrapper
    return test(*args, **kw)
  File "/home/ubuntu/cloud-init/cloudinit/tests/test_url_helper.py", line 77, in test_retry_url_fetch
    resp = url_helper.read_url("http://www.yahoo.com", retries=2)
  File "/home/ubuntu/cloud-init/cloudinit/url_helper.py", line 192, in read_url
    response = session.request(**request_args)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python2.7/httplib.py", line 973, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 313, in connect
    raise UnmockedError()
httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).

-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: cloudinit.tests.test_url_helper.UrlHelperFetchTest.test_url_fetch
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1063, in wrapper
    return test(*args, **kw)
  File "/home/ubuntu/cloud-init/cloudinit/tests/test_url_helper.py", line 62, in test_url_fetch
    resp = url_helper.read_url("http://www.yahoo.com")
  File "/home/ubuntu/cloud-init/cloudinit/url_helper.py", line 192, in read_url
    response = session.request(**request_args)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python2.7/httplib.py", line 973, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 313, in connect
    raise UnmockedError()
httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).

-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: cloudinit.tests.test_url_helper.UrlHelperWaitForUrlsTest.test_url_wait_for
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/cloud-init/.tox/py27/local/lib/python2.7/site-packages/httpretty/core.py", line 1063, in wrapper
    return test(*args, **kw)
  File "/home/ubuntu/cloud-init/cloudinit/tests/test_url_helper.py", line 32, in test_url_wait_for
    url, response = url_helper.wait_any_url(urls)
TypeError: 'NoneType' object is not iterable

-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
cloudinit.url_helper: DEBUG: Calling 'http://www.yahoo.com' failed [0/Nones]: unexpected error [No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).]
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): squid.internal
cloudinit.url_helper: DEBUG: Calling 'http://www.google.com' failed [0/Nones]: unexpected error [No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).]
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 57 tests in 1.294s

FAILED (errors=5)
ERROR: InvocationError: '/home/ubuntu/cloud-init/.tox/py27/bin/nosetests'
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Download as text