Periodic job periodic-neutron-lbaas-python27-mos70 fails:
-----
04:45:01 neutron_lbaas.tests.unit.common.tls_utils.test_cert_parser.TestTLSParseUtils.test_read_private_key
04:45:01 --------------------------------------------------------------------------------------------------
04:45:01
04:45:01 Captured traceback:
04:45:01 ~~~~~~~~~~~~~~~~~~~
04:45:01 Traceback (most recent call last):
04:45:01 _StringException: Empty attachments:
04:45:01 pythonlogging:''
04:45:01 pythonlogging:'neutron.api.extensions'
04:45:01 stderr
04:45:01 stdout
04:45:01
04:45:01 Traceback (most recent call last):
04:45:01 File "neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py", line 238, in test_read_private_key
04:45:01 ENCRYPTED_PKCS8_CRT_KEY)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
04:45:01 self.assertThat(our_callable, matcher)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
04:45:01 mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
04:45:01 mismatch = matcher.match(matchee)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
04:45:01 mismatch = self.exception_matcher.match(exc_info)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
04:45:01 mismatch = matcher.match(matchee)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
04:45:01 reraise(*matchee)
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
04:45:01 result = matchee()
04:45:01 File "/home/jenkins/workspace/periodic-neutron-lbaas-python27-mos70/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
04:45:01 return self._callable_object(*self._args, **self._kwargs)
04:45:01 File "neutron_lbaas/common/tls_utils/cert_parser.py", line 64, in _read_privatekey
04:45:01 return crypto.load_privatekey(crypto.FILETYPE_PEM, privatekey_pem, cb)
04:45:01 Error: [('PEM routines', 'PEM_READ_BIO_PRIVATEKEY', 'bad password read')]
-----
The reason is the pyOpenSSL==0.13 that was used during the test. That version is used because it's available through system repositories. However, tests need more recent version, e.g. pyOpenSSL==0.15.1 fixes the problem [3].
Links
====
[1] https://jenkins.mosi.mirantis.net/job/periodic-neutron-lbaas-python27-mos70/
[2] http://logs.mosi.mirantis.net/periodic/periodic-neutron-lbaas-python27-mos70/06740bd/
[3] https://review.fuel-infra.org/#/c/8961/
PyOpenSSL==0.14 pinned in mos-requirements.
We need to update system package too, probably.