1)环境信息:

docker版本:17.09,当docker的版本是12.06时,也会报这个错误

[root@localhost ~]# docker --version
Docker version 17.09.1-ce, build 19e2cf6
[root@localhost ~]#

kolla版本:ocata版本

[root@localhost kolla]# git branch -a
* stable/ocata
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/stable/ocata
remotes/origin/stable/pike
remotes/origin/stable/queens
remotes/origin/stable/rocky
[root@localhost kolla]#

2)问题现象

在执行kolla-build -b centos keystone命令时,提示如下错误

[root@localhost kolla]# kolla-build -b centos keystone
INFO:kolla.image.build:Found the docker image folder at /usr/share/kolla/docker
INFO:kolla.image.build:Added image base to queue
INFO:kolla.image.build:Attempting to run task BuildTask(base) for the first time
INFO:kolla.image.build.base:Building
ERROR:kolla.image.build.base:Unknown docker error when building
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 416, in builder
for response in self.dc.build(path=image.path,
File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 132, in dc
self._dc = docker.Client(version='auto', **docker_kwargs)
File "/usr/lib/python2.7/site-packages/docker/client.py", line 99, in __init__
self._version = self._retrieve_server_version()
File "/usr/lib/python2.7/site-packages/docker/client.py", line 124, in _retrieve_server_version
'Error while fetching server API version: {0}'.format(e)
DockerException: Error while fetching server API version: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int, float or None.

3)原因分析

由于requests==2.18.0 bug的问题,导致执行命令的时候,一直报错,把requests升到2.18.1版本就好了

[root@localhost ~]# pip list |grep request
requests 2.18.0
requestsexceptions 1.4.0
[root@localhost ~]# pip install requests==2.18.1
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting requests==2.18.1
Downloading https://mirrors.aliyun.com/pypi/packages/5a/58/671011e3ff4a06e2969322267d78dcfda1bf4d1576551df1cce93cd7239d/requests-2.18.1-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 4.1MB/s
Requirement already satisfied: idna<2.6,>=2.5 in /usr/lib/python2.7/site-packages (from requests==2.18.1) (2.5)
Requirement already satisfied: urllib3<1.22,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests==2.18.1) (1.21.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests==2.18.1) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests==2.18.1) (2018.8.24)
Installing collected packages: requests
Found existing installation: requests 2.18.0
Uninstalling requests-2.18.0:
Successfully uninstalled requests-2.18.0
Successfully installed requests-2.18.1
[root@localhost ~]# pip list |grep request
requests 2.18.1
requestsexceptions 1.4.0

4)部署环境的pip列表清单

以后部署kolla ocata 版本的时候,遇到pip的版本问题,可以参考这个清单

[root@localhost kolla]# pip list
Package Version
-------------------------------- -----------
alabaster 0.7.12
ansible 2.6.3
appdirs 1.4.3
asn1crypto 0.24.0
Babel 2.6.0
backports.ssl-match-hostname 3.5.0.1
bandit 1.5.0
bashate 0.6.0
beautifulsoup4 4.6.3
certifi 2018.8.24
cffi 1.11.5
chardet 3.0.4
cliff 2.13.0
cmd2 0.8.9
configobj 4.7.2
contextlib2 0.5.5
coverage 4.5.1
cryptography 2.3.1
cssselect 1.0.3
ddt 1.2.0
debtcollector 1.20.0
decorator 4.3.0
deprecation 2.0.6
doc8 0.8.0
docker-py 1.10.6
docker-pycreds 0.3.0
docutils 0.14
dogpile.cache 0.6.7
dulwich 0.19.6
enum34 1.1.6
extras 1.0.0
fixtures 3.0.0
flake8 2.5.5
funcsigs 1.0.2
functools32 3.2.3.post2
future 0.16.0
futures 3.2.0
gitdb 0.6.4
gitdb2 2.0.4
GitPython 2.1.11
graphviz 0.9
hacking 1.0.0
httplib2 0.9.2
idna 2.5
iniparse 0.4
ipaddress 1.0.17
IPy 0.75
iso8601 0.1.12
Jinja2 2.10
jmespath 0.9.0
jsonpatch 1.23
jsonpointer 2.0
jsonschema 2.6.0
keystoneauth1 3.10.0
kolla 4.0.6.dev3
linecache2 1.0.0
lxml 4.2.5
MarkupSafe 1.0
mccabe 0.2.1
mock 2.0.0
monotonic 1.5
mox3 0.26.0
msgpack 0.5.6
munch 2.3.2
netaddr 0.7.19
netifaces 0.10.7
openstacksdk 0.17.2
os-client-config 1.31.2
os-service-types 1.3.0
osc-lib 1.11.1
oslo.config 6.4.0
oslo.context 2.21.0
oslo.i18n 3.21.0
oslo.log 3.39.0
oslo.serialization 2.27.0
oslo.utils 3.37.0
oslosphinx 4.18.0
oslotest 3.6.0
packaging 17.1
paramiko 2.1.1
pbr 4.2.0
pep8 1.5.7
perf 0.1
pip 18.1
pluggy 0.7.1
ply 3.4
policycoreutils-default-encoding 0.1
prettytable 0.7.2
py 1.6.0
pyasn1 0.1.9
pycparser 2.18
pycrypto 2.6.1
pycurl 7.19.0
pyflakes 0.8.1
Pygments 2.2.0
pygobject 3.14.0
pygpgme 0.3
pyinotify 0.9.6
pyliblzma 0.5.3
pyOpenSSL 18.0.0
pyparsing 2.2.0
pyperclip 1.6.4
python-barbicanclient 4.7.0
python-ceilometerclient 2.9.0
python-cinderclient 4.0.1
python-dateutil 2.7.3
python-glanceclient 2.12.1
python-heatclient 1.16.1
python-keyczar 0.71rc0
python-keystoneclient 3.17.0
python-mimeparse 1.6.0
python-neutronclient 6.9.0
python-novaclient 11.0.0
python-openstackclient 3.16.0
python-subunit 1.3.0
python-swiftclient 3.6.0
pytz 2018.5
pyudev 0.15
pyxattr 0.5.1
PyYAML 3.13
reno 2.9.2
requests 2.18.1
requestsexceptions 1.4.0
restructuredtext-lint 1.1.3
rfc3986 1.1.0
seobject 0.1
sepolicy 1.1
setuptools 40.2.0
simplejson 3.16.0
six 1.11.0
slip 0.4.0
slip.dbus 0.4.0
smmap 0.9.0
smmap2 2.0.4
snowballstemmer 1.2.1
Sphinx 1.3.6
sphinx-rtd-theme 0.4.2
stestr 2.1.1
stevedore 1.29.0
subprocess32 3.5.2
testrepository 0.0.20
testscenarios 0.5.0
testtools 2.3.0
tox 3.2.1
traceback2 1.4.0
unicodecsv 0.14.1
unittest2 1.1.0
urlgrabber 3.10
urllib3 1.21.1
virtualenv 16.0.0
voluptuous 0.11.5
warlock 1.3.0
wcwidth 0.1.7
websocket-client 0.51.0
wrapt 1.10.11
yum-metadata-parser 1.1.4
[root@localhost kolla]#

  

记一次安装kolla遇到DockerException: Error while fetching server API version: Timeout value connect was Timeout的问题的更多相关文章

  1. docker报Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

    docker version Client: Version: 17.05.0-ce API version: 1.24 (downgraded from 1.29) Go version: go1. ...

  2. Windows下Pycharm安装Tensorflow:ERROR: Could not find a version that satisfies the requirement tensorflow

    今天在Windows下通过Pycharm安装Tensorflow时遇到两个问题: 使用pip安装其实原理都相同,只不过Pycharm是图形化的过程! 1.由于使用国外源总是导致Timeout 解决方法 ...

  3. Windows安装mysql-python提示:error: Microsoft Visual C++ 9.0 is required

    Windows安装mysql-python提示:error: Microsoft Visual C++ 9.0 is required,Get it from http://aka.ms/vcpyth ...

  4. Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案

    Centos 7 安装mysql后出现 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib ...

  5. 安装owncloud出现:Error while trying to create admin user: An exception occurred while executing

    安装owncloud出现:Error while trying to create admin user: An exception occurred while executing 1.安装ownc ...

  6. abaqus2016安装过程中出现error:unable to add abaqus command directory to PATH variable

    请问abaqus2016安装过程中出现error:unable to add abaqus command directory to PATH variable是什么原因,怎么解决啊,总是安装失败 这 ...

  7. linux下安装svn出现configure: error: We require OpenSSL; try --with-openssl

    linux下安装svn出现configure: error: We require OpenSSL; try --with-openssl http://blog.csdn.net/woshixion ...

  8. pip安装模块时:error: command 'gcc' failed with exit status 1

    用安装python模块出现error: command 'gcc' failed with exit status 1 问题: gcc编译缺少模块 解决方法: yum install gcc libf ...

  9. 记一次安装多版本php的四个雷区,你踩着了吗

    记一次安装多版本php的四个雷区,你踩着了吗   技术小疯子关注3人评论740人阅读2018-06-29 15:00:30   记一次安装多版本的php的四个雷区,你踩着了吗 需求:公司需要在同一台服 ...

随机推荐

  1. 使用Json Template在Azure China创建ARM类型的虚拟机

    前面几篇文章介绍过Azure的两种VM的模式,包括ASM和ARM.并且介绍了如何用Azure CLI和PowerShell创建虚拟机.本文将介绍如何采用Json的Template来创建基于ARM的VM ...

  2. vijos1098:合唱队形

    描述 N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队形. 合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1,2…,K,他们的身高分别为T1,T2,…, ...

  3. (转)AppCan中调用系统浏览器打开网页

    <!DOCTYPE html> <html> <head> <style>body{ background:#fff; font-size:30px;} ...

  4. java代码。从键盘输入次数。可控制的

    总结:把一碗水端平,本来水就不多. package com.b; import java.util.Scanner; //想办法用数组.一次性,多个的输出分解质因数 public class fa4 ...

  5. Spark Streaming之一:整体介绍

    提到Spark Streaming,我们不得不说一下BDAS(Berkeley Data Analytics Stack),这个伯克利大学提出的关于数据分析的软件栈.从它的视角来看,目前的大数据处理可 ...

  6. __align(num) 分析

    这几天用2440读写SD卡(FAT32文件系统),定义了个文件信息的数据结构里边数据类型有unsigned char, unsigned int, unsigned long几种,在从SD卡上读取数据 ...

  7. PDM/CDM中进行搜索

    Option   Explicit ValidationMode   =   True InteractiveMode =   im_Batch Dim   mdl   '当前model '获取当前活 ...

  8. FFMPEG: avformat_find_stream_info()函数

    av_find_stream_info()中是要不断的读取数据包,解码获得相应的信息 其中: st->codec->codec_type:0:视频,1:音频,2:数据 st->cod ...

  9. HDLM工具介绍

    HDLM提供了以下一些工具,以方便HDLM多路径管理. 1. dlmgetras hdlm信息收集工具,用来收集hdlm相关的各种日志.trace.配置等文件,以方便进行hdlm故障分析. 命令格式 ...

  10. Datapump tips

    同时导出多个schema下的表 $ expdp system/manager dumpfile=test.dmp logfile=test.log directory=TESTDIR schemas= ...