devstack安装,oslo_log ImportError:无法导入名称versionutils?

时间:2016-07-20 17:23:57

标签: installation devstack

我想在Ubuntu 14.04 x64上安装Devstack(stable / kilo)。我尝试了很多次,得到了流动的错误:

2016-07-20 13:24:59.856 | + /usr/local/bin/keystone-manage db_sync
2016-07-20 13:25:00.933 | Traceback (most recent call last):
2016-07-20 13:25:00.934 |   File "/usr/local/bin/keystone-manage", line 6, in <module>
2016-07-20 13:25:00.934 |     from keystone.cmd.manage import main
2016-07-20 13:25:00.934 |   File "/opt/stack/keystone/keystone/cmd/manage.py", line 32, in <module>
2016-07-20 13:25:00.934 |     from keystone.cmd import cli
2016-07-20 13:25:00.934 |   File "/opt/stack/keystone/keystone/cmd/cli.py", line 24, in <module>
2016-07-20 13:25:00.934 |     from oslo_log import versionutils
2016-07-20 13:25:00.935 | ImportError: cannot import name versionutils
2016-07-20 13:25:00.950 | + exit_trap
2016-07-20 13:25:00.952 | + local r=1
2016-07-20 13:25:00.952 | ++ jobs -p
2016-07-20 13:25:00.953 | + jobs=
2016-07-20 13:25:00.953 | + [[ -n '' ]]
2016-07-20 13:25:00.953 | + kill_spinner
2016-07-20 13:25:00.953 | + '[' '!' -z '' ']'
2016-07-20 13:25:00.953 | + [[ 1 -ne 0 ]]
2016-07-20 13:25:00.953 | + echo 'Error on exit'
2016-07-20 13:25:00.953 | Error on exit
2016-07-20 13:25:00.953 | + generate-subunit 1469020399 701 fail
2016-07-20 13:25:01.941 | + [[ -z /opt/stack/logs ]]
2016-07-20 13:25:01.941 | + /home/chao/devstack/tools/worlddump.py -d /opt/stack/logs
2016-07-20 13:25:02.103 | df: '/mnt/hgfs': Protocol error
2016-07-20 13:25:02.139 | + exit 1

1 个答案:

答案 0 :(得分:0)

这实际上看到了几次,并且还报告了一个错误: https://bugs.launchpad.net/devstack/+bug/1468465

与此同时,您可以尝试以下步骤,看看是否有帮助:

  • 取消堆叠,清理并重新安装python-pip。然后stack.sh并且如果问题又来了,请手动安装特定版本的缺失包,即使这不是推荐的方式。