記一次成功部署kolla-ansible ocata版本過程

一、安裝的docker版本python

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

二、安裝的ansible版本web

[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)]docker

三、內核版本shell

[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/Linuxjson

四、pip版本bash

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

五、pip list清單app

[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 ~]# python2.7

五、kolla-ansbile的配置修改

差別的內容比較

六、部署中遇到的問題

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.gzpip install --ignore-installed rfc3986-1.1.0-py2.py3-none-any.whlpip install pyasn1-0.1.9-py2.7.egg

相關文章
相關標籤/搜索