registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #10748
[Bug 615518] [NEW] unit test nova.tests.auth_unittest.AuthTestCase.test_209_can_generate_x509 failing on Mac OS X
Public bug reported:
While setting up to do cleanup work on Nova for the pylint/pep8
blueprint, I brought down and enabled everything I could find to make
the tests all function on Nova. I wrote up the components and steps,
publishing in the wiki at http://wiki.openstack.org/HackingNovaMacOSX.
With redis, out of the box everything works *except*
nova.tests.auth_unittest.AuthTestCase.test_209_can_generate_x509
Here's the stack trace that I receive:
[ERROR]: nova.tests.auth_unittest.AuthTestCase.test_209_can_generate_x509
Traceback (most recent call last):
File "/Users/heckj/Documents/code/nova/nova/test.py", line 222, in run
d = self._maybeInlineCallbacks(testMethod)
File "/Users/heckj/Documents/code/nova/nova/test.py", line 182, in _maybeInlineCallbacks
g = f()
File "/Users/heckj/Documents/code/nova/nova/tests/auth_unittest.py", line 162, in test_209_can_generate_x509
signed_cert = X509.load_cert_string(cert_str)
File "/Users/heckj/Documents/code/nova/.nova-venv/lib/python2.6/site-packages/M2Crypto/X509.py", line 655, in load_cert_string
return load_cert_bio(bio, format)
File "/Users/heckj/Documents/code/nova/.nova-venv/lib/python2.6/site-packages/M2Crypto/X509.py", line 639, in load_cert_bio
raise X509Error(Err.get_error())
M2Crypto.X509.X509Error: 140735090166816:error:0906D06C:PEM routines:PEM_read_bio:no start line:/SourceCache/OpenSSL098/OpenSSL098-32/src/crypto/pem/pem_lib.c:650:Expecting: CERTIFICATE
Digging into to the test and code a little bit, it appears that the
cert_str getting returned is blank, and hence we're hitting an error
when trying to use it. Under the covers, the code appears to be doing
its work calling openssl directly and getting pieces back. I have 1.0.0a
installed (through MacPorts) - just happened to have it. Didn't see it
as an explicit dependency on anything earlier than finding it in the
code.
Would be happy to help debug, but I'm very unfamiliar with both this
code base and the crypto space.
-joe
** Affects: nova
Importance: Undecided
Status: New
--
unit test nova.tests.auth_unittest.AuthTestCase.test_209_can_generate_x509 failing on Mac OS X
https://bugs.launchpad.net/bugs/615518
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.
Follow ups
References