← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1648385] [NEW] Router is limited by the number of tenant networks

 

Public bug reported:

When I create the 36th router failed(1 tenant 1 tenant network and 1
router),the log /var/log/neutron/server.log error is:

2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource [req-e8eaa389-4fb5-486c-8fe0-d67e2a837a89 52661276f37048e5b5d219e0a57132a0 b5a8b21521c74a4097f522c35878b741 - - -] create failed
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 83, in resource
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 410, in create
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 521, in _create
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     obj = do_create(body)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 503, in do_create
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 496, in do_create
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 417, in create_router
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     self.delete_router(context, router_dict['id'])
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 410, in create_router
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     router_db.tenant_id)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 274, in _create_ha_network
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     context, creation, deletion, content)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/common_db_mixin.py", line 54, in safe_creation
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     obj = create_fn()
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/common/utils.py", line 127, in create_network
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return core_plugin.create_network(context, {'network': net_data})
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 654, in create_network
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     result, mech_context = self._create_network_db(context, network)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 640, in _create_network_db
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     tenant_id)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 208, in create_network_segments
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 244, in _allocate_tenant_net_segment
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource

/etc/neutron/plugin.ini configure is:
[ml2_type_vlan]
network_vlan_ranges =physnet2:1001:1070,physnet1

When I change 1070 to 2000 and restart neutron-server,the router created
successfully.

network_vlan_ranges is the limit of tenant network number,but
network_vlan_ranges limited the sum of router number and tenat network
number.

I think this is a bug.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1648385

Title:
  Router is limited by the number of tenant networks

Status in neutron:
  New

Bug description:
  When I create the 36th router failed(1 tenant 1 tenant network and 1
  router),the log /var/log/neutron/server.log error is:

  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource [req-e8eaa389-4fb5-486c-8fe0-d67e2a837a89 52661276f37048e5b5d219e0a57132a0 b5a8b21521c74a4097f522c35878b741 - - -] create failed
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 83, in resource
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 410, in create
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 521, in _create
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     obj = do_create(body)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 503, in do_create
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 496, in do_create
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 417, in create_router
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     self.delete_router(context, router_dict['id'])
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 410, in create_router
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     router_db.tenant_id)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_hamode_db.py", line 274, in _create_ha_network
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     context, creation, deletion, content)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/common_db_mixin.py", line 54, in safe_creation
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     obj = create_fn()
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/common/utils.py", line 127, in create_network
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     return core_plugin.create_network(context, {'network': net_data})
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 654, in create_network
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     result, mech_context = self._create_network_db(context, network)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 640, in _create_network_db
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     tenant_id)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 208, in create_network_segments
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     segment = self._allocate_tenant_net_segment(session)
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 244, in _allocate_tenant_net_segment
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource     raise exc.NoNetworkAvailable()
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
  2016-12-08 07:52:10.096 33561 ERROR neutron.api.v2.resource

  /etc/neutron/plugin.ini configure is:
  [ml2_type_vlan]
  network_vlan_ranges =physnet2:1001:1070,physnet1

  When I change 1070 to 2000 and restart neutron-server,the router
  created successfully.

  network_vlan_ranges is the limit of tenant network number,but
  network_vlan_ranges limited the sum of router number and tenat network
  number.

  I think this is a bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1648385/+subscriptions


Follow ups