<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi all,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am trying to install devstack by downloading the cose through the following link: git clone
<a href="https://opendev.org/openstack/devstack" id="LPNoLPOWALinkPreview">https://opendev.org/openstack/devstack</a> and then executing ./stack command which I used to use several times without any error.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, today I am getting the following error (I only changed the VM):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Obtaining file:///opt/stack/keystone
<div>  Preparing metadata (setup.py) ... error</div>
<div>  error: subprocess-exited-with-error</div>
<div><br>
</div>
<div>  ¡Ñ python setup.py egg_info did not run successfully.</div>
<div>  ¢x exit code: 1</div>
<div>  ¢¢¢w> [16 lines of output]</div>
<div>      Error parsing</div>
<div>      Traceback (most recent call last):</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/core.py", line 111, in pbr</div>
<div>          attrs = util.cfg_to_args(path, dist.script_args)</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/util.py", line 272, in cfg_to_args</div>
<div>          pbr.hooks.setup_hook(config)</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/__init__.py", line 25, in setup_hook</div>
<div>          metadata_config.run()</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/base.py", line 27, in run</div>
<div>          self.hook()</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/hooks/metadata.py", line 25, in hook</div>
<div>          self.config['version'] = packaging.get_version(</div>
<div>        File "/usr/local/lib/python3.8/dist-packages/pbr/packaging.py", line 872, in get_version</div>
<div>          raise Exception("Versioning for this project requires either an sdist"</div>
<div>      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.</div>
<div>      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.</div>
<div>      [end of output]</div>
<div><br>
</div>
<div>  note: This error originates from a subprocess, and is likely not a problem with pip.</div>
<div>error: metadata-generation-failed</div>
<div><br>
</div>
<div>¡Ñ Encountered error while generating package metadata.</div>
<div>¢¢¢w> See above for output.</div>
<div><br>
</div>
<div>note: This is an issue with the package mentioned above, not pip.</div>
<div>hint: See above for details.</div>
<div>+inc/python:pip_install:1                  exit_trap</div>
<div>+./stack.sh:exit_trap:523                  local r=1</div>
<div>++./stack.sh:exit_trap:524                  jobs -p</div>
<div>+./stack.sh:exit_trap:524                  jobs=</div>
<div>+./stack.sh:exit_trap:527                  [[ -n '' ]]</div>
<div>+./stack.sh:exit_trap:533                  '[' -f '' ']'</div>
<div>+./stack.sh:exit_trap:538                  kill_spinner</div>
<div>+./stack.sh:kill_spinner:433               '[' '!' -z '' ']'</div>
<div>+./stack.sh:exit_trap:540                  [[ 1 -ne 0 ]]</div>
<div>+./stack.sh:exit_trap:541                  echo 'Error on exit'</div>
<div>Error on exit</div>
<div>+./stack.sh:exit_trap:543                  type -p generate-subunit</div>
<div>+./stack.sh:exit_trap:544                  generate-subunit 1649867885 63 fail</div>
<div>+./stack.sh:exit_trap:546                  [[ -z /opt/stack/logs ]]</div>
<div>+./stack.sh:exit_trap:549                  /usr/bin/python3.8 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs</div>
<div>World dumping... see /opt/stack/logs/worlddump-2022-04-13-163909.txt for details</div>
<span>+./stack.sh:exit_trap:558                  exit 1</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
C<span style="background-color:rgb(255, 255, 255);display:inline !important">hanging the owner of the directories using the following commands</span> allows to go further in the installation process:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
sudo chown -R root:root /opt/stack/horizon/ </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">sudo chown -R root:root /opt/stack/nova/</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">sudo chown -R root:root /opt/stack/cinder/   etc.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, then I am getting other errors related to permissions issues so I guess changing the directories ownership is not the solution.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Could you please help me in resolving this.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you in advance!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
</body>
</html>