← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1496787] [NEW] If qos service_plugin is enabled, but ml2 extension driver is not, api requests attaching policies to ports or nets will fail with an ugly exception

 

Public bug reported:

$ neutron port-update b0885ae1-487b-40bc-8fc0-32432a21e39d --qos-policy bw-limiter
Request Failed: internal server error while processing your request.

Neutron Exception:

DEBUG neutron.api.v2.base [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] Request body: {u'port': {u'qos_policy_id': u'0ee1c673-5671-40ca-b55f-4cd4bbd999c7'}} from (pid=18237) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:645
2015-09-15 01:05:26.022 ERROR neutron.api.v2.resource [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] update failed
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     ectxt.value = e.inner_exc
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     return f(*args, **kwargs)
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 613, in update
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1158, in update_port
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     original_port[qos_consts.QOS_POLICY_ID] !=
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource KeyError: 'qos_policy_id'
2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource
2015-09-15 01:05:26.026 INFO neutron.wsgi [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] 172.16.175.128 - - [15/Sep/2015 01:05:26] "PUT /v2.0/ports/b0885ae1-487b-40bc-8fc0-32432a21e39d.json HTTP/1.1" 500 383 0.084317

** Affects: neutron
     Importance: Undecided
     Assignee: Miguel Angel Ajo (mangelajo)
         Status: Confirmed


** Tags: qos

** Changed in: neutron
     Assignee: (unassigned) => Miguel Angel Ajo (mangelajo)

** Changed in: neutron
       Status: New => Confirmed

** Tags added: qos

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

Title:
  If qos service_plugin is enabled, but ml2 extension driver is not, api
  requests attaching policies to ports or nets will fail with an ugly
  exception

Status in neutron:
  Confirmed

Bug description:
  $ neutron port-update b0885ae1-487b-40bc-8fc0-32432a21e39d --qos-policy bw-limiter
  Request Failed: internal server error while processing your request.

  Neutron Exception:

  DEBUG neutron.api.v2.base [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] Request body: {u'port': {u'qos_policy_id': u'0ee1c673-5671-40ca-b55f-4cd4bbd999c7'}} from (pid=18237) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:645
  2015-09-15 01:05:26.022 ERROR neutron.api.v2.resource [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] update failed
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     ectxt.value = e.inner_exc
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     return f(*args, **kwargs)
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 613, in update
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1158, in update_port
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource     original_port[qos_consts.QOS_POLICY_ID] !=
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource KeyError: 'qos_policy_id'
  2015-09-15 01:05:26.022 TRACE neutron.api.v2.resource
  2015-09-15 01:05:26.026 INFO neutron.wsgi [req-218cddfd-2b7d-4050-91db-251c139029b2 admin 85b859134de2428d94f6ee910dc545d8] 172.16.175.128 - - [15/Sep/2015 01:05:26] "PUT /v2.0/ports/b0885ae1-487b-40bc-8fc0-32432a21e39d.json HTTP/1.1" 500 383 0.084317

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


Follow ups