← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1234857] Re: neutron unittest require minimum 4gb memory

 

** Changed in: neutron/havana
       Status: Fix Committed => Fix Released

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

Title:
  neutron unittest require minimum 4gb memory

Status in OpenStack Neutron (virtual network service):
  Confirmed
Status in neutron havana series:
  Fix Released

Bug description:
  tox -e py26

  The unittest hang forever. Each test seem to take around 25mins to
  complete. Each test report following error, though it is PASS. It
  sounds like a regression caused by fix for
  https://bugs.launchpad.net/neutron/+bug/1191768.

  https://github.com/openstack/neutron/commit/06f679df5d025e657b2204151688ffa60c97a3d3

  As per this fix, the default behavior for
  neutron.agent.rpc.report_state() is modified to use cast(), to report
  back the state in json format. The original behavior was to use call()
  method.

  Using call() method by default might fix this problem.

  ERROR:neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent:Failed reporting state!
  Traceback (most recent call last):
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 759, in _report_state
      self.agent_state)
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "/home/jenkins/workspace/csi-neutron-upstream/neutron/openstack/common/rpc/impl_fake.py", line 131, in check_serialize
      json.dumps(msg)
    File "/usr/lib64/python2.6/json/__init__.py", line 230, in dumps
      return _default_encoder.encode(obj)
    File "/usr/lib64/python2.6/json/encoder.py", line 367, in encode
      chunks = list(self.iterencode(o))
    File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
      for chunk in self._iterencode_dict(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
      for chunk in self._iterencode(value, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
      for chunk in self._iterencode_dict(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
      for chunk in self._iterencode(value, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
      for chunk in self._iterencode_dict(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
      for chunk in self._iterencode(value, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
      for chunk in self._iterencode_dict(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
      for chunk in self._iterencode(value, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
      for chunk in self._iterencode_dict(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
      for chunk in self._iterencode(value, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 317, in _iterencode
      for chunk in self._iterencode_default(o, markers):
    File "/usr/lib64/python2.6/json/encoder.py", line 323, in _iterencode_default
      newobj = self.default(o)
    File "/usr/lib64/python2.6/json/encoder.py", line 344, in default
      raise TypeError(repr(o) + " is not JSON serializable")
  TypeError: <MagicMock name='LinuxBridgeManager().local_ip' id='666599248'> is not JSON serializable

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