devstack采用ml2 ovs的方式进行部署的时候,官方给出的网路配置方法为:
-
q_plugin=ml2
-
enable_tenant_vlans=true
如果采用这种配置方式,在部署的过程中回报如下错误:
-
unable to create the network. no tenant network is available for allocation.
-
net_id=
-
die_if_not_set 396 net_id 'failure creating net_id for e0c2e57099ea405faa861d124ce2a3cd'
-
local exitcode=0
-
[call trace]
-
./stack.sh:1201:create_neutron_initial_network
-
/home/src/devstack/lib/neutron:396:die_if_not_set
-
/home/src/devstack/functions-common:245:die
-
/home/src/devstack/functions-common:396 failure creating net_id for e0c2e57099ea405faa861d124ce2a3cd
这是由于在创建network的时候需要先去取vlan id,但是这里没有配置vlan range,所以创建网络报错.
解决方法: 在localrc中增加vlan range的配置项,比如:
-
q_plugin=ml2
-
enable_tenant_vlans=true
-
ml2_vlan_ranges=physnet1:1000:2000
阅读(10850) | 评论(0) | 转发(1) |