devstack安装报错解决方法:Failure creating NET_ID for xxxxx (ml2+ovs网络模式)

来源:互联网 发布:mymps seo伪静态 编辑:程序博客网 时间:2024/06/05 19:40

http://blog.chinaunix.net/uid-20940095-id-4307007.html

devstack采用ml2+ovs的方式进行部署的时候,官方给出的网路配置方法为:

  1. Q_PLUGIN=ml2
  2. ENABLE_TENANT_VLANS=True
 如果采用这种配置方式,在部署的过程中回报如下错误:
  1. Unable to create the network. No tenant network is available for allocation.
  2. NET_ID=
  3. die_if_not_set 396 NET_ID 'Failure creating NET_ID for e0c2e57099ea405faa861d124ce2a3cd'
  4.  local exitcode=
  5. [Call Trace]
  6. ./stack.sh:1201:create_neutron_initial_network
  7.  /home/src/devstack/lib/neutron:396:die_if_not_set
  8. /home/src/devstack/functions-common:245:die
  9. /home/src/devstack/functions-common:396 Failure creating NET_ID for e0c2e57099ea405faa861d124ce2a3cd
这是由于在创建network的时候需要先去取vlan id,但是这里没有配置VLAN RANGE,所以创建网络报错.

解决方法: 在localrc中增加VLAN RANGE的配置项,比如:
  1. Q_PLUGIN=ml2
  2. ENABLE_TENANT_VLANS=True
  3. ML2_VLAN_RANGES=physnet1:1000:2000
0 0
原创粉丝点击