[英]Neutron in DevStack
I am trying to set up a machine with a single network card running DevStack with Neutron, but shack.sh is failing with 我正在尝试使用具有Neutron的运行DevStack的单个网卡设置计算机,但是shack.sh失败
2014-12-16 23:39:47.221 | [ERROR] /home/stack/devstack/functions-common:1091 Failure creating private IPv4 subnet for f49997e9027f47fbbe7ea97c9bfd6d62
This is the result of trying to execute: 这是尝试执行的结果:
neutron subnet-create --tenant-id f49997e9027f47fbbe7ea97c9bfd6d62 --ip_version 4 --gateway 10.0.0.1 --name private-subnet 3c5f8df0-bfd0-4c92-9c8c-fd66fd26fd30 10.11.12.0/24
I have tried changing to gateway to 10.11.12.1 and this works. 我尝试将网关更改为10.11.12.1,并且可以正常工作。
My local.conf is: 我的local.conf是:
[[local|localrc]]
HOST_IP=192.168.2.54
FLOATING_RANGE=192.168.2.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=p2p1
SERVICE_TOKEN=...
ADMIN_PASSWORD=...
MYSQL_PASSWORD=...
RABBIT_PASSWORD=...
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
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 tempest
I suspect that there are some setting I am missing that control this better. 我怀疑我缺少一些可以更好地控制的设置。 Can anyone advise what these are?
谁能告诉我这些是什么?
The floating range is actually the external network range. 浮动范围实际上是外部网络范围。 The network gateway needs to be part of this range.
网络网关必须属于此范围。 There is a separate setting needed to specify the floating IP addresses.
需要一个单独的设置来指定浮动IP地址。 I found that the following worked:
我发现以下工作有效:
HOST_IP=192.168.2.54
FLOATING_RANGE=192.168.2.0/24
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=p2p1
NETWORK_GATEWAY=10.11.12.1
PUBLIC_NETWORK_GATEWAY=192.168.2.1
Q_FLOATING_ALLOCATION_POOL=start=192.168.2.225,end=192.168.2.250
Your GATEWAY_NETWORK
is your gateway which is the same IP range with your HOST_IP
. 您的
GATEWAY_NETWORK
是与HOST_IP
相同IP范围的HOST_IP
。 For example 192.168.2.1 例如192.168.2.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.