[Description]
Rebuilding python-glanceclient with python2.7.12 for trusty is resulting in 
failures such as:

FAIL: tests.test_ssl.TestVerifiedHTTPSConnection.test_ssl_init_bad_key
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/test_ssl.py", line 82, in test_ssl_init_bad_key
    cacert=cacert)
  File "/<<PKGBUILDDIR>>/glanceclient/common/http.py", line 329, in __init__
    cert_file=cert_file)
  File "/usr/lib/python2.7/httplib.py", line 1264, in __init__
    context.load_cert_chain(cert_file, key_file)
SSLError: [SSL] PEM lib (_ssl.c:2603)

See: https://launchpadlibrarian.net/303235421/buildlog_ubuntu-
trusty-i386.python-glanceclient_1%3A0.12.0-0ubuntu1.1_BUILDING.txt.gz

The fix includes partial backports from upstream's kilo-eol tag to
update HTTPS certificate handling for pep-0476
(https://github.com/python/peps/blob/master/pep-0476.txt). The fix is
backward compatible with the current version of python2.7 in trusty.

[Test Case]
Building python-glanceclient will run unit tests that will fail with 
Python2.7.12 without this patch.

[Regression Potential]
Fairly low. The patches aren't straight cherry-picks from upstream but they are 
partial cherry-picks from upstream's kilo-eol tag.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1404227

Title:
  Unit test failures due to changes in python 2.7.9+

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1404227/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to