It appears that this "fix" might now be creating a new problem. While two days ago my devstack installation (script) worked fine, now it ends with this error:
+stack.sh:main:802 install_infra
+lib/infra:install_infra:31 local PIP_VIRTUAL_ENV=/opt/stack/requirements/.venv
+lib/infra:install_infra:32 '[' '!' -d /opt/stack/requirements/.venv ']'
+lib/infra:install_infra:32 virtualenv /opt/stack/requirements/.venv
New python executable in /opt/stack/requirements/.venv/bin/python
Complete output from command /opt/stack/requirements/.venv/bin/python -m pip config list:
ERROR: unknown command "config"
----------------------------------------
Traceback (most recent call last):
File "/bin/virtualenv", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 793, in main
symlink=options.symlink,
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 1087, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 935, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 964, in _install_wheel_with_search_dir
config = _pip_config(py_executable, python_path)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 1038, in _pip_config
remove_from_env=["PIP_VERBOSE", "PIP_QUIET"],
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 886, in call_subprocess
raise OSError("Command {} failed with error code {}".format(cmd_desc, proc.returncode))
OSError: Command /opt/stack/requirements/.venv/bin/python -m pip config list failed with error code 1
In the earlier logging you can see that pip is downgraded from version 19.0.1 to 9.0.3, the older version does not support the "config" command. So for some reason the "wrong" version ends up in the venv. If you remove the "fix", the old problem return, so that is not an option. As far as i can tell i did not change anything. What might be related is that on January 22nd pip version 19 was released. But stack.sh does too many things around pip to be certain what is going wrong. And it also uses "https://bootstrap.pypa.io/get-pip.py", to get a new pip version, so it is difficult to see which pip version is used when.
I run devstack on a centos-7 (virtual) machine. But i don't think the distro is relevant. Apart from the pip 19 release i don't see any obvious reasons why this suddenly stopped working
It appears that this "fix" might now be creating a new problem. While two days ago my devstack installation (script) worked fine, now it ends with this error:
+stack.sh:main:802 install_infra install_ infra:31 local PIP_VIRTUAL_ ENV=/opt/ stack/requireme nts/.venv install_ infra:32 '[' '!' -d /opt/stack/ requirements/ .venv ']' install_ infra:32 virtualenv /opt/stack/ requirements/ .venv requirements/ .venv/bin/ python requirements/ .venv/bin/ python -m pip config list: ------- ------- ------- ------- ----- exit(main( )) python2. 7/site- packages/ virtualenv. py", line 793, in main options. symlink, python2. 7/site- packages/ virtualenv. py", line 1087, in create_environment wheel(to_ install, py_executable, search_dirs, download=download) python2. 7/site- packages/ virtualenv. py", line 935, in install_wheel wheel_with_ search_ dir(download, project_names, py_executable, search_dirs) python2. 7/site- packages/ virtualenv. py", line 964, in _install_ wheel_with_ search_ dir py_executable, python_path) python2. 7/site- packages/ virtualenv. py", line 1038, in _pip_config from_env= ["PIP_VERBOSE" , "PIP_QUIET"], python2. 7/site- packages/ virtualenv. py", line 886, in call_subprocess cmd_desc, proc.returncode)) requirements/ .venv/bin/ python -m pip config list failed with error code 1
+lib/infra:
+lib/infra:
+lib/infra:
New python executable in /opt/stack/
Complete output from command /opt/stack/
ERROR: unknown command "config"
-------
Traceback (most recent call last):
File "/bin/virtualenv", line 11, in <module>
sys.
File "/usr/lib/
symlink=
File "/usr/lib/
install_
File "/usr/lib/
_install_
File "/usr/lib/
config = _pip_config(
File "/usr/lib/
remove_
File "/usr/lib/
raise OSError("Command {} failed with error code {}".format(
OSError: Command /opt/stack/
In the earlier logging you can see that pip is downgraded from version 19.0.1 to 9.0.3, the older version does not support the "config" command. So for some reason the "wrong" version ends up in the venv. If you remove the "fix", the old problem return, so that is not an option. As far as i can tell i did not change anything. What might be related is that on January 22nd pip version 19 was released. But stack.sh does too many things around pip to be certain what is going wrong. And it also uses "https:/ /bootstrap. pypa.io/ get-pip. py", to get a new pip version, so it is difficult to see which pip version is used when.
I run devstack on a centos-7 (virtual) machine. But i don't think the distro is relevant. Apart from the pip 19 release i don't see any obvious reasons why this suddenly stopped working