stack.sh output on Ubuntu 22.04.2 and 22.10:
++functions-common:apt_get:1228 result=0
++functions-common:apt_get:1231 time_stop apt-get
++functions-common:time_stop:2433 local name
++functions-common:time_stop:2434 local end_time
++functions-common:time_stop:2435 local elapsed_time
++functions-common:time_stop:2436 local total
++functions-common:time_stop:2437 local start_time
++functions-common:time_stop:2439 name=apt-get
++functions-common:time_stop:2440 start_time=1677877255889
++functions-common:time_stop:2442 [[ -z 1677877255889 ]]
+++functions-common:time_stop:2445 date +%s%3N
++functions-common:time_stop:2445 end_time=1677877258921
++functions-common:time_stop:2446 elapsed_time=3032
++functions-common:time_stop:2447 total=414
++functions-common:time_stop:2449 _TIME_START[$name]=
++functions-common:time_stop:2450 _TIME_TOTAL[$name]=3446
++functions-common:apt_get:1232 return 0
++tools/install_prereqs.sh:source:74 [[ -n False ]]
++tools/install_prereqs.sh:source:74 [[ False != \F\a\l\s\e ]]
++tools/install_prereqs.sh:source:88 date +%s
++tools/install_prereqs.sh:source:89 date
+./stack.sh:main:801 [[ False != \T\r\u\e ]]
+./stack.sh:main:802 PYPI_ALTERNATIVE_URL=
+./stack.sh:main:802 /opt/stack/devstack/tools/install_pip.sh
/opt/stack/devstack/.localrc.auto: line 2: 2a01:4f8:120:632c:4664::0/48: No such file or directory
++./stack.sh:main:802 err_trap
++./stack.sh:err_trap:802 local r=127
++./stack.sh:err_trap:802 set +o xtrace
stack.sh failed
Error on exit
/opt/stack/devstack/tools/worlddump.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils import spawn
World dumping... see /opt/stack/logs/worlddump-2023-03-03-210059.txt for details
-----------------------------------
Release: on 2022-08-05 14:18:13
SHA: 4801a257430cea6a8bb6e7c05af0a7e99aaee78e
Source: https://opendev.org/openstack-dev/devstack/src/doc/source/index.rst
URL: https://docs.openstack.org/devstack/latest/
I tried adding the "import setuptools" in the /opt/stack/ devstack/ tools/worlddump .py on line 22 and remove the distutils.
But now I get an error that "spawn" is not defined.