Ask Your Question
1

Issue with nova installation in devstack

asked 2014-09-09 13:23:49 -0500

Sandy gravatar image

Hi, I am installing devstack on Ubuntu 14.04 in virtualenv for research purposes. When executing stack.sh file I get following error :

error in setup command: Error parsing /opt/stack/nova/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

Though git is installed on my system. pip.log file says :

DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated.  See https://github.com/pypa/pip/issues/906.
Obtaining file:///opt/stack/nova
  Running setup.py (path:/opt/stack/nova/setup.py) egg_info for package from file:///opt/stack/nova
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/core.py", line 104, in pbr
        attrs = util.cfg_to_args(path)
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/util.py", line 238, in cfg_to_args
        pbr.hooks.setup_hook(config)
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 27, in setup_hook
        metadata_config.run()
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/hooks/base.py", line 29, in run
        self.hook()
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/hooks/metadata.py", line 28, in hook
        self.config['name'], self.config.get('version', None))
      File "/home/sandy/venv/local/lib/python2.7/site-packages/pbr/packaging.py", line 904, in get_version
        raise Exception("Versioning for this project requires either an sdist"
    Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
    error in setup command: Error parsing /opt/stack/nova/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
    Complete output from command python setup.py egg_info:
    ERROR:root:Error parsing

I searched on internet for this error and got that there is some version problem and its compatibility. But I am not sure how to get out this issue.

Any sort of help will be highly appreciated. Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-09 15:18:26 -0500

mpetason gravatar image

Check the git version, make sure it is >= the version expected. Verify that you can connect to the internet from this node. If you are pulling from an upstream git repository then it needs internet access. You may want to verify the version of python as well and make sure that it is new enough for the version of Devstack you are using.

Depending on your OS:

git --version

and

python --version
edit flag offensive delete link more

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

1 follower

Stats

Asked: 2014-09-09 13:23:49 -0500

Seen: 1,287 times

Last updated: Sep 09 '14