Ask Your Question
5

Unable to create the network. No tenant network is available for allocation.

asked 2014-05-09 02:52:40 -0500

Livenux Chou gravatar image

updated 2014-05-11 22:19:01 -0500

controller>neutron net-create ext-net --shared --router:external=True

503-{u'NeutronError': {u'message': u'Unable to create the network. No tenant network is available for allocation.', u'type': u'NoNetworkAvailable', u'detail': u''}}

I refer Openstack Document install openstack icehouse on ubuntu 14.04. I do not know where the wrong.

view the Log File:

controller>cat /var/log/neutron/server.log

2014-05-09 15:34:47.144 989 INFO neutron.wsgi [-] (989) accepted ('10.0.0.251', 46917)

2014-05-09 15:34:47.147 989 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-05-09 15:34:47.258 989 ERROR neutron.api.v2.resource [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] create failed
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 419, in create
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 384, in create_network
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 96, in allocate_tenant_segment
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource 
2014-05-09 15:34:47.264 989 INFO neutron.wsgi [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] 10.0.0.251 - - [09/May/2014 15:34:47] "POST /v2.0/networks.json HTTP/1.1" 503 360 0.118819

controller>ps aux | grep neutron

neutron   2587  0.2  4.0 211936 52140 ?        Ss   17:06   0:07 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
root      3356  0.0  0.0  11744   924 pts/1    S+   17:57   0:00 grep --color=auto neutron

controller neutron.conf file:

[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True

notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://controller:8774/v2
nova_admin_username = nova
nova_admin_tenant_id = 36bf9ca9fbee42a5abad0d0ad2a69e02
nova_admin_password = nova
nova_admin_auth_url = http://controller:35357/v2.0

auth_strategy = keystone

rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_password = guest
rabbit_userid = guest
notification_driver = neutron.openstack.common.notifier.rpc_notifier

[quotas]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357 ...
(more)
edit retag flag offensive close merge delete

Comments

Could you run :-
$service neutron-server restart
$service neutron-server status

dbaxps gravatar imagedbaxps ( 2014-05-09 04:11:00 -0500 )edit

neutron-server is running...

Livenux Chou gravatar imageLivenux Chou ( 2014-05-09 04:13:11 -0500 )edit

Could you provide ?
neutron.conf && ml2_conf.ini
$ ps -ef | grep neutron-server

dbaxps gravatar imagedbaxps ( 2014-05-09 04:36:31 -0500 )edit

thanks, question is update.configure file is add.

Livenux Chou gravatar imageLivenux Chou ( 2014-05-09 05:07:06 -0500 )edit

Regarding ml2_plugin.ini try to add entry:-
sql_connection= mysql://neutron:<password>@<host>/neutron_ml2

dbaxps gravatar imagedbaxps ( 2014-05-09 05:29:59 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
3

answered 2014-05-09 05:15:04 -0500

dbaxps gravatar image

updated 2014-05-09 05:22:28 -0500

Try to set in neutron.conf
core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins=neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
Restart service && try create network via neutron

edit flag offensive delete link more
0

answered 2015-09-30 01:33:23 -0500

Hi dbaxps, I have similar issue in Icehouse 2-node setup and after trying with your comment to put core_plugin and service_plugins in neutron.conf i'm getting the same issue- "No tenant network is available". detailed explanation is also available at below path-

https://ask.openstack.org/en/question...

edit flag offensive delete link more
-1

answered 2015-09-21 03:08:05 -0500

Pavel Chechetin gravatar image

It looks like you didn't restart some services after configuration changes and some changes hasn't been applied yet. Restart services or even restart the machine (if it's possible).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-09 02:52:40 -0500

Seen: 18,501 times

Last updated: Sep 30 '15