1、安装的docker版本
[[email protected] ~]# docker --version
Docker version 17.09.1-ce, build 19e2cf6
2、安装的ansible版本
[[email protected] ~]# ansible --version
ansible 2.6.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u‘/root/.ansible/plugins/modules‘, u‘/usr/share/ansible/plugins/modules‘]
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
3、内核版本
[[email protected] ~]# uname -a
Linux controller 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
4、pip版本
[[email protected] ~]# pip --version
pip 18.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[[email protected] ~]#
5、pip list清单
[[email protected] ~]# pip list
Package Version
-------------------------------- ----------
ansible 2.6.3
Babel 2.3.4
backports.ssl-match-hostname 3.5.0.1
certifi 2018.8.24
cffi 1.5.2
chardet 3.0.4
configobj 4.7.2
cryptography 1.7.2
debtcollector 1.11.0
decorator 3.4.0
docker-py 1.10.6
docker-pycreds 0.3.0
enum34 1.0.4
extras 0.0.3
fixtures 3.0.0
funcsigs 1.0.2
gitdb 0.6.4
gitdb2 2.0.4
GitPython 2.1.11
httplib2 0.9.2
idna 2.5
iniparse 0.4
ipaddress 1.0.16
IPy 0.75
iso8601 0.1.11
Jinja2 2.8.1
jmespath 0.9.0
kitchen 1.1.1
kolla-ansible 0.0.1.dev3
langtable 0.0.31
linecache2 1.0.0
MarkupSafe 0.23
monotonic 0.6
netaddr 0.7.18
netifaces 0.10.4
oslo.config 6.4.0
oslo.i18n 3.21.0
oslo.utils 3.22.1
paramiko 2.1.1
pbr 4.2.0
perf 0.1
pip 18.0
ply 3.4
policycoreutils-default-encoding 0.1
pyasn1 0.1.9
pycparser 2.14
pycrypto 2.6.1
pycurl 7.19.0
pygobject 3.14.0
pygpgme 0.3
pyliblzma 0.5.3
pyparsing 2.1.10
PySocks 1.6.7
python-augeas 0.5.0
python-dmidecode 3.10.13
python-keyczar 0.71rc0
python-mimeparse 1.6.0
pytz 2016.10
pyudev 0.15
pyxattr 0.5.1
PyYAML 3.13
requests 2.19.1
rfc3986 0.3.1
seobject 0.1
sepolicy 1.1
setuptools 40.2.0
simplejson 3.10.0
six 1.11.0
slip 0.4.0
slip.dbus 0.4.0
smmap 0.9.0
smmap2 2.0.4
stevedore 1.20.1
testtools 1.8.0
traceback2 1.4.0
unittest2 1.1.0
urlgrabber 3.10
urllib3 1.23
websocket-client 0.51.0
wrapt 1.10.8
yum-langpacks 0.4.2
yum-metadata-parser 1.1.4
[[email protected] ~]#
5、kolla-ansbile的配置修改
差异的内容比较
6、部署中遇到的问题
1)import docker ImportError: UnrewindableBodyError问题
解决方式:
更改下urllib3包即可
2)报如下waring
RUNNING HANDLER [horizon : Restart horizon container] *****************************************************************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|changed` use `result is changed`. This feature will be removed in version 2.9. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost]
解决方式:
修改/etc/ansible/ansible.cfg文件中deprecation_warnings 为 False,deprecation_warnings = False
3)报如下waring可以忽略,不影响deploy
[WARNING]: _execute_module no longer honors the tmp parameter. Action plugins should set self._connection._shell.tmpdir to share the tmpdir
大胆的修改kolla-ansible源码,大不了重头开始部署
原文地址:https://www.cnblogs.com/potato-chip/p/10037291.html