[devstack] Not able to install devstack on ubuntu 20.04
Molka Gharbaoui
Molka.Gharbaoui at santannapisa.it
Wed Apr 13 16:41:29 UTC 2022
Hi all,
I am trying to install devstack by downloading the cose through the following link: git clone https://opendev.org/openstack/devstack and then executing ./stack command which I used to use several times without any error.
However, today I am getting the following error (I only changed the VM):
Obtaining file:///opt/stack/keystone
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Error parsing
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pbr/core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/usr/local/lib/python3.8/dist-packages/pbr/util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/__init__.py", line 25, in setup_hook
metadata_config.run()
File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/base.py", line 27, in run
self.hook()
File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/metadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "/usr/local/lib/python3.8/dist-packages/pbr/packaging.py", line 872, 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. 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.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+inc/python:pip_install:1 exit_trap
+./stack.sh:exit_trap:523 local r=1
++./stack.sh:exit_trap:524 jobs -p
+./stack.sh:exit_trap:524 jobs=
+./stack.sh:exit_trap:527 [[ -n '' ]]
+./stack.sh:exit_trap:533 '[' -f '' ']'
+./stack.sh:exit_trap:538 kill_spinner
+./stack.sh:kill_spinner:433 '[' '!' -z '' ']'
+./stack.sh:exit_trap:540 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:541 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:543 type -p generate-subunit
+./stack.sh:exit_trap:544 generate-subunit 1649867885 63 fail
+./stack.sh:exit_trap:546 [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:549 /usr/bin/python3.8 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2022-04-13-163909.txt for details
+./stack.sh:exit_trap:558 exit 1
Changing the owner of the directories using the following commands allows to go further in the installation process:
sudo chown -R root:root /opt/stack/horizon/
sudo chown -R root:root /opt/stack/nova/
sudo chown -R root:root /opt/stack/cinder/ etc.
However, then I am getting other errors related to permissions issues so I guess changing the directories ownership is not the solution.
Could you please help me in resolving this.
Thank you in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20220413/2e903cd0/attachment-0001.htm>
More information about the openstack-discuss
mailing list