← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1597132] Re: FWaaS: Create Firewall fails with "NoSuchOptError: no such option: router_distributed"

 

** Changed in: neutron
       Status: In Progress => Won't Fix

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

Title:
  FWaaS: Create Firewall fails with "NoSuchOptError: no such option:
  router_distributed"

Status in neutron:
  Won't Fix

Bug description:
  This is seen in a setup where the stock L3 plugin
  (neutron.services.l3_router.l3_router_plugin:L3RouterPlugin) is not
  configured, but instead, a different L3 plugin is used. The create
  firewall operation fails with the following exception:

  2016-06-28 15:24:46.940 12176 DEBUG routes.middleware [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] Matched POST /fw/firewalls.json __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:100
  2016-06-28 15:24:46.941 12176 DEBUG routes.middleware [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] Route path: '/fw/firewalls.:(format)', defaults: {'action': u'create', 'controller': <wsgify at 128842128 wrapping <function resource at 0x7933c80>>} __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:102
  2016-06-28 15:24:46.941 12176 DEBUG routes.middleware [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] Match dict: {'action': u'create', 'controller': <wsgify at 128842128 wrapping <function resource at 0x7933c80>>, 'format': u'json'} __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:103
  2016-06-28 15:24:46.956 12176 DEBUG neutron.api.v2.base [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] Request body: {u'firewall': {u'shared': False, u'description': u"{'network_function_id': 'b875efff-8fd5-4a9a-92e6-19a74c528f7f'}", u'firewall_policy_id': u'35d8b1f9-c0aa-478d-806b-7904e80f13fc', u'name': u'FWaaS-provider', u'admin_state_up': True}} prepare_request_body /usr/lib/python2.7/site-packages/neutron/api/v2/base.py:656
  2016-06-28 15:24:46.957 12176 DEBUG neutron.api.v2.base [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] Unknown quota resources ['firewall']. _create /usr/lib/python2.7/site-packages/neutron/api/v2/base.py:458
  2016-06-28 15:24:46.957 12176 DEBUG neutron_fwaas.services.firewall.fwaas_plugin [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] create_firewall() called create_firewall /usr/lib/python2.7/site-packages/neutron_fwaas/services/firewall/fwaas_plugin.py:230
  2016-06-28 15:24:46.958 12176 DEBUG neutron_fwaas.db.firewall.firewall_db [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] create_firewall() called create_firewall /usr/lib/python2.7/site-packages/neutron_fwaas/db/firewall/firewall_db.py:302
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource [req-d159be6a-85cd-44a7-a44e-d50168022948 80852c691f3448a0b536c7f573a53d02 917cc98b9116461b9c36ba7aa3a7cdc7 - - -] create failed
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 83, in resource
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 146, in wrapper
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 136, in wrapper
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     obj = do_create(body)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_fwaas/services/firewall/fwaas_plugin.py", line 247, in create_firewall
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     context, firewall)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_fwaas/db/firewall/firewall_db.py", line 309, in create_firewall
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     status = (p_const.CREATED if cfg.CONF.router_distributed
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1906, in __getattr__
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource     raise NoSuchOptError(name)
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource NoSuchOptError: no such option: router_distributed
  2016-06-28 15:24:46.959 12176 ERROR neutron.api.v2.resource

  This happens because the FWaaS code is assuming that the
  "router_distributed" configuration is registered (and which happens
  when stock L3 plugin is used).

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



References