Openstack"没有发现主机映射到单元格,退出"

时间:2016-12-09 16:23:20

标签: openstack

我遇到了Devstack安装问题。我在我的机器上克隆了一个新的Devstack。跑./stack.sh一次,然后遇到以下问题。

2016-12-09 13:57:35.870 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] 344 -> 345... 
2016-12-09 13:57:36.225 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] done
2016-12-09 13:57:36.226 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] 345 -> 346... 
2016-12-09 13:57:45.436 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] done
2016-12-09 13:57:45.436 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] 346 -> 347... 
2016-12-09 13:57:47.680 INFO migrate.versioning.api [req-64697264-f3e0-4c8d-9fa1-19d9d3ceb744 None None] done
No hosts found to map to cell, exiting.

No hosts found to map to cell, exiting.
+lib/nova:create_cell:1                    exit_trap
+./stack.sh:exit_trap:487                  local r=1
++./stack.sh:exit_trap:488                  jobs -p
+./stack.sh:exit_trap:488                  jobs=
+./stack.sh:exit_trap:491                  [[ -n '' ]]
+./stack.sh:exit_trap:497                  kill_spinner
+./stack.sh:kill_spinner:383               '[' '!' -z '' ']'
+./stack.sh:exit_trap:499                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:500                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:501                  generate-subunit 1481266214 5859 fail
+./stack.sh:exit_trap:502                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:505                  /home/annakoppad/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2016-12-09-082802.txt for details
+./stack.sh:exit_trap:511                  exit 1

此外,我做了./unstack.sh./clean.sh来清理所有内容。导致同样的错误。

因此,我尝试了另外两种使用pyvenvvirtualenv使用虚拟环境的选项。它们都给出了如下所示的相同错误。

(mystack) annakoppad@annakoppad:~/Desktop/mystack/devstack$ ./stack.sh 
+ unset GREP_OPTIONS
+ unset LANG
+ unset LANGUAGE
+ LC_ALL=C
+ export LC_ALL
+ umask 022
+ PATH=/home/annakoppad/Desktop/mystack/bin:/home/annakoppad/bin:/home    /annakoppad/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin
+++ dirname ./stack.sh
++ cd .
++ pwd
+ TOP_DIR=/home/annakoppad/Desktop/mystack/devstack
+ NOUNSET=
+ [[ -n '' ]]
++ date +%s
+ DEVSTACK_START_TIME=1481289987
+ [[ -r /home/annakoppad/Desktop/mystack/devstack/.stackenv ]]
+ FILES=/home/annakoppad/Desktop/mystack/devstack/files
+ '[' '!' -d /home/annakoppad/Desktop/mystack/devstack/files ']'
+ '[' '!' -d /home/annakoppad/Desktop/mystack/devstack/inc ']'
+ '[' '!' -d /home/annakoppad/Desktop/mystack/devstack/lib ']'
+ [[ '' == \y ]]
+ [[ 1000 -eq 0 ]]
+ [[ -n /home/annakoppad/Desktop/mystack ]]
+ set +o xtrace
You appear to be running under a python virtualenv.
DevStack does not support this, as we may break the
virtualenv you are currently in by modifying 
external system-level components the virtualenv relies on.
We recommend you use a separate virtual-machine if 
you are worried about DevStack taking over your system.

任何有关如何克服的指示都将不胜感激。

提前致谢。

2 个答案:

答案 0 :(得分:1)

我怀疑devstack脚本在line of code上失败了。 这意味着你想要转到代码的else分支。为此,您需要将enable_service n-cell添加到现有的local.conf设置中。

    [[local|localrc]]
    #NOVA
    enable_service n-cell

我通过查看this commit

了解到如何启用该服务

提交消息说明:

  

"当使用cellsv1时(启用n-cell)跳过调用   cells_v2 simple_cell_setup,永远不会有主机   在顶层,总是会失败。"

现在我一直试图解决与Cliff和黑客python软件包的版本冲突。我希望这会有所帮助。

答案 1 :(得分:0)

感谢Trevor - 您的解决方案有助于解决我遇到的确切问题。按照你的说法完成后,我的开发堆栈已经启动了!

....
+./stack.sh:main:1412                      set +o xtrace

=========================
DevStack Component Timing
=========================
Total runtime         590

run_process            61
test_with_retry         2
apt-get-update          3
pip_install            66
restart_apache_server   8
wait_for_service       10
apt-get                27
=========================



This is your host IP address: 192.168.1.103
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.1.103/dashboard
Keystone is serving at http://192.168.1.103/identity/
The default users are: admin and demo
The password: secret
2016-12-28 04:23:06.124 | WARNING: 
2016-12-28 04:23:06.124 | Using lib/neutron-legacy is deprecated, and it will be removed in the future
2016-12-28 04:23:06.124 | stack.sh completed in 590 seconds.

注意:我无法对您的回答发表评论,所以我发帖作为答案。 HTH。 在Ubuntu 16.10上安装了devStack