stack.sh fails due to PyYAML- related problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Unassigned | ||
CentOS |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
New
|
Undecided
|
Unassigned |
Bug Description
When running stack.sh, the following failure occurs:
Installing collected packages: PyYAML, pyparsing, zipp, importlib-metadata, colorama, pyperclip, cmd2, stevedore, cliff, future, stestr, os-testr
Attempting uninstall: PyYAML
Found existing installation: PyYAML 5.3
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
+inc/python:
+./stack.
++./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
Error on exit
+./stack.
+./stack.
+./stack.
World dumping... see /opt/stack/
ebtables v1.8.4 (nf_tables): table `broute' is incompatible, use 'nft' tool.
+./stack.
Based on my research, I believe this problem relates to a bad installation using Python's pip command. Apparently the PyYAML is installed using distutils, then (for unknown reasons) an attempt is made to reinstall it. The reinstall detects PyYAML and attempts to uninstall it. The attempt, of course, fails.
It is unknown where these installs are taking place in the stack script(s). It is, however, clear that without a fix for this problem stack.sh is unusable. It is, under current circumstances, incapable of completing an installation of devstack.
Look like this condition should be updated for Ubuntu Focal as well: https:/ /github. com/openstack/ devstack/ blob/aa2821eb89 ab9c8048509d15f e41215c163d2f50 /tools/ fixup_stuff. sh#L66