On Ubuntu 11.10, can't call nova-manage without ImportError SSLv2_method

Asked by Rob Neff

Any call involving nova-manage returns the following traceback on Ubuntu 11.10.

Commands:
$tar -xzvf M2Crypto-0.21.1.tar.gz
$cd M2Crypto-0.21.1
$aptitude install swig libssl-dev python-dev
$python setup.py build
$python setup.py install

flexnova@cloudcontroller:~/M2Crypto-0.21.1$ sudo nova-manage user create admin mike
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 80, in <module>
    from nova import crypto
  File "/usr/lib/python2.7/dist-packages/nova/crypto.py", line 36, in <module>
    import M2Crypto
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux-x86_64.egg/M2Crypto/__init__.py", line 22, in <module>
    import __m2crypto
ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux-x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Rob Neff
Solved:
Last query:
Last reply:
Revision history for this message
Rob Neff (robpneff) said :
#1

Turns out that installing M2Crypto-0.21.1.tar.gz caused the problem. .21.1 had a regression in it and by going by to the version that came with Ubuntu .20.1, nova-manage worked without problem.

Revision history for this message
chzu (hhgzju) said :
#2

I getting the same problem with you :ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux-x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method.
    How did you resove it?

Revision history for this message
Rob Neff (robpneff) said :
#3

I deleted this file.
/usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux-x86_64.egg

Then I did an apt-get M2Crypto and Ubuntu installed vs 20.1.

Revision history for this message
chzu (hhgzju) said :
#4

Thank you very much ,but I still can't resolve the problem.Could you give me your detail document of installing OpenStack? If so ,Sent the document to my e-Mail:hhgzju@163.com. Thanks !