Я использую kolla- ansible для установки версии Openstack для пятен или поездов. Возникли следующие проблемы, и я хотел бы получить запрос.
Проблема
(virtualenv) $ kolla-ansible -i ~/kolla-ansible/multinode deploy
TASK [keystone : Running Keystone bootstrap container]
"stderr_lines": [
"+ sudo -E kolla_set_configs",
"INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json",
"INFO:__main__:Validating config file",
"INFO:__main__:Kolla config strategy set to: COPY_ALWAYS",
"INFO:__main__:Copying service configuration files",
"INFO:__main__:Deleting /etc/keystone/keystone.conf",
"INFO:__main__:Copying /var/lib/kolla/config_files/keystone.conf to /etc/keystone/keystone.conf",
"INFO:__main__:Setting permission for /etc/keystone/keystone.conf",
"INFO:__main__:Copying /var/lib/kolla/config_files/wsgi-keystone.conf to /etc/httpd/conf.d/wsgi-keystone.conf",
"INFO:__main__:Setting permission for /etc/httpd/conf.d/wsgi-keystone.conf",
"INFO:__main__:Writing out command to execute",
"INFO:__main__:Setting permission for /var/log/kolla",
"INFO:__main__:Setting permission for /var/log/kolla/keystone/keystone.log",
"INFO:__main__:Setting permission for /etc/keystone/fernet-keys",
"++ cat /run_command",
"+ CMD=/usr/sbin/httpd",
"+ ARGS=",
"+ sudo kolla_copy_cacerts",
"+ [[ ! -n '' ]]",
"+ . kolla_extend_start",
"++ [[ centos =~ debian|ubuntu ]]",
"++ rm -rf /var/run/httpd/htcacheclean /run/httpd/htcacheclean '/tmp/httpd*'",
"++ KEYSTONE_LOG_DIR=/var/log/kolla/keystone",
"++ [[ ! -d /var/log/kolla/keystone ]]",
"+++ stat -c %U:%G /var/log/kolla/keystone",
"++ [[ keystone:kolla != \\k\\e\\y\\s\\t\\o\\n\\e\\:\\k\\o\\l\\l\\a ]]",
"++ '[' '!' -f /var/log/kolla/keystone/keystone.log ']'",
"+++ stat -c %U:%G /var/log/kolla/keystone/keystone.log",
"++ [[ keystone:keystone != \\k\\e\\y\\s\\t\\o\\n\\e\\:\\k\\e\\y\\s\\t\\o\\n\\e ]]",
"+++ stat -c %a /var/log/kolla/keystone",
"++ [[ 2755 != \\7\\5\\5 ]]",
"++ chmod 755 /var/log/kolla/keystone",
"++ EXTRA_KEYSTONE_MANAGE_ARGS=",
"++ [[ -n '' ]]",
"++ [[ -n '' ]]",
"++ [[ -n 0 ]]",
"++ sudo -H -u keystone keystone-manage db_sync",
"Traceback (most recent call last):",
" File \"/usr/bin/keystone-manage\", line 6, in <module>",
" from keystone.cmd.manage import main",
" File \"/usr/lib/python2.7/site-packages/keystone/cmd/manage.py\", line 19, in <module>",
" from keystone.cmd import cli",
" File \"/usr/lib/python2.7/site-packages/keystone/cmd/cli.py\", line 31, in <module>",
" from keystone.cmd import bootstrap",
" File \"/usr/lib/python2.7/site-packages/keystone/cmd/bootstrap.py\", line 17, in <module>",
" from keystone.common import driver_hints",
" File \"/usr/lib/python2.7/site-packages/keystone/common/driver_hints.py\", line 18, in <module>",
" from keystone import exception",
" File \"/usr/lib/python2.7/site-packages/keystone/exception.py\", line 20, in <module>",
" import keystone.conf",
" File \"/usr/lib/python2.7/site-packages/keystone/conf/__init__.py\", line 19, in <module>",
" import oslo_messaging",
" File \"/usr/lib/python2.7/site-packages/oslo_messaging/__init__.py\", line 17, in <module>",
" from .notify import *",
" File \"/usr/lib/python2.7/site-packages/oslo_messaging/notify/__init__.py\", line 28, in <module>",
" from .listener import *",
" File \"/usr/lib/python2.7/site-packages/oslo_messaging/notify/listener.py\", line 139, in <module>",
" from oslo_messaging import server as msg_server",
" File \"/usr/lib/python2.7/site-packages/oslo_messaging/server.py\", line 28, in <module>",
" from oslo_service import service",
" File \"/usr/lib/python2.7/site-packages/oslo_service/__init__.py\", line 15, in <module>",
" import eventlet.patcher",
" File \"/usr/lib/python2.7/site-packages/eventlet/__init__.py\", line 10, in <module>",
" from eventlet import convenience",
" File \"/usr/lib/python2.7/site-packages/eventlet/convenience.py\", line 7, in <module>",
" from eventlet.green import socket",
" File \"/usr/lib/python2.7/site-packages/eventlet/green/socket.py\", line 21, in <module>",
" from eventlet.support import greendns",
" File \"/usr/lib/python2.7/site-packages/eventlet/support/greendns.py\", line 399, in <module>",
" resolver = ResolverProxy(hosts_resolver=HostsResolver())",
" File \"/usr/lib/python2.7/site-packages/eventlet/support/greendns.py\", line 313, in __init__",
" self.clear()",
" File \"/usr/lib/python2.7/site-packages/eventlet/support/greendns.py\", line 316, in clear",
" self._resolver = dns.resolver.Resolver(filename=self._filename)",
" File \"/usr/lib/python2.7/site-packages/dns/resolver.py\", line 605, in __init__",
" self.read_resolv_conf(filename)",
" File \"/usr/lib/python2.7/site-packages/dns/resolver.py\", line 658, in read_resolv_conf",
" self.domain = dns.name.from_text(tokens[1])",
" File \"/usr/lib/python2.7/site-packages/dns/name.py\", line 859, in from_text",
" raise EmptyLabel",
"dns.name.EmptyLabel: A DNS label is empty."
],
"stdout": "",
"stdout_lines": []
}
Окружающая среда
* Docker Registry & Container Host
- OS : CentOS Linux release 7.7.1908 (Core)
- Kernel : 3.10.0-957.27.2.el7.x86_64
- Python : 3.6.4 (virtualenv)
- Docker : 19.03.5, build 633a0ea
* Kolla & Kolla-Ansible
- Version : 8.0.1 or 9.0.0
* Kolla-Image Base OS : CentOS7
** Сначала я подумал, что это проблема с Python версией (2.7) CentOS, которая является базовой. Однако при переходе к Ubuntu 18.04 при создании образа (горизонта) возникла та же проблема, даже если версия Python была 3.x.