2017-07-25 12:49:25.301 | File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 31, in <module>
2017-07-25 12:49:25.304 | from neutron.agent.common import utils
2017-07-25 12:49:25.305 | File "/opt/stack/neutron/neutron/agent/common/utils.py", line 23, in <module>
2017-07-25 12:49:25.306 | from neutron.common import utils as neutron_utils
2017-07-25 12:49:25.307 | File "/opt/stack/neutron/neutron/common/utils.py", line 53, in <module>
2017-07-25 12:49:25.308 | from neutron.db import api as db_api
2017-07-25 12:49:25.308 | File "/opt/stack/neutron/neutron/db/api.py", line 21, in <module>
2017-07-25 12:49:25.310 | from neutron_lib.db import api
2017-07-25 12:49:25.311 | ImportError: cannot import name api
2017-07-25 12:49:25.382 | + lib/neutron-legacy:_configure_neutron_common:1 : exit_trap
2017-07-25 12:49:25.388 | + ./stack.sh:exit_trap:494 : local r=1
2017-07-25 12:49:25.394 | ++ ./stack.sh:exit_trap:495 : jobs -p
2017-07-25 12:49:25.400 | + ./stack.sh:exit_trap:495 : jobs=
2017-07-25 12:49:25.407 | + ./stack.sh:exit_trap:498 : [[ -n '' ]]
2017-07-25 12:49:25.415 | + ./stack.sh:exit_trap:504 : kill_spinner
2017-07-25 12:49:25.422 | + ./stack.sh:kill_spinner:390 : '[' '!' -z '' ']'
2017-07-25 12:49:25.430 | + ./stack.sh:exit_trap:506 : [[ 1 -ne 0 ]]
2017-07-25 12:49:25.439 | + ./stack.sh:exit_trap:507 : echo 'Error on exit'
2017-07-25 12:49:25.440 | Error on exit
2017-07-25 12:49:25.446 | + ./stack.sh:exit_trap:508 : generate-subunit 1500986072 893 fail
2017-07-25 12:49:26.417 | + ./stack.sh:exit_trap:509 : [[ -z /opt/stack/logs ]]
2017-07-25 12:49:26.431 | + ./stack.sh:exit_trap:512 : /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2017-07-25 12:49:27.239 | + ./stack.sh:exit_trap:518 : exit 1
stack@day-virtual-machine:~/devstack$ devstack
答案 0 :(得分:0)
看起来堆栈中没有安装其中一个Python依赖项。 devstack安装在您的服务器上创建一个虚拟python环境,并且应该安装所有依赖项。出于某种原因,您似乎缺少neutron_lib。
在下面运行以下命令应该包含一个名为neutron_lib的包。如果没有,那么你需要修复你的pip配置或你的网络/ DNS。全部取决于您看到的错误消息。
pip search neutron_lib
您是否在日志文件中早先看到有关pip install失败的错误消息?
发布指向整个日志文件的链接有助于提供更多信息。