Kolla-ansible部署OpenStack錯誤集合

使用kolla-ansible安裝bootstrap-servers時的錯誤合集

錯誤1:

TASK [baremetal : Install python2 and python-simplejson] **************************************************************************************************************************
fatal: [tjs]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 127, "stderr": "Shared connection to tjs closed.\r\n", "stderr_lines": ["Shared connection to tjs closed."], "stdout": "Loaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirrors.aliyun.com\r\n * extras: mirrors.aliyun.com\r\n * updates: mirrors.aliyun.com\r\nSetting up Install Process\r\nPackage python-2.6.6-68.el6_10.x86_64 already installed and latest version\r\nPackage python-simplejson is obsoleted by python2-simplejson, trying to install python2-simplejson-3.10.0-2.el7.x86_64 instead\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package python2-simplejson.x86_64 0:3.10.0-2.el7 will be installed\r\n--> Processing Dependency: python(abi) = 2.7 for package: python2-simplejson-3.10.0-2.el7.x86_64\r\n--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python2-simplejson-3.10.0-2.el7.x86_64\r\n--> Finished Dependency Resolution\r\nError: Package: python2-simplejson-3.10.0-2.el7.x86_64 (epel)\r\n           Requires: libpython2.7.so.1.0()(64bit)\r\nError: Package: python2-simplejson-3.10.0-2.el7.x86_64 (epel)\r\n           Requires: python(abi) = 2.7\r\n           Installed: python-2.6.6-68.el6_10.x86_64 (@updates)\r\n               python(abi) = 2.6\r\n           Available: python-2.6.6-66.el6_8.x86_64 (base)\r\n               python(abi) = 2.6\r\n           Available: python34-3.4.10-2.el7.x86_64 (epel)\r\n               python(abi) = 3.4\r\n           Available: python36-3.6.8-1.el7.x86_64 (epel)\r\n               python(abi) = 3.6\r\n               python(abi) = 3.6\r\n You could try using --skip-broken to work around the problem\r\n You could try running: rpm -Va --nofiles --nodigest\r\n/bin/sh: apt-get: command not found\r\n", "stdout_lines": ["Loaded plugins: fastestmirror", "Loading mirror speeds from cached hostfile", " * base: mirrors.aliyun.com", " * extras: mirrors.aliyun.com", " * updates: mirrors.aliyun.com", "Setting up Install Process", "Package python-2.6.6-68.el6_10.x86_64 already installed and latest version", "Package python-simplejson is obsoleted by python2-simplejson, trying to install python2-simplejson-3.10.0-2.el7.x86_64 instead", "Resolving Dependencies", "--> Running transaction check", "---> Package python2-simplejson.x86_64 0:3.10.0-2.el7 will be installed", "--> Processing Dependency: python(abi) = 2.7 for package: python2-simplejson-3.10.0-2.el7.x86_64", "--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python2-simplejson-3.10.0-2.el7.x86_64", "--> Finished Dependency Resolution", "Error: Package: python2-simplejson-3.10.0-2.el7.x86_64 (epel)", "           Requires: libpython2.7.so.1.0()(64bit)", "Error: Package: python2-simplejson-3.10.0-2.el7.x86_64 (epel)", "           Requires: python(abi) = 2.7", "           Installed: python-2.6.6-68.el6_10.x86_64 (@updates)", "               python(abi) = 2.6", "           Available: python-2.6.6-66.el6_8.x86_64 (base)", "               python(abi) = 2.6", "           Available: python34-3.4.10-2.el7.x86_64 (epel)", "               python(abi) = 3.4", "           Available: python36-3.6.8-1.el7.x86_64 (epel)", "               python(abi) = 3.6", "               python(abi) = 3.6", " You could try using --skip-broken to work around the problem", " You could try running: rpm -Va --nofiles --nodigest", "/bin/sh: apt-get: command not found"]}

PLAY RECAP ************************************************************************************************************************************************************************
tjs                        : ok=4    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Command failed ansible-playbook -i /etc/kolla/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e kolla_action=bootstrap-servers /usr/local/share/kolla-ansible/ansible/kolla-host.yml 

解決方法:
原因:epel源與python版本衝突原因,從上圖可以看出,有些包是需要依賴python2.6的版本,此主機的python版本是2.7.5。
1、先卸載 epel-release源,

#yum remove epel-release -y

2、清理yum源緩存和新建緩存,

#yum clean all

#yum makecache

3、再次執行部署安裝

kolla-ansible -i /etc/kolla/all-in-one bootstrap-servers

錯誤2:

TASK [baremetal : Install deltarpm packages] **************************************************************************************************************************************
failed: [tjs] (item=deltarpm) => {"ansible_loop_var": "item", "changed": false, "item": "deltarpm", "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the `dnf` Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."}

PLAY RECAP ************************************************************************************************************************************************************************
tjs                        : ok=15   changed=6    unreachable=0    failed=1    skipped=10   rescued=0    ignored=0   

Command failed ansible-playbook -i /etc/kolla/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e kolla_action=bootstrap-servers /usr/local/share/kolla-ansible/ansible/kolla-host.yml 

解決方法:
暫未解決

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章