STEP4:Can't create a Nova administrator on CentOS

Asked by cjy7891

when I create a Nova administrator on CentOS5.5, I got this message:
[root@localhost ~]# nova-manage user admin anne
Traceback (most recent call last):
  File "/usr/local/bin/nova-manage", line 4, in ?
    import pkg_resources
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2603, in ?
    working_set.require(__requires__)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: nova==2010.1

Best Regards

Question information

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

2010/12/1 cjy7891 <email address hidden>:
> New question #136162 on OpenStack Compute (nova):
> When I create a Nova administrator on CentOS5.5,I got the message:
> [root@localhost nova-2010.1]# nova-manage user admin anne
> Traceback (most recent call last):
>  File "/usr/local/bin/nova-manage", line 4, in ?
>    import pkg_resources
>  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2603, in ?
>    working_set.require(__requires__)
>  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 666, in require
>    needed = self.resolve(parse_requirements(requirements))
>  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 565, in resolve
>    raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: nova==2010.1
> If anybody can help me I appreciate.

I'm not sure what the problem is, but your output suggets you're using
Python 2.4.
Nova requires Python 2.6, so even if that's not your problem, you're
not going to get very far. :(

--
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

Revision history for this message
cjy7891 (tangjiaping2009) said :
#2

thanks for your answer. I will try to use Python 2.6.

Revision history for this message
cjy7891 (tangjiaping2009) said :
#3

I used python 2.6 to build and installed Nova again ,that problem was solved but I get a another
problem:
[root@localhost nova-2010.1]# nova-manage user admin anne
Traceback (most recent call last):
  File "/usr/local/bin/nova-manage", line 5, in <module>
    pkg_resources.run_script('nova==2010.1', 'nova-manage')
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1207, in run_script
  File "/usr/local/lib/python2.6/site-packages/nova-2010.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 81, in <module>
    flags.DECLARE('fixed_range', 'nova.network.manager')
  File "/usr/local/lib/python2.6/site-packages/nova-2010.1-py2.6.egg/nova/flags.py", line 166, in DECLARE
    __import__(module_string, globals(), locals())
  File "/usr/local/lib/python2.6/site-packages/nova-2010.1-py2.6.egg/nova/network/manager.py", line 47, in <module>
    flags.DEFINE_string('vpn_ip', utils.get_my_ip(),
  File "/usr/local/lib/python2.6/site-packages/nova-2010.1-py2.6.egg/nova/utils.py", line 155, in get_my_ip
    csock.connect(('www.google.com', 80))
  File "/usr/local/lib/python2.6/site-packages/eventlet-0.9.13-py2.6.egg/eventlet/greenio.py", line 161, in connect
    while not socket_connect(fd, address):
  File "/usr/local/lib/python2.6/site-packages/eventlet-0.9.13-py2.6.egg/eventlet/greenio.py", line 35, in socket_connect
    raise socket.error(err, errno.errorcode[err])
socket.error: [Errno 110] ETIMEDOUT

Best Regards

Revision history for this message
cjy7891 (tangjiaping2009) said :
#4

Thanks Soren Hansen, that solved my question.