[SRU] FTBFS python 0.18 on Ubuntu 14.04

Bug #1517975 reported by Chuck Short
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pylxd (Ubuntu)
Fix Released
Medium
Unassigned
Wily
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned

Bug Description

==============================
Failed 2 tests - output below:
==============================

pylxd.tests.test_connection.LXDInitConnectionTest.test_https_connection
-----------------------------------------------------------------------

Captured traceback:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "/��PKGBUILDDIR��/pylxd/tests/test_connection.py", line 48, in test_https_connection
        conn.connect()
      File "/��PKGBUILDDIR��/pylxd/connection.py", line 57, in connect
        ssl_version=ssl.PROTOCOL_TLSv1_2)
    AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_2'

pylxd.tests.test_connection.LXDInitConnectionTest.test_https_proxy_connection
-----------------------------------------------------------------------------
Captured traceback:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "/��PKGBUILDDIR��/pylxd/tests/test_connection.py", line 66, in test_https_proxy_connection
        conn.connect()
      File "/��PKGBUILDDIR��/pylxd/connection.py", line 57, in connect
        ssl_version=ssl.PROTOCOL_TLSv1_2)
    AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_2'

Revision history for this message
Chuck Short (zulcss) wrote :

[Impact]

Currently the unit tests currently fail with the above error. This happens when the python version does not have TLS v1.2 support in the standard python library for ssl. This currently blocks the Openstack team from putting LXD into the Ubuntu Cloud Archive.

[Test Case]

1. apt-get the source for pylxd on Ubuntu 14.04 and run the test suite on Ubuntu 14.04
2. Observe the failure as above.
3. Fetch the new package for pylxd and run the test suite on Ubuntu 14.04

[Regression Potential]

There is no regression potential.

Chuck Short (zulcss)
summary: - FTBFS python 0.18 on Ubuntu 14.04
+ [SRU] FTBFS python 0.18 on Ubuntu 14.04
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-pylxd - 0.18-0ubuntu2

---------------
python-pylxd (0.18-0ubuntu2) xenial; urgency=medium

  * debian/control: Add python-openssl as a dependency.
  * debian/patches/fix-tlsv12-detection.patch (LP: #1517975)

 -- Chuck Short <email address hidden> Thu, 19 Nov 2015 11:40:31 -0500

Changed in python-pylxd (Ubuntu Xenial):
status: New → Fix Released
Chuck Short (zulcss)
Changed in python-pylxd (Ubuntu Wily):
status: New → Confirmed
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Chuck, or anyone else affected,

Accepted python-pylxd into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python-pylxd/0.18-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in python-pylxd (Ubuntu Wily):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Chuck Short (zulcss) wrote :

Builds fine on trusty

tags: added: verification-done
removed: verification-needed
James Page (james-page)
Changed in python-pylxd (Ubuntu Xenial):
importance: Undecided → Medium
Changed in python-pylxd (Ubuntu Wily):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-pylxd - 0.18-0ubuntu1.1

---------------
python-pylxd (0.18-0ubuntu1.1) wily; urgency=medium

  * debian/control: Add python-openssl as a dependency.
  * debian/patches/fix-tlsv12-detection.patch (LP: #1517975)

 -- Chuck Short <email address hidden> Thu, 19 Nov 2015 11:40:31 -0500

Changed in python-pylxd (Ubuntu Wily):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for python-pylxd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.