我是 OpenStack 技术的新手,为了熟悉它,过去两天我尝试在 VirtualBox 上的 16.04 Ubuntu Server 虚拟机上测试运行 DevStack 单节点安装。目前 local.conf 文件如下所示:
[[local|localrc]]
ADMIN_PASSWORD=<password>
DATABASE_PASSWORD=<password>
RABBIT_PASSWORD=<password>
SERVICE_PASSWORD=<password>
HOST_IP=192.168.1.6 <--- (Server VM is Bridged so I get this address)
#HOST_IPV6=2001:db8::7
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=enp0s3
但是每次我尝试运行 stack.sh 时,执行都会退出,并且在 shell 屏幕上得到以下输出:
2017-01-28 10:47:37.791 | No matching distribution found for hacking<0.13,>=0.12.0 (from -r /opt/stack/tempest/test-requirements.txt (line 4))
2017-01-28 10:47:38.006 | +inc/python:pip_install:1 exit_trap
2017-01-28 10:47:38.017 | +./stack.sh:exit_trap:487 local r=1
2017-01-28 10:47:38.031 | ++./stack.sh:exit_trap:488 jobs -p
2017-01-28 10:47:38.056 | +./stack.sh:exit_trap:488 jobs=
2017-01-28 10:47:38.070 | +./stack.sh:exit_trap:491 [[ -n '' ]]
2017-01-28 10:47:38.082 | +./stack.sh:exit_trap:497 kill_spinner
2017-01-28 10:47:38.097 | +./stack.sh:kill_spinner:383 '[' '!' -z '' ']'
2017-01-28 10:47:38.109 | +./stack.sh:exit_trap:499 [[ 1 -ne 0 ]]
2017-01-28 10:47:38.123 | +./stack.sh:exit_trap:500 echo 'Error on exit'
2017-01-28 10:47:38.123 | Error on exit
2017-01-28 10:47:38.135 | +./stack.sh:exit_trap:501 generate-subunit 1485599019 1439 fail
2017-01-28 10:47:39.459 | +./stack.sh:exit_trap:502 [[ -z /opt/stack/logs ]]
2017-01-28 10:47:39.489 | +./stack.sh:exit_trap:505 /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2017-01-28 10:47:40.630 | +./stack.sh:exit_trap:511 exit 1
您对这个问题可能是什么情况有什么想法吗?就此而言,有人可以推荐一份适用于当前 ubuntu 和 devstack 发行版的 DevStack 指南吗?(我知道 2014 年的 OpenStack 指南,但它似乎不再起作用了)。
提前感谢您的时间。
答案1
对于数据库:-
###localrc
HOST_IP=127.0.0.1
DATABASE_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_TOKEN=nova
SERVICE_PASSWORD=nova
ADMIN_PASSWORD=nova
SWIFT_HASH=nova
启用 Swift 和禁用 Swift:-
###Enable Swift
enable_service s-proxy s-object s-container s-account
###Disable Swift
disable_service s-proxy s-object s-container s-account
启用和禁用中子:-
###Enable Neutron
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
###Disable Neutron
enable_service n-net
disable_service q-svc
disable_service q-agt
disable_service q-dhcp
disable_service q-l3
disable_service q-meta
disable_service q-metering
启用和禁用加热:
###Enable Heat
enable_service heat h-api h-api-cfn h-api-cw h-eng
###Disable Heat
disable_service heat h-api h-api-cfn h-api-cw h-eng
localrc
在 cd devstack 中 执行运行命令后FORCE=yes ./stack.sh