Obtaining file:///opt/stack/keystone
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
¡Ñ python setup.py egg_info did not run successfully.
¢x exit code: 1
¢¢¢w> [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.
¢¢¢w> 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
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.