python2.7 test regression: Tunnel connection failed: 403 Forbidden
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
adt-cloud-worker |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When running python2.7 tests on adtcloud, one test fails with
=======
ERROR: test_socketserver (test.test_
Using a SocketServer to create and manage SSL connections.
-------
Traceback (most recent call last):
File "/usr/lib/
f = urllib2.
File "/usr/lib/
return opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
context=
File "/usr/lib/
raise URLError(err)
URLError: <urlopen error Tunnel connection failed: 403 Forbidden>
Test run: http://
test log on amd64: http://
This runs fine on i386 and the same package version in vivid has already run successfully on amd64 on the old infrastructure, so this is clearly due to a changed environment. We need to reproduce/
affects: | adt-cloud-worker → ubuntu |
Changed in ubuntu: | |
status: | New → Confirmed |
Sorry, there are more tests that fail, not just that one. Most of the others look the same, but there's another one which looks a little clearer:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= auth_success (test.test_ urllib2_ localnet. BasicAuthTests) ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 7/test/ test_urllib2_ localnet. py", line 311, in test_basic_ auth_success fail("Basic Auth Failed for url: %s" % self.server_url) 127.0.0. 1:37672
FAIL: test_basic_
-------
Traceback (most recent call last):
File "/usr/lib/
self.
AssertionError: Basic Auth Failed for url: http://
For the record, this also affects wily (http:// d-jenkins. ubuntu- ci:8080/ job/wily- adt-python2. 7/11/ARCH= amd64,label= adt/artifact/ results/ testsuite- stdout).
It also affects python3.4, e. g. in http:// d-jenkins. ubuntu- ci:8080/ job/wily- adt-python3. 4/8/ARCH= amd64,label= adt/ (the latest run fails due to a different adtcloud problem). Investigating this on python2.7 only ought to suffice, it's not likely to be specific to the python version.