Ask Your Question
2

Neutron net-create: Unable to create the network. No tenant network is available for allocation.

asked 2015-11-30 05:56:22 -0500

Openstackuser2013 gravatar image

updated 2015-11-30 07:10:38 -0500

I am trying to install Liberty to Ubuntu 14.04using the official install guide. Everything worked until it came time to create the private network. I am on this page of the guide: http://docs.openstack.org/liberty/ins...

Command neutron net-create private results in this error:

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

I was able to create the public network without problems. Now I can't create any networks and always get this same error. This errors happens for both admin and normal user.

neutron net-list
+--------------------------------------+--------+-----------------------------------------------------+
| id                                   | name   | subnets                                             |
+--------------------------------------+--------+-----------------------------------------------------+
| 9493076e-fb54-4f43-b83c-7b70f31f80c0 | public | 3465ea72-5dc1-42d7-9833-421197e8288d myip/24 |
+--------------------------------------+--------+-----------------------------------------------------+

The error gets logged like this to /var/log/neutron/neutron-server.log (Other log files don't get errors.):

2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource [req-e5b8ffed-4be0-42f5-ae5f-de42092c8e08 156a54307d9245b0aeb974873571f97b 1b4d72c26b5d46aa902dd6c5af14310a - - -] create failed
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource Traceback (most recent call last):
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 83, in resource
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 516, in create
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     obj = do_create(body)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 498, in do_create
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 491, in do_create
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
5

answered 2015-11-30 07:20:56 -0500

Openstackuser2013 gravatar image

This was caused by my error in configuration.

In /etc/neutron/plugins/ml2/ml2:conf.ini I had configured [ml2_type_vlan] instead of [ml2_type_vxlan] with the ranges-parameter. (vni_ranges = 1:1000`)

edit flag offensive delete link more

Comments

thanks, i did the same mistake too

saleh gravatar imagesaleh ( 2018-03-05 01:18:33 -0500 )edit

Yes, same mistake here

VarunNair gravatar imageVarunNair ( 2018-07-23 14:12:22 -0500 )edit

I have followed the above ans, but my problem dint get solved/

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-15 03:15:47 -0500 )edit

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: 2015-11-30 05:56:22 -0500

Seen: 9,273 times

Last updated: Nov 30 '15