记一次成功部署kolla-ansible ocata版本过程

1、安装的docker版本

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

2、安装的ansible版本

[root@controller ~]# 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、内核版本

[root@controller ~]# 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版本

[root@controller ~]# pip --version
pip 18.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[root@controller ~]#

5、pip list清单

[root@controller ~]# 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
[root@controller ~]#

5、kolla-ansbile的配置修改

记一次成功部署kolla-ansible ocata版本过程_第1张图片

记一次成功部署kolla-ansible ocata版本过程_第2张图片

差异的内容比较

记一次成功部署kolla-ansible ocata版本过程_第3张图片

记一次成功部署kolla-ansible ocata版本过程_第4张图片

记一次成功部署kolla-ansible ocata版本过程_第5张图片

记一次成功部署kolla-ansible ocata版本过程_第6张图片

记一次成功部署kolla-ansible ocata版本过程_第7张图片

记一次成功部署kolla-ansible ocata版本过程_第8张图片

记一次成功部署kolla-ansible ocata版本过程_第9张图片

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源码,大不了重头开始部署

================

另一种成功版本

[root@controller chenwei]# pip list
Package                          Version    
-------------------------------- -----------
ansible                          2.6.3      
appdirs                          1.4.3      
asn1crypto                       0.24.0     
Babel                            2.6.0      
backports.ssl-match-hostname     3.5.0.1    
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      
cryptography                     2.3.1      
debtcollector                    1.20.0     
decorator                        4.3.0      
deprecation                      2.0.5      
docker-py                        1.10.6     
docker-pycreds                   0.3.0      
dogpile.cache                    0.6.7      
enum34                           1.1.6      
extras                           0.0.3      
fixtures                         3.0.0      
funcsigs                         1.0.2      
functools32                      3.2.3.post2
futures                          3.2.0      
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.22     
IPy                              0.75       
iso8601                          0.1.12     
Jinja2                           2.8.1      
jmespath                         0.9.3      
jsonpatch                        1.23       
jsonpointer                      2.0        
jsonschema                       2.6.0      
keystoneauth1                    3.10.0     
kitchen                          1.1.1      
kolla-ansible                    0.0.1.dev3 
langtable                        0.0.31     
linecache2                       1.0.0      
MarkupSafe                       0.23       
monotonic                        1.5        
msgpack                          0.5.6      
munch                            2.3.2      
netaddr                          0.7.19     
netifaces                        0.10.7     
openstacksdk                     0.17.2     
os-service-types                 1.3.0      
osc-lib                          1.11.1     
oslo.config                      6.4.0      
oslo.i18n                        3.21.0     
oslo.serialization               2.27.0     
oslo.utils                       3.36.4     
packaging                        17.1       
paramiko                         2.1.1      
pbr                              4.2.0      
perf                             0.1        
pip                              18.0       
ply                              3.4        
policycoreutils-default-encoding 0.1        
prettytable                      0.7.2      
pyasn1                           0.1.9      
pycparser                        2.18       
pycrypto                         2.6.1      
pycurl                           7.19.0     
pygobject                        3.14.0     
pygpgme                          0.3        
pyliblzma                        0.5.3      
pyOpenSSL                        18.0.0     
pyparsing                        2.2.0      
pyperclip                        1.6.4      
PySocks                          1.6.7      
python-augeas                    0.5.0      
python-cinderclient              4.0.1      
python-dmidecode                 3.10.13    
python-glanceclient              2.12.1     
python-keyczar                   0.71rc0    
python-keystoneclient            3.17.0     
python-mimeparse                 1.6.0      
python-novaclient                11.0.0     
python-openstackclient           3.16.0     
pytz                             2018.5     
pyudev                           0.15       
pyxattr                          0.5.1      
PyYAML                           3.13       
requests                         2.20.1     
requestsexceptions               1.4.0      
rfc3986                          1.1.0      
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.29.0     
subprocess32                     3.5.2      
testtools                        1.8.0      
traceback2                       1.4.0      
unicodecsv                       0.14.1     
unittest2                        1.1.0      
urlgrabber                       3.10       
urllib3                          1.21.1     
warlock                          1.3.0      
wcwidth                          0.1.7      
websocket-client                 0.51.0     
wrapt                            1.10.11    
yum-langpacks                    0.4.2      
yum-metadata-parser              1.1.4  

 在执行openstack命令的时候,有时会报缺少包,一种原因是包的版本低的缘故;可以把把拷贝到本地直接安装

pip install --ignore-installed simplejson-3.10.0.tar.gz
pip install --ignore-installed rfc3986-1.1.0-py2.py3-none-any.whl
pip install pyasn1-0.1.9-py2.7.egg

转载于:https://www.cnblogs.com/potato-chip/p/10037291.html

你可能感兴趣的:(记一次成功部署kolla-ansible ocata版本过程)