neutron-lbaas py27 job fails on pyOpenSSL <= 0.13.1

Bug #1470856 reported by Ilya Shakhat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Ilya Shakhat

Bug Description

According to requirements.txt allowed pyOpenSSL>=0.11. Currently the latest is 0.15.1 and tests are ok with this, however if version is enforced to 0.13.1 (as packaged in Ubuntu) tests fail:

neutron_lbaas.tests.unit.common.tls_utils.test_cert_parser.TestTLSParseUtils.test_read_private_key
--------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py", line 238, in test_read_private_key
        ENCRYPTED_PKCS8_CRT_KEY)
      File "/home/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
        self.assertThat(our_callable, matcher)
      File "/home/ishakhat/Work/neutron-lbaas/.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/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
        mismatch = matcher.match(matchee)
      File "/home/ishakhat/Work/neutron-lbaas/.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/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
        mismatch = matcher.match(matchee)
      File "/home/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
        reraise(*matchee)
      File "/home/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
        result = matchee()
      File "/home/ishakhat/Work/neutron-lbaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
        return self._callable_object(*self._args, **self._kwargs)
      File "neutron_lbaas/common/tls_utils/cert_parser.py", line 64, in _read_privatekey
        return crypto.load_privatekey(crypto.FILETYPE_PEM, privatekey_pem, cb)
    OpenSSL.crypto.Error: [('PEM routines', 'PEM_READ_BIO_PRIVATEKEY', 'bad password read')]

Tags: lbaas
Ilya Shakhat (shakhat)
tags: added: lbaas
Changed in neutron:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ilya Shakhat (shakhat) wrote :
Changed in neutron:
status: Confirmed → Fix Committed
assignee: nobody → Ilya Shakhat (shakhat)
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-3 → 7.0.0
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.