近期准备将OpenStack平台升级到Ussuri版本。考虑到现在在用的整个OpenStack环境并不复杂,仅有一个 AIO 的单节点,以往升级是在两台服务器间交替进行的,相当于重新部署OpenStack并迁移实例,相当耗时。这是因为OpenStack是无法实现产品级平滑升级的。现在服务器上还是以安装CentOS 7 为主,查看 Ussuri 的发行注记,得知 Ussuri 版本对OS环境要求有了变化,且只支持 Python 3 环境。根据以往的经验,知道 Python 3 和 Python 2 是可以共存并分别调用的,所以想尝试一下 能否在 CentOS 7 1804 上安装 Ussuri。
结论是:OpenStack Ussuri 版本不可以部署在 CentOS 7 1804 平台上,即便解决了 Python 的问题,也会因为 Python组件deltarpm无法被 Python 3 有效调用而导致安装失败。执行 kolla-ansible -i /etc/kolla/all-in-one prechecks 是会提示错误:
TASK [prechecks : Checking host OS release or version] **
fatal: [OpenStack]: FAILED! => {"changed": false, "msg": "CentOS release Core version 7.8 is not supported. Supported releases are: 8"}以下是踩坑过程:
[[email protected] Downloads]$ whoami
googlebigtable[[email protected] Downloads]$ pwd -P/home/googlebigtable/Downloads[[email protected] Downloads]$ echo $PATH/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/googlebigtable/.local/bin:/home/googlebigtable/bin[[email protected] Downloads]$ su rootPassword: [[email protected] Downloads]# whoamiroot[[email protected] Downloads]# pwd -P/home/googlebigtable/Downloads[[email protected] Downloads]# echo $PATH/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/googlebigtable/.local/bin:/home/googlebigtable/bin[[email protected] Downloads]# ls -FinitCentOS7aliYUM.sh VMwareTools-10.3.10-13959562.tar.gz vmware-tools-distrib/[[email protected] Downloads]# ./initCentOS7aliYUM.sh ..................................................................................................................................[[email protected] googlebigtable]# echo "192.168.207.173 OpenStack" >> /etc/hosts[[email protected] googlebigtable]# cat -n /etc/hosts1 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain42 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain63 192.168.207.173 OpenStack[[email protected] googlebigtable]# [[email protected] Downloads]# yum list installed | grep docker[[email protected] Downloads]# yum remove -y dockerLoaded plugins: fastestmirror, langpacksNo Match for argument: docker*No Packages marked for removal[[email protected] Downloads]# chkconfig --list | grep -i dockerNote: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by nativesystemd configuration. If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
[[email protected] Downloads]# yum -y update
Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile- base: mirrors.aliyun.com
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.comNo packages marked for update[[email protected] Downloads]# yum list installed | grep docker[[email protected] Downloads]# curl -fsSL https://get.docker.com/ | sh
Executing docker install script, commit: 26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c
- sh -c 'yum install -y -q yum-utils'Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
- sh -c 'yum-config-manager --add-repo https://download.docker.com/Linux/centos/docker-ce.repo'Loaded plugins: fastestmirror, langpacksadding repo from: https://download.docker.com/Linux/centos/docker-ce.repograbbing file https://download.docker.com/Linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.reporepo saved to /etc/yum.repos.d/docker-ce.repo
- '[' stable '!=' stable ']'
- sh -c 'yum makecache'Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile
- base: mirrors.aliyun.com
- extras: mirrors.aliyun.com
-
updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 google-chrome | 1.3 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/6): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:00 (2/6): docker-ce-stable/x86_64/primary_db | 45 kB 00:00:00 (3/6): google-chrome/other | 370 B 00:00:00 (4/6): google-chrome/filelists | 1.8 kB 00:00:00 (5/6): docker-ce-stable/x86_64/other_db | 114 kB 00:00:00 (6/6): docker-ce-stable/x86_64/filelists_db | 21 kB 00:00:01 google-chrome 3/3google-chrome 3/3Metadata Cache Created- '[' -n '' ']'
- sh -c 'yum install -y -q docker-ce'warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/containerd.io-1.2.13-3.2.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEYPublic key for containerd.io-1.2.13-3.2.el7.x86_64.rpm is not installedImporting GPG key 0x621E9F35:Userid : "Docker Release (CE rpm) <[email protected]>"Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35From : https://download.docker.com/Linux/centos/gpgsetsebool: SELinux is disabled.If you would like to use Docker as a non-root user, you should now consideradding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on thedocker host.Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surfacefor more information.[[email protected] Downloads]# docker versionClient: Docker Engine - CommunityVersion: 19.03.12API version: 1.40Go version: go1.13.10Git commit: 48a66213feBuilt: Mon Jun 22 15:46:54 2020OS/Arch: Linux/amd64Experimental: falseCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?[[email protected] Downloads]# systemctl start docker[[email protected] Downloads]# systemctl enable dockerCreated symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.[[email protected] Downloads]# [[email protected] Downloads]# yum -y install python-devel libffi-devel gcc openssl-devel git python-pipLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile....................................................................................................[[email protected] Downloads]# mkdir .pip[[email protected] Downloads]# tee .pip/pip.conf << EOF[global]
index-url=http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.comEOF[global]index-url=http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com[[email protected] Downloads]# pip install -U pipCollecting pip..........................................................................................................Successfully installed pip-20.2.1[[email protected] Downloads]# pip install ansibleDEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-supportCollecting ansibleDownloading ansible-2.9.11.tar.gz (14.2 MB)|▉ | 367 kB 35 kB/s eta 0:06:33ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.ansible from https://files.pythonhosted.org/packages/e8/b2/c10b82573bb494d9e0764b5c75eb7be1e649082435280f2220976d1a3b33/ansible-2.9.11.tar.gz#sha256=88f9d033ece7fd51eca3abb4f02e13b63c924b97f9705a997d5a711c0cf42ab1:Expected sha256 88f9d033ece7fd51eca3abb4f02e13b63c924b97f9705a997d5a711c0cf42ab1Got 26573cfab129b4139f2e630c2b1b3306c47d4d1ae5f62dd9d498e3faab0437a1
[[email protected] Downloads]# python -V
Python 2.7.5[[email protected] Downloads]# yum install -y gcc-c++ gcc make cmake zlib-devel bzip2-devel openssl-devel ncurse-devel libffi-develLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile...................................................................................................................[[email protected] Downloads]# wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz--2020-08-07 08:46:19-- https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xzResolving www.python.org (www.python.org)... 151.101.76.223, 2a04:4e42:12::223Connecting to www.python.org (www.python.org)|151.101.76.223|:443... connected.HTTP request sent, awaiting response... 200 OK........................................................................................................[[email protected] Downloads]# ls -Fepel-release-latest-7.noarch.rpm initCentOS7aliYUM.sh* VMwareTools-10.3.10-13959562.tar.gzgoogle-chrome-stable_current_x86_64.rpm Python-3.8.5.tar.xz vmware-tools-distrib/[[email protected] Downloads]#[[email protected] Downloads]# tar -xJvf Python-3.8.5.tar.xz Python-3.8.5/Python-3.8.5/CODE_OF_CONDUCT.md............................................................................................................[[email protected] Downloads]# ls -F
epel-release-latest-7.noarch.rpm initCentOS7aliYUM.sh Python-3.8.5.tar.xz vmware-tools-distrib/google-chrome-stable_current_x86_64.rpm Python-3.8.5/ VMwareTools-10.3.10-13959562.tar.gz[[email protected] Downloads]# cd Python-3.8.5/[[email protected] Python-3.8.5]# ls -Faclocal.m4 config.sub Doc/ install-sh m4/ Misc/ Parser/ Programs/ README.rstCODE_OF_CONDUCT.md configure Grammar/ Lib/ Mac/ Modules/ PC/ pyconfig.h.in setup.pyconfig.guess configure.ac Include/ LICENSE Makefile.pre.in Objects/ PCbuild/ Python/ Tools/[[email protected] Python-3.8.5]# mkdir -p /opt/python3[[email protected] Python-3.8.5]# ./configure --prefix=/opt/python3 --enable-optimizationschecking build system type... x86_64-pc-Linux-gnuchecking host system type... x86_64-pc-Linux-gnu..............................................................................................creating Modules/Setup.localcreating Makefile[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# make && make installRunning code to generate profile data (this can take a while):...................................................................................................................Installing collected packages: setuptools, pipWARNING: The script easy_install-3.8 is installed in '/opt/python3/bin' which is not on PATH.Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.WARNING: The scripts pip3 and pip3.8 are installed in '/opt/python3/bin' which is not on PATH.Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.Successfully installed pip-20.1.1 setuptools-47.1.0[[email protected] Python-3.8.5]# [[email protected] Python-3.8.5]# mv /usr/bin/python /usr/bin/python.original[[email protected] Python-3.8.5]# mv /usr/bin/pip /usr/bin/pip.original[[email protected] Python-3.8.5]# [[email protected] Python-3.8.5]# ls -F /usr/bin/ | grep piplesspipe.shpip2pip2.7pip.original[[email protected] Python-3.8.5]# ls -F /usr/bin/ | grep pythonabrt-action-analyze-python[email protected]br/>[email protected]
python2.7-config[email protected]
br/>[email protected]
br/>[email protected]
[[email protected] Python-3.8.5]# tree -L 3 /opt/python3/bin//opt/python3/bin/├── 2to3 -> 2to3-3.8├── 2to3-3.8├── easy_install-3.8├── idle3 -> idle3.8├── idle3.8├── pip3├── pip3.8├── pydoc3 -> pydoc3.8├── pydoc3.8├── python3 -> python3.8├── python3.8├── python3.8-config└── python3-config -> python3.8-config
0 directories, 13 files
[[email protected] Python-3.8.5]# ln -s /opt/python3/bin/python3.8 /usr/bin/python[[email protected] Python-3.8.5]# ln -s /opt/python3/bin/pip3 /usr/bin/pip[[email protected] Python-3.8.5]# ls -F /usr/bin/ | grep pythonabrt-action-analyze-python*[email protected]br/>abrt-action-analyze-python*[email protected]
python2.7-config*[email protected]
br/>python2.7*python2.7-config*[email protected]
br/>[email protected]
[email protected]
br/>lesspipe.sh*[email protected]
pip2.7pip.original*[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# python -VPython 3.8.5[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# file /usr/bin/yum[[email protected] Python-3.8.5]# cp /usr/bin/yum{,.original}[[email protected] Python-3.8.5]# gedit /usr/bin/yum[[email protected] Python-3.8.5]# cat -n /usr/bin/yum | grep "python"1 #!/usr/bin/python2.7[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# file /usr/libexec/urlgrabber-ext-down/usr/libexec/urlgrabber-ext-down: Python script, ASCII text executable[[email protected] Python-3.8.5]# cp /usr/libexec/urlgrabber-ext-down{,.original}[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# cat -n /usr/libexec/urlgrabber-ext-down | grep "python"1 #! /usr/bin/python2.7[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# file /usr/sbin/firewalld/usr/sbin/firewalld: Python script, ASCII text executable[[email protected] Python-3.8.5]# cp /usr/sbin/firewalld{,.original}[[email protected] Python-3.8.5]# gedit /usr/sbin/firewalld[[email protected] Python-3.8.5]# cat -n /usr/sbin/firewalld | grep "python"1 #!/usr/bin/python2.7 -Es21 # python fork magic derived from setroubleshoot[[email protected] Python-3.8.5]#[ro[email protected] Python-3.8.5]# file /usr/bin/firewall-cmd/usr/bin/firewall-cmd: Python script, ASCII text executable[[email protected] Python-3.8.5]# cp /usr/bin/firewall-cmd{,.original}[[email protected] Python-3.8.5]# gedit /usr/bin/firewall-cmd[[email protected] Python-3.8.5]# cat -n /usr/bin/firewall-cmd | grep "python"1 #!/usr/bin/python2.7 -Es[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# pip install -U pipCollecting pipUsing cached pip-20.2.1-py2.py3-none-any.whl (1.5 MB)Installing collected packages: pipAttempting uninstall: pipFound existing installation: pip 20.1.1Uninstalling pip-20.1.1:Successfully uninstalled pip-20.1.1Successfully installed pip-20.2.1[[email protected] Python-3.8.5]# pip install ansibleCollecting ansible.................................................................................................Installing collected packages: MarkupSafe, jinja2, PyYAML, pycparser, cffi, six, cryptography, ansibleRunning setup.py install for PyYAML ... doneRunning setup.py install for ansible ... doneSuccessfully installed MarkupSafe-1.1.1 PyYAML-5.3.1 ansible-2.9.11 cffi-1.14.1 cryptography-3.0 jinja2-2.11.2 pycparser-2.20 six-1.15.0[[email protected] Python-3.8.5]# [[email protected] Python-3.8.5]# pip install kolla-ansibleCollecting kolla-ansible......................................................................................................Installing collected packages: pbr, jmespath, oslo.i18n, netaddr, iso8601, netifaces, pytz, pyparsing, packaging, wrapt, debtcollector, oslo.utils, stevedore, idna, chardet, certifi, urllib3, requests, rfc3986, oslo.config, kolla-ansibleRunning setup.py install for netifaces ... doneRunning setup.py install for wrapt ... doneSuccessfully installed certifi-2020.6.20 chardet-3.0.4 debtcollector-2.2.0 idna-2.10 iso8601-0.1.12 jmespath-0.10.0 kolla-ansible-10.1.0 netaddr-0.8.0 netifaces-0.10.9 oslo.config-8.3.1 oslo.i18n-5.0.0 oslo.utils-4.4.0 packaging-20.4 pbr-5.4.5 pyparsing-2.4.7 pytz-2020.1 requests-2.24.0 rfc3986-1.4.0 stevedore-3.2.0 urllib3-1.25.10 wrapt-1.12.1[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# find / -name kolla-ansiblefind: ‘/run/user/1000/gvfs’: Permission denied/opt/python3/bin/kolla-ansible/opt/python3/share/kolla-ansible[[email protected] Python-3.8.5]# file /opt/python3/bin/kolla-ansible/opt/python3/bin/kolla-ansible: Bourne-Again shell script, ASCII text executable[[email protected] Python-3.8.5]# file /opt/python3/share/kolla-ansible/opt/python3/share/kolla-ansible: directory[[email protected] Python-3.8.5]# [[email protected] Python-3.8.5]# tree -L 2 /opt/python3/share/kolla-ansible//opt/python3/share/kolla-ansible/├── ansible│ ├── action_plugins│ ├── bifrost.yml│ ├── certificates.yml│ ├── destroy.yml│ ├── filter_plugins│ ├── gather-facts.yml│ ├── group_vars│ ├── inventory│ ├── kolla-host.yml│ ├── library│ ├── mariadb_backup.yml│ ├── mariadb_recovery.yml│ ├── nova.yml│ ├── post-deploy.yml│ ├── prune-images.yml│ ├── roles│ └── site.yml├── doc│ ├── requirements.txt│ └── source├── etc_examples│ └── kolla├── init-runonce├── init-***├── setup.cfg└── tools├── cleanup-containers├── cleanup-host├── cleanup-images├── ovs-dpdkctl.sh└── validate-docker-execute.sh
12 directories, 20 files
[[email protected] Python-3.8.5]#[[email protected] Python-3.8.5]# cp -r /opt/python3/share/kolla-ansible/etc_examples/kolla/ /etc/[[email protected] Python-3.8.5]# tree -L 2 /etc/kolla//etc/kolla/├── globals.yml└── passwords.yml0 directories, 2 files
[[email protected] Python-3.8.5]# cp /opt/python3/share/kolla-ansible/ansible/inventory/* /etc/kolla/[[email protected] Python-3.8.5]# tree -L 2 /etc/kolla//etc/kolla/├── all-in-one├── globals.yml├── multinode└── passwords.yml0 directories, 4 files
[[email protected] Python-3.8.5]#[[email protected] Downloads]# find / -name kolla-genpwdfind: ‘/run/user/1000/gvfs’: Permission denied/opt/python3/bin/kolla-genpwd[[email protected] Downloads]# tree -L 2 /opt/python3/bin//opt/python3/bin/├── 2to3 -> 2to3-3.8├── 2to3-3.8├── ansible├── ansible-config -> ansible├── ansible-connection├── ansible-console -> ansible├── ansible-doc -> ansible├── ansible-galaxy -> ansible├── ansible-inventory -> ansible├── ansible-playbook -> ansible├── ansible-pull -> ansible├── ansible-test├── ansible-vault -> ansible├── chardetect├── easy_install-3.8├── idle3 -> idle3.8├── idle3.8├── jp.py├── kolla-ansible├── kolla-genpwd├── kolla-mergepwd├── netaddr├── oslo-config-generator├── oslo-config-validator├── pbr├── pip├── pip3├── pip3.8├── pycache│ └── jp.cpython-38.pyc├── pydoc3 -> pydoc3.8├── pydoc3.8├── python3 -> python3.8├── python3.8├── python3.8-config└── python3-config -> python3.8-config1 directory, 35 files
[[email protected] Downloads]#[[email protected] Downloads]# cd ~[[email protected] googlebigtable]# kolla-genpwdbash: kolla-genpwd: command not found...[[email protected] googlebigtable]# /opt/python3/bin/kolla-genpwd [[email protected] googlebigtable]# file /etc/kolla/passwords.yml/etc/kolla/passwords.yml: ASCII text, with very long lines[[email protected] googlebigtable]# cp /etc/kolla/passwords.yml{,.original}[[email protected] googlebigtable]# gedit /etc/kolla/passwords.yml[[email protected] googlebigtable]# cat -n /etc/kolla/passwords.yml | grep "keystone_admin_password"161 keystone_admin_password: 123456[[email protected] googlebigtable]#[[email protected] googlebigtable]# file /etc/kolla/globals.yml/etc/kolla/globals.yml: ASCII text[[email protected] googlebigtable]# cp /etc/kolla/globals.yml{,.original}[[email protected] googlebigtable]# ifconfig | grep inetinet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255inet 192.168.207.173 netmask 255.255.255.0 broadcast 192.168.207.255inet6 fe80::cd7f:e05c:e677:a2c1 prefixlen 64 scopeid 0x20<link>inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10<host>inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255[[email protected] googlebigtable]# [[email protected] googlebigtable]# gedit /etc/kolla/globals.yml[[email protected] googlebigtable]# grep "^\s[^# \t].$" /etc/kolla/globals.yml | cat -n1 ---2 kolla_base_distro: "centos"3 kolla_install_type: "source"4 openstack_release: "ussuri"5 node_custom_config: "/etc/kolla/config"6 kolla_internal_vip_address: "192.168.207.173"7 network_interface: "ens33"8 neutron_external_interface: "ens33"9 enable_haproxy: "no"10 enable_cinder: "no"11 nova_compute_virt_type: "qemu"[[email protected] googlebigtable]#[[email protected] googlebigtable]# ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'.Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:SHA256:sH7bMlRjiqFPn3O78qojTDnEbIZqDx6WA+YfIP+cIxA [email protected]The key's randomart image is:+---[RSA 2048]----+ | |
---|---|
+ . | |
Eo. * .o + | |
=+o+ o.oS+ . | |
oO..=.o o | |
+.*=.=.o.. | |
..oB o.Bo. | |
. o.ooO=o |
+----[SHA256]-----+
[[email protected] googlebigtable]#[[email protected] googlebigtable]# ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"The authenticity of host '192.168.207.173 (192.168.207.173)' can't be established.ECDSA key fingerprint is SHA256:nDhBbaSgjZxTbER2Ng96ckDBjabt6WI1M5gA30Fnydw.ECDSA key fingerprint is MD5:d6:ca:1a:76:0c:e5:d7:a5:43:23:d1:48:26:ab:92:70.Are you sure you want to continue connecting (yes/no)? yes/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys[email protected]'s password:Number of key(s) added: 1
Now try logging into the machine, with: "ssh '[email protected]'"
and check to make sure that only the key(s) you wanted were added.[[email protected] googlebigtable]#
[[email protected] googlebigtable]# file /etc/kolla/all-in-one/etc/kolla/all-in-one: ASCII text[[email protected] googlebigtable]# cp /etc/kolla/all-in-one{,.original}[[email protected] googlebigtable]#[[email protected] googlebigtable]# sed -i 's|localhost ansible_connection=local|OpenStack|g' /etc/kolla/all-in-one[[email protected] googlebigtable]# grep "^\s[^# \t].$" /etc/kolla/all-in-one | cat -n1 [control]2 OpenStack3 [network]4 OpenStack5 [compute]6 OpenStack7 [storage]8 OpenStack9 [monitoring]10 OpenStack11 [deployment]12 OpenStack13 [chrony-server:children]14 haproxy15 [chrony:children]16 network17 compute18 storage19 monitoring20 [collectd:children]21 compute22 [baremetal:children]23 control24 [tls-backend:children]25 control26 [grafana:children]27 monitoring28 [etcd:children]29 control30 [kafka:children]31 control32 [karbor:children]33 control34 [kibana:children]35 control36 [telegraf:children]37 compute38 control39 monitoring40 network41 storage42 [elasticsearch:children]43 control44 [haproxy:children]45 network46 [hyperv]47 [hyperv:vars]48 [mariadb:children]49 control50 [rabbitmq:children]51 control52 [outward-rabbitmq:children]53 control54 [qdrouterd:children]55 control56 [monasca-agent:children]57 compute58 control59 monitoring60 network61 storage62 [monasca:children]63 monitoring64 [storm:children]65 monitoring66 [mongodb:children]67 control68 [keystone:children]69 control70 [glance:children]71 control72 [nova:children]73 control74 [neutron:children]75 network76 [openvswitch:children]77 network78 compute79 manila-share80 [cinder:children]81 control82 [cloudkitty:children]83 control84 [freezer:children]85 control86 [memcached:children]87 control88 [horizon:children]89 control90 [swift:children]91 control92 [barbican:children]93 control94 [heat:children]95 control96 [murano:children]97 control98 [ironic:children]99 control100 [influxdb:children]101 monitoring102 [prometheus:children]103 monitoring104 [magnum:children]105 control106 [qinling:children]107 control108 [sahara:children]109 control110 [solum:children]111 control112 [mistral:children]113 control114 [manila:children]115 control116 [panko:children]117 control118 [gnocchi:children]119 control120 [ceilometer:children]121 control122 [aodh:children]123 control124 [cyborg:children]125 control126 compute127 [congress:children]128 control129 [tacker:children]130 control131 [vitrage:children]132 control133 [tempest:children]134 control135 [senlin:children]136 control137 [vmtp:children]138 control139 [trove:children]140 control141 [watcher:children]142 control143 [rally:children]144 control145 [searchlight:children]146 control147 [octavia:children]148 control149 [designate:children]150 control151 [placement:children]152 control153 [bifrost:children]154 deployment155 [zookeeper:children]156 control157 [zun:children]158 control159 [skydive:children]160 monitoring161 [redis:children]162 control163 [blazar:children]164 control165 [elasticsearch-curator:children]166 elasticsearch167 [glance-api:children]168 glance169 [nova-api:children]170 nova171 [nova-conductor:children]172 nova173 [nova-super-conductor:children]174 nova175 [nova-novncproxy:children]176 nova177 [nova-scheduler:children]178 nova179 [nova-spicehtml5proxy:children]180 nova181 [nova-compute-ironic:children]182 nova183 [nova-serialproxy:children]184 nova185 [neutron-server:children]186 control187 [neutron-dhcp-agent:children]188 neutron189 [neutron-l3-agent:children]190 neutron191 [neutron-metadata-agent:children]192 neutron193 [neutron-ovn-metadata-agent:children]194 compute195 [neutron-bgp-dragent:children]196 neutron197 [neutron-infoblox-ipam-agent:children]198 neutron199 [neutron-metering-agent:children]200 neutron201 [ironic-neutron-agent:children]202 neutron203 [cinder-api:children]204 cinder205 [cinder-backup:children]206 storage207 [cinder-scheduler:children]208 cinder209 [cinder-volume:children]210 storage211 [cloudkitty-api:children]212 cloudkitty213 [cloudkitty-processor:children]214 cloudkitty215 [freezer-api:children]216 freezer217 [freezer-scheduler:children]218 freezer219 [iscsid:children]220 compute221 storage222 ironic223 [tgtd:children]224 storage225 [karbor-api:children]226 karbor227 [karbor-protection:children]228 karbor229 [karbor-operationengine:children]230 karbor231 [manila-api:children]232 manila233 [manila-scheduler:children]234 manila235 [manila-share:children]236 network237 [manila-data:children]238 manila239 [swift-proxy-server:children]240 swift241 [swift-account-server:children]242 storage243 [swift-container-server:children]244 storage245 [swift-object-server:children]246 storage247 [barbican-api:children]248 barbican249 [barbican-keystone-listener:children]250 barbican251 [barbican-worker:children]252 barbican253 [trove-api:children]254 [trove-conductor:children]255 [trove-taskmanager:children]256 [heat-api:children]257 heat258 [heat-api-cfn:children]259 heat260 [heat-engine:children]261 heat262 [murano-api:children]263 murano264 [murano-engine:children]265 murano266 [monasca-agent-collector:children]267 monasca-agent268 [monasca-agent-forwarder:children]269 monasca-agent270 [monasca-agent-statsd:children]271 monasca-agent272 [monasca-api:children]273 monasca274 [monasca-grafana:children]275 monasca276 [monasca-log-transformer:children]277 monasca278 [monasca-log-persister:children]279 monasca280 [monasca-log-metrics:children]281 monasca282 [monasca-thresh:children]283 monasca284 [monasca-notification:children]285 monasca286 [monasca-persister:children]287 monasca288 [storm-worker:children]289 storm290 [storm-nimbus:children]291 storm292 [ironic-api:children]293 ironic294 [ironic-conductor:children]295 ironic296 [ironic-inspector:children]297 ironic298 [ironic-pxe:children]299 ironic300 [ironic-ipxe:children]301 ironic302 [magnum-api:children]303 magnum304 [magnum-conductor:children]305 magnum306 [qinling-api:children]307 qinling308 [qinling-engine:children]309 qinling310 [solum-api:children]311 solum312 [solum-worker:children]313 solum314 [solum-deployer:children]315 solum316 [solum-conductor:children]317 solum318 [solum-application-deployment:children]319 solum320 [solum-image-builder:children]321 solum322 [mistral-api:children]323 mistral324 [mistral-executor:children]325 mistral326 [mistral-engine:children]327 mistral328 [mistral-event-engine:children]329 mistral330 [aodh-api:children]331 aodh332 [aodh-evaluator:children]333 aodh334 [aodh-listener:children]335 aodh336 [aodh-notifier:children]337 aodh338 [cyborg-api:children]339 cyborg340 [cyborg-agent:children]341 compute342 [cyborg-conductor:children]343 cyborg344 [panko-api:children]345 panko346 [gnocchi-api:children]347 gnocchi348 [gnocchi-statsd:children]349 gnocchi350 [gnocchi-metricd:children]351 gnocchi352 [sahara-api:children]353 sahara354 [sahara-engine:children]355 sahara356 [ceilometer-central:children]357 ceilometer358 [ceilometer-notification:children]359 ceilometer360 [ceilometer-compute:children]361 compute362 [ceilometer-ipmi:children]363 compute364 [congress-api:children]365 congress366 [congress-datasource:children]367 congress368 [congress-policy-engine:children]369 congress370 [multipathd:children]371 compute372 storage373 [watcher-api:children]374 watcher375 [watcher-engine:children]376 watcher377 [watcher-applier:children]378 watcher379 [senlin-api:children]380 senlin381 [senlin-conductor:children]382 senlin383 [senlin-engine:children]384 senlin385 [senlin-health-manager:children]386 senlin387 [searchlight-api:children]388 searchlight389 [searchlight-listener:children]390 searchlight391 [octavia-api:children]392 octavia393 [octavia-health-manager:children]394 octavia395 [octavia-housekeeping:children]396 octavia397 [octavia-worker:children]398 octavia399 [designate-api:children]400 designate401 [designate-central:children]402 designate403 [designate-producer:children]404 designate405 [designate-mdns:children]406 network407 [designate-worker:children]408 designate409 [designate-sink:children]410 designate411 [designate-backend-bind9:children]412 designate413 [placement-api:children]414 placement415 [zun-api:children]416 zun417 [zun-wsproxy:children]418 zun419 [zun-compute:children]420 compute421 [zun-cni-daemon:children]422 compute423 [skydive-analyzer:children]424 skydive425 [skydive-agent:children]426 compute427 network428 [tacker-server:children]429 [tacker-conductor:children]430 [vitrage-api:children]431 vitrage432 [vitrage-notifier:children]433 vitrage434 [vitrage-graph:children]435 vitrage436 [vitrage-ml:children]437 vitrage438 [vitrage-persistor:children]439 vitrage440 [blazar-api:children]441 blazar442 [blazar-manager:children]443 blazar444 [prometheus-node-exporter:children]445 monitoring446 control447 compute448 network449 storage450 [prometheus-mysqld-exporter:children]451 mariadb452 [prometheus-haproxy-exporter:children]453 haproxy454 [prometheus-memcached-exporter:children]455 memcached456 [prometheus-cadvisor:children]457 monitoring458 control459 compute460 network461 storage462 [prometheus-alertmanager:children]463 monitoring464 [prometheus-openstack-exporter:children]465 monitoring466 [prometheus-elasticsearch-exporter:children]467 elasticsearch468 [prometheus-blackbox-exporter:children]469 monitoring470 [masakari-api:children]471 control472 [masakari-engine:children]473 control474 [masakari-monitors:children]475 compute476 [ovn-controller:children]477 ovn-controller-compute478 ovn-controller-network479 [ovn-controller-compute:children]480 compute481 [ovn-controller-network:children]482 network483 [ovn-database:children]484 control485 [ovn-northd:children]486 ovn-database487 [ovn-nb-db:children]488 ovn-database489 [ovn-sb-db:children]490 ovn-database[[email protected] googlebigtable]#[[email protected] googlebigtable]# ls -F /opt/python3/bin/[email protected] [email protected] [email protected] [email protected] kolla-mergepwd pip pydoc3.82to3-3.8 [email protected] ansible-test idle3.8 netaddr pip3 [email protected]ansible [email protected] [email protected] jp.py oslo-config-generator pip3.8 python3.8[email protected] [email protected] chardetect kolla-ansible oslo-config-validator pycache/ python3.8-configansible-connection [email protected] easy_install-3.8 kolla-genpwd pbr* [email protected] [email protected][[email protected] googlebigtable]# /opt/python3/bin/kolla-ansible -i /etc/kolla/all-in-one bootstrap-serverswhich: no ansible in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/googlebigtable/.local/bin:/home/googlebigtable/bin)ERROR: Ansible is not installed in the current (Virtual) environment.[[email protected] googlebigtable]# [[email protected] googlebigtable]# /opt/python3/bin/ansible --versionansible 2.9.11config file = Noneconfigured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']ansible python module location = /opt/python3/lib/python3.8/site-packages/ansibleexecutable location = /opt/python3/bin/ansiblepython version = 3.8.5 (default, Aug 7 2020, 08:59:37) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)][[email protected] googlebigtable]# [[email protected] googlebigtable]# pip install ansibleRequirement already satisfied: ansible in /opt/python3/lib/python3.8/site-packages (2.9.11)Requirement already satisfied: jinja2 in /opt/python3/lib/python3.8/site-packages (from ansible) (2.11.2)Requirement already satisfied: PyYAML in /opt/python3/lib/python3.8/site-packages (from ansible) (5.3.1)Requirement already satisfied: cryptography in /opt/python3/lib/python3.8/site-packages (from ansible) (3.0)Requirement already satisfied: MarkupSafe>=0.23 in /opt/python3/lib/python3.8/site-packages (from jinja2->ansible) (1.1.1)Requirement already satisfied: six>=1.4.1 in /opt/python3/lib/python3.8/site-packages (from cryptography->ansible) (1.15.0)Requirement already satisfied: cffi!=1.11.3,>=1.8 in /opt/python3/lib/python3.8/site-packages (from cryptography->ansible) (1.14.1)Requirement already satisfied: pycparser in /opt/python3/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography->ansible) (2.20)[[email protected] googlebigtable]# [[email protected] googlebigtable]# PATH=$PATH:/opt/python3/bin/[[email protected] googlebigtable]# echo $PATH/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/googlebigtable/.local/bin:/home/googlebigtable/bin:/opt/python3/bin/[[email protected] googlebigtable]# [[email protected] googlebigtable]# kolla-ansible -i /etc/kolla/all-in-one bootstrap-serversBootstrapping servers : 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 /opt/python3/ansible/kolla-host.yml ERROR! the playbook: /opt/python3/ansible/kolla-host.yml could not be foundCommand 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 /opt/python3/ansible/kolla-host.yml [[email protected] googlebigtable]#[[email protected] googlebigtable]# find / -name kolla-host.ymlfind: ‘/run/user/1000/gvfs’: Permission denied/opt/python3/share/kolla-ansible/ansible/kolla-host.yml[[email protected] googlebigtable]# cat -n /opt/python3/share/kolla-ansible/ansible/kolla-host.yml1 ---2 - import_playbook: gather-facts.yml3 4 - name: Apply role baremetal5 hosts: baremetal6 serial: '{{ kolla_serial|default("0") }}'7 gather_facts: false8 roles:9 - { role: baremetal,10 tags: baremetal }[[email protected] googlebigtable]#[[email protected] googlebigtable]# mkdir -p /opt/python3/ansible[[email protected] googlebigtable]# cp /opt/python3/share/kolla-ansible/ansible/kolla-host.yml /opt/python3/ansible/[[email protected] googlebigtable]# ls -F /opt/python3/ansible/kolla-host.yml[[email protected] googlebigtable]#[[email protected] googlebigtable]# rm -rf /opt/python3/ansible/[[email protected] googlebigtable]# ls -F /opt/python3/ | grep ansible[[email protected] googlebigtable]# cp -r /opt/python3/share/kolla-ansible/ansible/ /opt/python3/[[email protected] googlebigtable]# ls -F /opt/python3/ansible/action_plugins/ certificates.yml filter_plugins/ group_vars/ kolla-host.yml mariadb_backup.yml nova.yml prune-images.yml site.ymlbifrost.yml destroy.yml gather-facts.yml inventory/ library/ mariadb_recovery.yml post-deploy.yml roles/[[email protected] googlebigtable]#[[email protected] googlebigtable]# kolla-ansible -i /etc/kolla/all-in-one bootstrap-serversBootstrapping servers : 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 /opt/python3/ansible/kolla-host.yml [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see detailsPLAY [Gather facts for all hosts] ***
TASK [Gathering Facts] **
The authenticity of host 'openstack (192.168.207.173)' can't be established.ECDSA key fingerprint is SHA256:nDhBbaSgjZxTbER2Ng96ckDBjabt6WI1M5gA30Fnydw.ECDSA key fingerprint is MD5:d6:ca:1a:76:0c:e5:d7:a5:43:23:d1:48:26:ab:92:70.Are you sure you want to continue connecting (yes/no)? yesok: [OpenStack]TASK [Group hosts to determine when using --limit] **
changed: [OpenStack][WARNING]: Could not match supplied host pattern, ignoring: all_using_limit_TruePLAY [Gather facts for all hosts (if using --limit)] ****
skipping: no hosts matchedPLAY [Apply role baremetal] *****
TASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/bootstrap-servers.yml for OpenStackTASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/pre-install.yml for OpenStackTASK [baremetal : Ensure localhost in /etc/hosts] ***
changed: [OpenStack]TASK [baremetal : Ensure hostname does not point to 127.0.1.1 in /etc/hosts] ****
ok: [OpenStack]TASK [baremetal : Generate /etc/hosts for all of the nodes] *****
changed: [OpenStack]TASK [baremetal : Ensure /etc/cloud/cloud.cfg exists] ***
ok: [OpenStack]TASK [baremetal : Disable cloud-init manage_etc_hosts] **
skipping: [OpenStack]TASK [baremetal : Ensure sudo group is present] *****
changed: [OpenStack]TASK [baremetal : Ensure kolla group is present] ****
changed: [OpenStack]TASK [baremetal : Install apt packages] *****
skipping: [OpenStack]TASK [baremetal : Install ca certs] *****
skipping: [OpenStack] => (item=ca-certificates) skipping: [OpenStack] => (item=apt-transport-https)TASK [baremetal : Ensure apt sources list directory exists] *****
skipping: [OpenStack]TASK [baremetal : Install docker apt gpg key] ***
skipping: [OpenStack]TASK [baremetal : Enable docker apt repository] *****
skipping: [OpenStack]TASK [baremetal : Ensure yum repos directory exists] ****
ok: [OpenStack]TASK [baremetal : Enable docker yum repository] *****
changed: [OpenStack]TASK [baremetal : Ensure module_hotfixes enabled for docker] ****
changed: [OpenStack]TASK [baremetal : Install docker rpm gpg key] ***
ok: [OpenStack]TASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/install.yml for OpenStackTASK [baremetal : Update apt cache] *****
skipping: [OpenStack]TASK [baremetal : Set firewall default policy] **
skipping: [OpenStack]TASK [baremetal : Check if firewalld is installed] **
ok: [OpenStack]TASK [baremetal : Disable firewalld] ****
ok: [OpenStack] => (item=firewalld)TASK [baremetal : Check which containers are running] ***
ok: [OpenStack]TASK [baremetal : Install apt packages] *****
skipping: [OpenStack]TASK [baremetal : Install deltarpm packages] ****
fatal: [OpenStack]: FAILED! => {"changed": false, "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use thednf
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 **
OpenStack : ok=18 changed=7 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0Command 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 /opt/python3/ansible/kolla-host.yml
[[email protected] googlebigtable]#[[email protected] googlebigtable]# yum install -y python-deltarpm.x86_64Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile- base: mirrors.aliyun.com
- extras: mirrors.aliyun.com
-
updates: mirrors.aliyun.com
docker | 3.5 kB 00:00:00 Package python-deltarpm-3.6-3.el7.x86_64 already installed and latest versionNothing to do[[email protected] googlebigtable]#[[email protected] googlebigtable]# yum install -y dnf[[email protected] googlebigtable]# dnf --version4.0.9Installed: dnf-0:4.0.9.2-1.el7_6.noarch at Fri 07 Aug 2020 03:36:29 AM CSTBuilt : CentOS BuildSystem <http://bugs.centos.org> at Wed 13 Feb 2019 08:19:33 PM CSTInstalled: rpm-0:4.11.3-43.el7.x86_64 at Thu 06 Aug 2020 04:31:21 PM CST
Built : CentOS BuildSystem <http://bugs.centos.org> at Wed 01 Apr 2020 04:21:52 AM CST[[email protected] googlebigtable]#[[email protected] googlebigtable]# dnf install -y python-deltarpm.x86_64Extra Packages for Enterprise Linux 7 - x86_64 5.8 MB/s | 16 MB 00:02 google-chrome 20 kB/s | 3.6 kB 00:00 Docker CE Stable - x86_64 5.4 kB/s | 25 kB 00:04 CentOS-7 - Base - mirrors.aliyun.com 5.3 MB/s | 10 MB 00:01 CentOS-7 - Updates - mirrors.aliyun.com 4.9 MB/s | 4.0 MB 00:00 Docker main Repository 5.3 kB/s | 25 kB 00:04 CentOS-7 - Extras - mirrors.aliyun.com 1.8 MB/s | 275 kB 00:00 Package python-deltarpm-3.6-3.el7.x86_64 is already installed.Dependencies resolved.Nothing to do.Complete![[email protected] googlebigtable]#[[email protected] googlebigtable]# kolla-ansible -i /etc/kolla/all-in-one bootstrap-serversBootstrapping servers : 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 /opt/python3/ansible/kolla-host.yml [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Gather facts for all hosts] ***
TASK [Gathering Facts] **
ok: [OpenStack]TASK [Group hosts to determine when using --limit] **
changed: [OpenStack][WARNING]: Could not match supplied host pattern, ignoring: all_using_limit_TruePLAY [Gather facts for all hosts (if using --limit)] ****
skipping: no hosts matchedPLAY [Apply role baremetal] *****
TASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/bootstrap-servers.yml for OpenStackTASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/pre-install.yml for OpenStackTASK [baremetal : Ensure localhost in /etc/hosts] ***
ok: [OpenStack]TASK [baremetal : Ensure hostname does not point to 127.0.1.1 in /etc/hosts] ****
ok: [OpenStack]TASK [baremetal : Generate /etc/hosts for all of the nodes] *****
ok: [OpenStack]TASK [baremetal : Ensure /etc/cloud/cloud.cfg exists] ***
ok: [OpenStack]TASK [baremetal : Disable cloud-init manage_etc_hosts] **
skipping: [OpenStack]TASK [baremetal : Ensure sudo group is present] *****
ok: [OpenStack]TASK [baremetal : Ensure kolla group is present] ****
ok: [OpenStack]TASK [baremetal : Install apt packages] *****
skipping: [OpenStack]TASK [baremetal : Install ca certs] *****
skipping: [OpenStack] => (item=ca-certificates) skipping: [OpenStack] => (item=apt-transport-https)TASK [baremetal : Ensure apt sources list directory exists] *****
skipping: [OpenStack]TASK [baremetal : Install docker apt gpg key] ***
skipping: [OpenStack]TASK [baremetal : Enable docker apt repository] *****
skipping: [OpenStack]TASK [baremetal : Ensure yum repos directory exists] ****
ok: [OpenStack]TASK [baremetal : Enable docker yum repository] *****
changed: [OpenStack]TASK [baremetal : Ensure module_hotfixes enabled for docker] ****
changed: [OpenStack]TASK [baremetal : Install docker rpm gpg key] ***
ok: [OpenStack]TASK [baremetal : include_tasks] ****
included: /opt/python3/ansible/roles/baremetal/tasks/install.yml for OpenStackTASK [baremetal : Update apt cache] *****
skipping: [OpenStack]TASK [baremetal : Set firewall default policy] **
skipping: [OpenStack]TASK [baremetal : Check if firewalld is installed] **
ok: [OpenStack]TASK [baremetal : Disable firewalld] ****
ok: [OpenStack] => (item=firewalld)TASK [baremetal : Check which containers are running] ***
ok: [OpenStack]TASK [baremetal : Install apt packages] *****
skipping: [OpenStack]TASK [baremetal : Install deltarpm packages] ****
fatal: [OpenStack]: FAILED! => {"changed": false, "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use thednf
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 **
OpenStack : ok=18 changed=3 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0Command 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 /opt/python3/ansible/kolla-host.yml
[[email protected] googlebigtable]# kolla-ansible -i /etc/kolla/all-in-one prechecksPre-deployment checking : 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=precheck /opt/python3/ansible/site.yml [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details[WARNING]: Could not match supplied host pattern, ignoring: enable_nova_TruePLAY [Gather facts for all hosts] ***
TASK [Gathering Facts] **
ok: [OpenStack]TASK [Group hosts to determine when using --limit] **
changed: [OpenStack][WARNING]: Could not match supplied host pattern, ignoring: all_using_limit_TruePLAY [Gather facts for all hosts (if using --limit)] ****
skipping: no hosts matchedPLAY [Group hosts based on configuration] ***
TASK [Group hosts based on Kolla action] ****
changed: [OpenStack]TASK [Group hosts based on enabled services] ****
ok: [OpenStack] => (item=enable_aodh_False)ok: [OpenStack] => (item=enable_barbican_False)ok: [OpenStack] => (item=enable_blazar_False)ok: [OpenStack] => (item=enable_ceilometer_False)ok: [OpenStack] => (item=enable_chrony_True)ok: [OpenStack] => (item=enable_cinder_False)ok: [OpenStack] => (item=enable_cloudkitty_False)ok: [OpenStack] => (item=enable_collectd_False)ok: [OpenStack] => (item=enable_congress_False)ok: [OpenStack] => (item=enable_cyborg_False)ok: [OpenStack] => (item=enable_designate_False)ok: [OpenStack] => (item=enable_elasticsearch_False)ok: [OpenStack] => (item=enable_etcd_False)ok: [OpenStack] => (item=enable_freezer_False)ok: [OpenStack] => (item=enable_glance_True)ok: [OpenStack] => (item=enable_gnocchi_False)ok: [OpenStack] => (item=enable_grafana_False)ok: [OpenStack] => (item=enable_haproxy_False)ok: [OpenStack] => (item=enable_heat_True)ok: [OpenStack] => (item=enable_horizon_True)ok: [OpenStack] => (item=enable_hyperv_False)ok: [OpenStack] => (item=enable_influxdb_False)ok: [OpenStack] => (item=enable_ironic_False)ok: [OpenStack] => (item=enable_iscsid_False)ok: [OpenStack] => (item=enable_kafka_False)ok: [OpenStack] => (item=enable_karbor_False)ok: [OpenStack] => (item=enable_keystone_True)ok: [OpenStack] => (item=enable_kibana_False)ok: [OpenStack] => (item=enable_kuryr_False)ok: [OpenStack] => (item=enable_magnum_False)ok: [OpenStack] => (item=enable_manila_False)ok: [OpenStack] => (item=enable_mariadb_True)ok: [OpenStack] => (item=enable_masakari_False)ok: [OpenStack] => (item=enable_memcached_True)ok: [OpenStack] => (item=enable_mistral_False)ok: [OpenStack] => (item=enable_monasca_False)ok: [OpenStack] => (item=enable_mongodb_False)ok: [OpenStack] => (item=enable_multipathd_False)ok: [OpenStack] => (item=enable_murano_False)ok: [OpenStack] => (item=enable_neutron_True)ok: [OpenStack] => (item=enable_nova_True)ok: [OpenStack] => (item=enable_octavia_False)ok: [OpenStack] => (item=enable_openvswitch_True_enable_ovs_dpdk_False)ok: [OpenStack] => (item=enable_outward_rabbitmq_False)ok: [OpenStack] => (item=enable_ovn_False)ok: [OpenStack] => (item=enable_panko_False)ok: [OpenStack] => (item=enable_placement_True)ok: [OpenStack] => (item=enable_prometheus_False)ok: [OpenStack] => (item=enable_qdrouterd_False)ok: [OpenStack] => (item=enable_qinling_False)ok: [OpenStack] => (item=enable_rabbitmq_True)ok: [OpenStack] => (item=enable_rally_False)ok: [OpenStack] => (item=enable_redis_False)ok: [OpenStack] => (item=enable_sahara_False)ok: [OpenStack] => (item=enable_searchlight_False)ok: [OpenStack] => (item=enable_senlin_False)ok: [OpenStack] => (item=enable_skydive_False)ok: [OpenStack] => (item=enable_solum_False)ok: [OpenStack] => (item=enable_storm_False)ok: [OpenStack] => (item=enable_swift_False)ok: [OpenStack] => (item=enable_tacker_False)ok: [OpenStack] => (item=enable_telegraf_False)ok: [OpenStack] => (item=enable_tempest_False)ok: [OpenStack] => (item=enable_trove_False)ok: [OpenStack] => (item=enable_vitrage_False)ok: [OpenStack] => (item=enable_vmtp_False)ok: [OpenStack] => (item=enable_watcher_False)ok: [OpenStack] => (item=enable_zookeeper_False)ok: [OpenStack] => (item=enable_zun_False)PLAY [Apply role prechecks] *****
TASK [prechecks : include_tasks] ****
included: /opt/python3/ansible/roles/prechecks/tasks/host_os_checks.yml for OpenStackTASK [prechecks : Checking host OS distribution] ****
skipping: [OpenStack]TASK [prechecks : Checking host OS release or version] **
fatal: [OpenStack]: FAILED! => {"changed": false, "msg": "CentOS release Core version 7.8 is not supported. Supported releases are: 8"}PLAY RECAP **
OpenStack : ok=5 changed=2 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0Command 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=precheck /opt/python3/ansible/site.yml
[[email protected] googlebigtable]#
精彩评论