← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1584204] Re: VersionsCallbackNotFound exception when using QoS

 

Proposed patch:  https://review.openstack.org/#/c/319444/

** Also affects: neutron
   Importance: Undecided
       Status: New

** Changed in: neutron
     Assignee: (unassigned) => John Kasperski (jckasper)

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

Title:
  VersionsCallbackNotFound exception when using QoS

Status in networking-ovn:
  Confirmed
Status in neutron:
  New

Bug description:
  VersionsCallbackNotFound exception occurred in neutron-server running
  networking-ovn when trying to enable QoS with the following commands:

  $ neutron qos-policy-create bw-limiter

  $ neutron qos-bandwidth-limit-rule-create bw-limiter --max-kbps 3000
  --max-burst-kbps 300

  Note:  This exception occurred when running core plugin or ML2 mech
  driver.

  
  2016-05-20 09:41:36.789 27596 DEBUG oslo_policy.policy [req-0fe76c74-76a6-43b3-8f5b-4d85a65aec7b admin -] Reloaded policy file: /etc/neutron/policy.json _load_policy_file /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:520
  2016-05-20 09:41:36.954 27596 INFO neutron.wsgi [req-0fe76c74-76a6-43b3-8f5b-4d85a65aec7b admin -] 192.168.56.10 - - [20/May/2016 09:41:36] "GET /v2.0/qos/policies.json?fields=id&name=bw-limiter HTTP/1.1" 200 260 0.368297
  2016-05-20 09:41:37.031 27596 DEBUG neutron.api.v2.base [req-c50967a6-838f-4da8-adab-9a44e7c7c207 admin -] Request body: {u'bandwidth_limit_rule': {u'max_kbps': u'3000', u'max_burst_kbps': u'300'}} prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:658
  2016-05-20 09:41:37.031 27596 DEBUG neutron.api.v2.base [req-c50967a6-838f-4da8-adab-9a44e7c7c207 admin -] Unknown quota resources ['bandwidth_limit_rule']. _create /opt/stack/neutron/neutron/api/v2/base.py:460
  2016-05-20 09:41:37.056 27596 DEBUG neutron.api.rpc.handlers.resources_rpc [req-c50967a6-838f-4da8-adab-9a44e7c7c207 admin -] neutron.api.rpc.handlers.resources_rpc.ResourcesPushRpcApi method push called with arguments (<neutron.context.Context object at 0x7f7800152f50>, QosPolicy(description='',id=dbee9581-44a5-4889-bd06-9193eb08c10d,name='bw-limiter',rules=[QosRule(7317f86e-bacb-4c6c-9221-66e2f9d9309d)],shared=False,tenant_id=7c291c3d9d1a45dd89c8c80c7f5f12b0), 'updated') {} wrapper /usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py:47
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource [req-c50967a6-838f-4da8-adab-9a44e7c7c207 admin -] create failed
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 84, in resource
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 412, in create
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 148, in wrapper
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self.force_reraise()
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 138, in wrapper
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 523, in _create
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     obj = do_create(body)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 505, in do_create
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self.force_reraise()
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 498, in do_create
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/db_base_plugin_common.py", line 38, in inner
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     result = f(*args, **kwargs)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/services/qos/qos_plugin.py", line 100, in create_policy_bandwidth_limit_rule
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self.notification_driver_manager.update_policy(context, policy)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/services/qos/notification_drivers/manager.py", line 38, in update_policy
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     driver.update_policy(context, qos_policy)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/services/qos/notification_drivers/message_queue.py", line 56, in update_policy
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self.notification_api.push(context, policy, events.UPDATED)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py", line 48, in wrapper
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     return method(*args, **kwargs)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/rpc/handlers/resources_rpc.py", line 195, in push
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     versions = version_manager.get_resource_versions(resource_type)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/rpc/callbacks/version_manager.py", line 254, in get_resource_versions
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     return _get_cached_tracker().get_resource_versions(resource_type)
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/rpc/callbacks/version_manager.py", line 216, in get_resource_versions
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self._check_expiration()
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/rpc/callbacks/version_manager.py", line 209, in _check_expiration
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     self._update_consumer_versions()
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/rpc/callbacks/version_manager.py", line 205, in _update_consumer_versions
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource     raise exceptions.VersionsCallbackNotFound()
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource VersionsCallbackNotFound: No versions callback provided in ResourceVersionsManager
  2016-05-20 09:41:37.056 27596 ERROR neutron.api.v2.resource
  2016-05-20 09:41:37.067 27596 INFO neutron.wsgi [req-c50967a6-838f-4da8-adab-9a44e7c7c207 admin -] 192.168.56.10 - - [20/May/2016 09:41:37] "POST /v2.0/qos/policies/dbee9581-44a5-4889-bd06-9193eb08c10d/bandwidth_limit_rules.json HTTP/1.1" 500 357 0.113244
  2016-05-20 09:41:37.622 27599 DEBUG oslo_messaging._drivers.amqpdriver [-] received message msg_id: 062c9aaa1bb14099b5c8f7abcde953f9 reply to reply_f0fd90eb408243f39bc6ef2b5fd4beae __call__ /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:196

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-ovn/+bug/1584204/+subscriptions