Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

I am trying to install Liberty to Ubuntu 14.04 using the official install guide. Everything worked until it came time to create the private network.

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.

The error gets logged like this to /var/log/neutron/neutron-server.log:

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.

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

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

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.

The error gets logged like this to /var/log/neutron/neutron-server.log:

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.

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

I am trying to install Liberty to Ubuntu 14.04 using 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/install-guide-ubuntu/launch-instance-networks-private.html

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.

The error gets logged like this to /var/log/neutron/neutron-server.log:

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.

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

I am trying to install Liberty to Ubuntu 14.04 using 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/install-guide-ubuntu/launch-instance-networks-private.html

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 153.1.124.0/24 |
+--------------------------------------+--------+-----------------------------------------------------+

The error gets logged like this to /var/log/neutron/neutron-server.log:

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.

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

I am trying to install Liberty to Ubuntu 14.04 using 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/install-guide-ubuntu/launch-instance-networks-private.html

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 153.1.124.0/24 myip/24 |
+--------------------------------------+--------+-----------------------------------------------------+

The error gets logged like this to /var/log/neutron/neutron-server.log:

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.

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

I am trying to install Liberty to Ubuntu 14.04 using 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/install-guide-ubuntu/launch-instance-networks-private.html

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/plugins/ml2/plugin.py", line 642, in create_network
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     network)
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/plugins/ml2/plugin.py", line 638, in _create_network_with_retries
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     return self._create_network_db(context, network)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 622, in _create_network_db
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     tenant_id)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 198, in create_network_segments
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 234, in _allocate_tenant_net_segment
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2015-11-30 13:45:37.864 3448 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.

What could be causing this problem?

I have found some similar problems from this site, but those seems to about older versions of Openstack so they might not be relevant in this case.