Ask Your Question
1

./stack.sh creates problem with devstack

asked 2013-08-26 16:15:38 -0500

Deepak gravatar image

updated 2013-08-26 21:45:43 -0500

Jobin gravatar image

Hi,

I had my devstack running very good. Recently got some problem with lack of space in my VM when I sorted the problem and tried stacking devstack by ./stack.sh it gives me the following error. Please help find the errror also in http://paste.openstack.org/show/45169/

Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/python-heatclient
Storing complete log in /home/student/.pip/pip.log
    ++ for reqs_file in '$1/requirements.txt' '$1/tools/pip-requires'
    ++ '[' -f /opt/stack/horizon/tools/pip-requires ']'
    ++ cd /opt/stack/horizon
    ++ python setup.py egg_info
    Traceback (most recent call last):
    File "setup.py", line 22, in <module>
    pbr=True)
    File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 260, in     __init__
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 284, in          fetch_build_eggs  
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 569, in resolve
    dist = best.get(req.key)
    pkg_resources.VersionConflict: (pbr 0.5.18.6.gb24d4ca (/opt/stack/pbr), Requirement.parse('pbr>=0.5.21,<1.0'))
    ++ sudo HTTP_PROXY= HTTPS_PROXY= NO_PROXY= python setup.py develop
    Traceback (most recent call last):
    File "setup.py", line 22, in <module>
    pbr=True)
    File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 260, in    __init__
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 284, in   fetch_build_eggs
    File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 569, in resolve
    dist = best.get(req.key)
    pkg_resources.VersionConflict: (pbr 0.5.18.6.gb24d4ca (/opt/stack/pbr), Requirement.parse('pbr>=0.5.21,<1.0'))
    +++ failed
    +++ local r=1
    ++++ jobs -p
    +++ kill
    +++ set +o xtrace
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-26 21:56:04 -0500

Jobin gravatar image

updated 2013-08-27 08:15:03 -0500

It seems like pip is having problems reinstalling pbr with version >= 0.5.21 because you already have pbr 0.5.18. You may have to install it manually by downloading it from here and then installing using python setup.py install or try unmesh-gurjar's suggestion given in the comment below.

Otherwise completely remove OpenStack using sudo purge nova.* keystone.* and all other components and then reinstall using ./stack.sh

edit flag offensive delete link more

Comments

I am not sure, but in your current downloaded source i.e. '/opt/stack/pbr' (from the traceback above), if you manually do a 'git checkout 0.5.21' and then run the stack.sh script, things should be fine. In case you give it a try, please reply with how it went.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2013-08-26 23:52:04 -0500 )edit

@unmesh-gurjar I am getting an error stating below error: pathspec '0.5.21' did not match any file known to git.

Deepak gravatar imageDeepak ( 2013-08-29 12:42:19 -0500 )edit

@josbin: re-installing my openstack would be a tedious process because i have configured my devstack with federated keystone, which I am afraid would create any problems that i faced earlier due to misconfiguration.

Deepak gravatar imageDeepak ( 2013-08-29 12:43:56 -0500 )edit

@Deepak: Did you try manually downloading the package?

Jobin gravatar imageJobin ( 2013-08-29 12:51:42 -0500 )edit

@Jobin I am trying to do that now will let you know with the result

Deepak gravatar imageDeepak ( 2013-08-29 12:54:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-08-26 16:15:38 -0500

Seen: 2,926 times

Last updated: Aug 27 '13