yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #05132
[Bug 1232155] Re: TypeError MagicMock not JSON serializable on local UT run
Regenerated the virtualenv, can't seem to reproduced it anymore.
** Changed in: neutron
Status: New => 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/1232155
Title:
TypeError MagicMock not JSON serializable on local UT run
Status in OpenStack Neutron (virtual network service):
Invalid
Bug description:
This is what I see:
ERROR:neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent:Failed reporting state!
Traceback (most recent call last):
File "/home/stack/workspace/openstack/neutron/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 759, in _report_state
self.agent_state)
File "/home/stack/workspace/openstack/neutron/neutron/agent/rpc.py", line 74, in report_state
return self.cast(context, msg, topic=self.topic)
File "/home/stack/workspace/openstack/neutron/neutron/openstack/common/rpc/proxy.py", line 171, in cast
rpc.cast(context, self._get_topic(topic), msg)
File "/home/stack/workspace/openstack/neutron/neutron/openstack/common/rpc/__init__.py", line 158, in cast
return _get_impl().cast(CONF, context, topic, msg)
File "/home/stack/workspace/openstack/neutron/neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
check_serialize(msg)
File "/home/stack/workspace/openstack/neutron/neutron/openstack/common/rpc/impl_fake.py", line 131, in check_serialize
json.dumps(msg)
File "/usr/lib/python2.7/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py", line 178, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <MagicMock name='LinuxBridgeManager().local_ip' id='354935952'> is not JSON serializable
stack
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1232155/+subscriptions