記一次OpenStack報錯:No tenant network is available for allocation
阿新 • • 發佈:2018-12-05
建立selfservice網路時報錯:
[root@controller ~]# openstack network create selfservice
Error while executing command: HttpException: Unknown error, {"NeutronError": {"message": "Unable to create the network. No tenant network is available for allocation.", "type": "NoNetworkAvailable", "detail": ""}}
在dashboard上建立網路報同樣錯誤:
檢視neutron日誌:
[[email protected] ~]# cat /var/log/neutron/server.log
2018-06-11 11:09:00.505 5569 ERROR neutron.pecan_wsgi.hooks.translation raise exc.NoNetworkAvailable()
2018-06-11 11:09:00.505 5569 ERROR neutron.pecan_wsgi.hooks.translation NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2018 -06-11 11:09:00.505 5569 ERROR neutron.pecan_wsgi.hooks.translation
google查詢原因:
https://access.redhat.com/solutions/756453,這裡提到 tunnel_id_ranges = 1:1000。
解決問題:
[[email protected] ~]# vim /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2_type_vxlan]
#
vni_ranges = 1:1000 #在配置檔案中增加vni_ranges = 1:1000