← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1720486] Re: ValueError: Circular reference detected when enable keystonemiddle audit

 

** Changed in: neutron
       Status: In Progress => Invalid

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

Title:
  ValueError: Circular reference detected when enable keystonemiddle
  audit

Status in neutron:
  Invalid

Bug description:
  When keystonemiddleware audit is enabled[1], the following error will
  be raised when calling API:

  ERROR oslo_messaging.notify.messaging [None req-3aae102e-2ad9-48eb-9d90-c0dd40f406af demo admin] Could not send notification to notifications. Payload={'event_type': 'audit.http.response', 'timestamp': u'2017-09-30 02:08:19.683070', '_context_query_params': {'page_reverse': False, 'limit': None, 'filters': {u'router:external': [True]}, 'marker': None, 'fields': [], 'sorts': [('id', True)]}, '_unique_id': '7bcac52804564f1b8c36512023333cc9', '_context_collection': 'networks', '_context_neutron_context': <neutron_lib.context.Context object at 0x7fd4edaf1210>, '_context_resource': 'network', '_context_pagination_helper': <neutron.api.api_common.PaginationNativeHelper object at 0x7fd4ed999e50>, 'payload': {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'eventTime': '2017-09-30T02:08:19.522814+0000', 'target': {'typeURI': 'service/network/networks', 'addresses': [{'url': 'unknown', 'name': 'admin'}, {'url': 'unknown', 'name': 'private'}, {'url': u'http://192.168.81.140:9696/', 'name': 'public'}], 'name': u'neutron', 'id': u'neutron'}, 'observer': {'id': 'target'}, 'tags': ['correlation_id?value=6d8800f9-62d5-5017-95de-01faa1ce3971'], 'eventType': 'activity', 'initiator': {'typeURI': 'service/security/account/user', 'name': u'admin', 'credential': {'token': 'gAAAAABZzvoFGHhvYSfs9wPTUe xxxxxxxx 4E1FLRXxh5CGz1G3iL1K4fzCWV', 'identity_status': 'Confirmed'}, 'host': {'agent': 'python-neutronclient', 'address': '192.168.81.140'}, 'project_id': u'7e42f18ee360464c8ad8a59fbb884f55', 'id': u'f6d2d8206c0149e69a7941c6bd24d6cb'}, 'reason': {'reasonCode': '200', 'reasonType': 'HTTP'}, 'reporterchain': [{'reporterTime': '2017-09-30T02:08:19.682515+0000', 'role': 'modifier', 'reporter': {'id': 'target'}}], 'action': 'read/list', 'outcome': 'success', 'id': '38d0536c-f456-5daf-953b-16325cd06d03', 'requestPath': '/v2.0/networks?router%3Aexternal=True'}, '_context_added_fields': [], '_context_sorting_helper': <neutron.api.api_common.SortingNativeHelper object at 0x7fd4ed999f90>, 'priority': 'INFO', '_context_uri_identifiers': {}, 'publisher_id': 'neutron-server', 'message_id': u'ba6db80f-797d-4f3b-b539-157e63519cee'}: ValueError: Circular reference detected
  ERROR oslo_messaging.notify.messaging Traceback (most recent call last):
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/messaging.py", line 70, in notify
  ERROR oslo_messaging.notify.messaging     retry=retry)
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 130, in _send_notification
  ERROR oslo_messaging.notify.messaging     retry=retry)
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 582, in send_notification
  ERROR oslo_messaging.notify.messaging     envelope=(version == 2.0), notify=True, retry=retry)
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 530, in _send
  ERROR oslo_messaging.notify.messaging     msg = rpc_common.serialize_msg(msg)
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/common.py", line 293, in serialize_msg
  ERROR oslo_messaging.notify.messaging     _MESSAGE_KEY: jsonutils.dumps(raw_msg)}
  ERROR oslo_messaging.notify.messaging   File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 190, in dumps
  ERROR oslo_messaging.notify.messaging     return json.dumps(obj, default=default, **kwargs)
  ERROR oslo_messaging.notify.messaging   File "/usr/lib/python2.7/json/__init__.py", line 251, in dumps
  ERROR oslo_messaging.notify.messaging     sort_keys=sort_keys, **kw).encode(obj)
  ERROR oslo_messaging.notify.messaging   File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
  ERROR oslo_messaging.notify.messaging     chunks = self.iterencode(o, _one_shot=True)
  ERROR oslo_messaging.notify.messaging   File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
  ERROR oslo_messaging.notify.messaging     return _iterencode(o, 0)
  ERROR oslo_messaging.notify.messaging ValueError: Circular reference detected
  ERROR oslo_messaging.notify.messaging

  [1]: https://docs.openstack.org/keystonemiddleware/latest/audit.html

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



References