I'm getting an error while trying to run the script stack.sh it's showing the following error can anyone please help?Thank you in advance :)

asked 2018-12-12 00:49:53 -0500

fadilmohd007@gmail.com gravatar image

updated 2018-12-12 02:33:44 -0500

`Obtaining file:///opt/stack/keystone

Complete output from command python setup.py egg_info:
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pbr/core.py", line 96, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/lib/python2.7/site-packages/pbr/util.py", line 259, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/usr/lib/python2.7/site-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/lib/python2.7/site-packages/pbr/hooks/metadata.py", line 26, in hook
    self.config['name'], self.config.get('version', None))
  File "/usr/lib/python2.7/site-packages/pbr/packaging.py", line 839, in get_version
    name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name keystone was given, but was not able to be found.
error in setup command: Error parsing /opt/stack/keystone/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name keystone was given, but was not able to be found.

Command "python setup.py egg_info" failed with error code 1 in /opt/stack/keystone/ You are using pip version 9.0.3, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. `

edit retag flag offensive close merge delete

Comments

Try formatting the output as code using the "101010" button, otherwise it's just a wall of unreadable text.

What is your local.conf? What command did you use to clone Devstack? Are you installing it on a freshly installed system? What distro do you use to run Devstack?

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-12 01:33:51 -0500 )edit

HI Bernd Bausch local.conf is [[local|localrc]] ADMIN_PASSWORD=Lidaf@123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD GIT_BASE=${GIT_BASE:-https://git.openstack.org} cloning devstack git clone https://git.openstack.org/openstack-dev/devstack

fadilmohd007@gmail.com gravatar imagefadilmohd007@gmail.com ( 2018-12-12 02:36:28 -0500 )edit

I have several thoughts. First, a glitch? You are installing from the master branch of devstack, and stack.sh copies the master branch from Keystone. Perhaps it's unstable at times. Have you considered using the stable/rocky branch of devstack? Add option -b stable/rocky to the clone command.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-12 07:56:07 -0500 )edit

Next, is there another error or warning message earlier in the log? Of course, given your local.conf, you have no log file. Add log file directives to local.conf and run stack.sh again. Look for other errors or warnings.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-12 07:57:13 -0500 )edit

Third, did you run stack.sh on a freshly installed system? If your system contains any Python libraries that are out of date or otherwise incompatible, anything can happen. Start from scratch: Reinstall the OS, clone the repo and run stack.sh.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-12 07:59:22 -0500 )edit