2019-11-29 05:45:19.090 | curl: (56) GnuTLS recv error (-54): Error in the pull function.
2019-11-29 05:45:19.093 | + tools/install_pip.sh:install_get_pip:89 : die 89 'Download of get-pip.py failed'
2019-11-29 05:45:19.094 | + functions-common:die:186 : local exitcode=56
2019-11-29 05:45:19.098 | [Call Trace]
2019-11-29 05:45:19.099 | /opt/stack/devstack/tools/install_pip.sh:140:install_get_pip
2019-11-29 05:45:19.099 | /opt/stack/devstack/tools/install_pip.sh:89:die
2019-11-29 05:45:19.102 | [ERROR] /opt/stack/devstack/tools/install_pip.sh:89 Download of get-pip.py failed
2019-11-29 05:45:20.176 | ++./stack.sh:main:753 err_trap
2019-11-29 05:45:20.185 | ++./stack.sh:err_trap:541 local r=56
2019-11-29 05:45:20.193 | stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2019-11-29-131545
2019-11-29 05:45:20.206 | Error on exit
2019-11-29 05:45:20.242 | ./stack.sh: line 525: generate-subunit: command not found
问题原因:
提示一些安装包无法找到,安装失败
这是由于yum源引起的问题,解决办法是使用如下命令:yum clean all 即可,命令完成后执行./unstack.sh ./stack.sh,此时又开始提示./stack.sh:line 501: generate-subunit: command not found,解决办法如下:
解决办法 :
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install -U os-testr
pip --version
还有一个方案是:
在stackrc中添加两段:
vi /opt/stack/devstack/stackrc
#add http proxy and https proxy haibo
export http_proxy=''
export https_proxy=''
还是报错
报错 :File “/opt/stack/devstack/files/get-pip.py”, line 11169
解决办法 :
- 下载 get-pip.py
https://bootstrap.pypa.io/get-pip.py
https://github.com/pypa/get-pip
chown -R stack devstack
chmod 770 devstack
cd devstack
./clean.sh
./stack.sh
pip --version
报错3、pip install xxxx报错(一大堆红色exception)【解决】
2019-11-29 07:49:31.210 | File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
2019-11-29 07:49:31.211 | status = self.run(options, args)
2019-11-29 07:49:31.211 | File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run
2019-11-29 07:49:31.211 | wb.build(autobuilding=True)
2019-11-29 07:49:31.211 | File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
2019-11-29 07:49:31.211 | self.requirement_set.prepare_files(self.finder)
2019-11-29 07:49:31.211 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
2019-11-29 07:49:31.212 | ignore_dependencies=self.ignore_dependencies))
2019-11-29 07:49:31.212 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
2019-11-29 07:49:31.212 | session=self.session, hashes=hashes)
2019-11-29 07:49:31.212 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url
2019-11-29 07:49:31.212 | hashes=hashes
2019-11-29 07:49:31.212 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url
2019-11-29 07:49:31.213 | hashes)
2019-11-29 07:49:31.213 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 882, in _download_http_url
2019-11-29 07:49:31.213 | _download_url(resp, link, content_file, hashes)
2019-11-29 07:49:31.213 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 603, in _download_url
2019-11-29 07:49:31.213 | hashes.check_against_chunks(downloaded_chunks)
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks
2019-11-29 07:49:31.217 | for chunk in chunks:
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 571, in written_chunks
2019-11-29 07:49:31.217 | for chunk in chunks:
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/utils/ui.py", line 139, in iter
2019-11-29 07:49:31.217 | for x in it:
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 560, in resp_read
2019-11-29 07:49:31.217 | decode_content=False):
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/response.py", line 436, in stream
2019-11-29 07:49:31.217 | data = self.read(amt=amt, decode_content=decode_content)
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/response.py", line 401, in read
2019-11-29 07:49:31.217 | raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
2019-11-29 07:49:31.217 | File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
2019-11-29 07:49:31.217 | self.gen.throw(type, value, traceback)
2019-11-29 07:49:31.217 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/response.py", line 316, in _error_catcher
2019-11-29 07:49:31.217 | raise ReadTimeoutError(self._pool, None, 'Read timed out.')
2019-11-29 07:49:31.217 | ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
2019-11-29 07:49:31.320 | You are using pip version 9.0.3, however version 19.3.1 is available.
2019-11-29 07:49:31.320 | You should consider upgrading via the 'pip install --upgrade pip' command.
解决办法 :
1、升级下pip
#easy_install pip
#pip install --upgrade pip
#pip install distribute
参考链接 :
https://www.bbsmax.com/A/E35p4Y9A5v/
安装devstack中遇到的一些问题整理 https://www.cnblogs.com/rhjeans/p/11328346.html
使用devstack安装openstack过程中遇到的一些错误及解决办法 :https://blog.csdn.net/xiongchun11/article/details/52679110
pip install xxxx报错(一大堆红色exception)【解决】 :https://www.cnblogs.com/4wheel/p/8193255.html