![stack.sh-OpenStack 安装失败](https://linux22.com/image/658558/stack.sh-OpenStack%20%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5.png)
我想这是我第 45 次尝试安装 OpenStack - 我尝试了我知道的所有可能方法(openstack-deploy、manual、stack.sh)...但我仍然遇到一些问题。我希望在 Debian Jessie 上的单台机器上实现这一点。
这就是我回到 stack.sh 的原因,目前我收到了这个错误:
2015-05-19 11:45:03.607 | + [[ -n '' ]]
2015-05-19 11:45:03.607 | + sleep 3
2015-05-19 11:45:06.621 | ++ echo -ne '\015'
2015-05-19 11:45:06.621 | + NL=$'\r'
2015-05-19 11:45:06.621 | + [[ -n '' ]]
2015-05-19 11:45:06.622 | + screen_rc g-api '/usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf'
2015-05-19 11:45:06.622 | + SCREEN_NAME=stack
2015-05-19 11:45:06.622 | + SCREENRC=/opt/stack/devstack/stack-screenrc
2015-05-19 11:45:06.622 | + [[ ! -e /opt/stack/devstack/stack-screenrc ]]
2015-05-19 11:45:06.622 | + grep g-api /opt/stack/devstack/stack-screenrc
2015-05-19 11:45:06.624 | ++ echo -ne '\015'
2015-05-19 11:45:06.625 | + NL=$'\r'
2015-05-19 11:45:06.625 | + echo 'screen -t g-api bash'
"'15-05-19 11:45:06.625 | + echo 'stuff "/usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf
2015-05-19 11:45:06.625 | + [[ -n /opt/stack/logs ]]
2015-05-19 11:45:06.625 | + echo 'logfile /opt/stack/logs/g-api.log.2015-05-19-132546'
2015-05-19 11:45:06.625 | + echo 'log on'
2015-05-19 11:45:06.625 | + screen -S stack -p g-api -X stuff '/usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf & echo $! >/opt/stack/status/stack/g-api.pid; fg || echo "g-api fa'led to start" | tee "/opt/stack/status/stack/g-api.failure"
2015-05-19 11:45:06.628 | + echo 'Waiting for g-api (10.27.200.17:9292) to start...'
2015-05-19 11:45:06.628 | Waiting for g-api (10.27.200.17:9292) to start...
2015-05-19 11:45:06.628 | + wait_for_service 60 http://10.27.200.17:9292
2015-05-19 11:45:06.629 | + local timeout=60
2015-05-19 11:45:06.629 | + local url=http://10.27.200.17:9292
2015-05-19 11:45:06.629 | + timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://10.27.200.17:9292 >/dev/null; do sleep 1; done'
2015-05-19 11:45:09.686 | + is_service_enabled g-search
2015-05-19 11:45:09.690 | + return 1
2015-05-19 11:45:09.690 | + is_service_enabled g-reg
2015-05-19 11:45:09.694 | + return 0
2015-05-19 11:45:09.695 | ++ openstack token issue -c id -f value
2015-05-19 11:45:10.605 | WARNING: keystoneclient.auth.identity.generic.base Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
2015-05-19 11:45:10.609 | ERROR: openstack Internal Server Error (HTTP 500)
2015-05-19 11:45:10.663 | + TOKEN=
2015-05-19 11:45:10.663 | ++ err_trap
2015-05-19 11:45:10.663 | ++ local r=1
2015-05-19 11:45:10.667 | Error on exit
并在 stack.sh “内部”的日志中
2015-05-19 13:45:00.428747 File "/opt/stack/keystone/keystone/contrib/federation/idp.py", line 21, in <module>
2015-05-19 13:45:00.429038 import saml2
2015-05-19 13:45:00.429078 File "/usr/local/lib/python2.7/site-packages/saml2/__init__.py", line 35, in <module>
2015-05-19 13:45:00.429446 from elementtree import ElementTree
2015-05-19 13:45:00.429512 ImportError: No module named elementtree
2015-05-19 13:45:10.602124 mod_wsgi (pid=26111): Target WSGI script '/var/www/keystone/admin' cannot be loaded as Python module.
2015-05-19 13:45:10.602177 mod_wsgi (pid=26111): Exception occurred processing WSGI script '/var/www/keystone/admin'.
2015-05-19 13:45:10.602210 Traceback (most recent call last):
2015-05-19 13:45:10.602245 File "/var/www/keystone/admin", line 25, in <module>
2015-05-19 13:45:10.602291 application = wsgi_server.initialize_application(name)
2015-05-19 13:45:10.602309 File "/opt/stack/keystone/keystone/server/wsgi.py", line 38, in initialize_application
2015-05-19 13:45:10.602352 common.configure()
2015-05-19 13:45:10.602367 File "/opt/stack/keystone/keystone/server/common.py", line 28, in configure
2015-05-19 13:45:10.602390 config.configure()
2015-05-19 13:45:10.602406 File "/opt/stack/keystone/keystone/common/config.py", line 1106, in configure
2015-05-19 13:45:10.603025 help='Do not monkey-patch threading system modules.'))
2015-05-19 13:45:10.603049 File "/usr/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1798, in __inner
2015-05-19 13:45:10.603967 result = f(self, *args, **kwargs)
2015-05-19 13:45:10.603987 File "/usr/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1971, in register_cli_opt
2015-05-19 13:45:10.604013 raise ArgsAlreadyParsedError("cannot register CLI option")
2015-05-19 13:45:10.604044 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2015-05-19 13:45:10.608123 mod_wsgi (pid=26110): Target WSGI script '/var/www/keystone/admin' cannot be loaded as Python module.
2015-05-19 13:45:10.608160 mod_wsgi (pid=26110): Exception occurred processing WSGI script '/var/www/keystone/admin'.
2015-05-19 13:45:10.608191 Traceback (most recent call last):
2015-05-19 13:45:10.608224 File "/var/www/keystone/admin", line 25, in <module>
2015-05-19 13:45:10.608268 application = wsgi_server.initialize_application(name)
2015-05-19 13:45:10.608286 File "/opt/stack/keystone/keystone/server/wsgi.py", line 38, in initialize_application
2015-05-19 13:45:10.608311 common.configure()
2015-05-19 13:45:10.608327 File "/opt/stack/keystone/keystone/server/common.py", line 28, in configure
2015-05-19 13:45:10.608351 config.configure()
2015-05-19 13:45:10.608366 File "/opt/stack/keystone/keystone/common/config.py", line 1106, in configure
2015-05-19 13:45:10.608390 help='Do not monkey-patch threading system modules.'))
2015-05-19 13:45:10.608406 File "/usr/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1798, in __inner
2015-05-19 13:45:10.608431 result = f(self, *args, **kwargs)
2015-05-19 13:45:10.608447 File "/usr/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1971, in register_cli_opt
2015-05-19 13:45:10.608471 raise ArgsAlreadyParsedError("cannot register CLI option")
2015-05-19 13:45:10.608500 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
我见过
elementtree import ElementTree
ImportError: No module named elementtree
并验证它应该由 python-lxml 提供 - 但我已经确认它已经安装 - 我已经解决了这个问题
pip install elementtree --allow-external elementtree --allow-unverified elementtree
但现在又出现了另一个问题
ImportError: /usr/local/lib/python2.7/lib-dynload/_ssl.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8
我没有想到这样 - 因为 python 被正确编译 - 我不知道为什么一个模块以其他方式编译...