← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1299683] [NEW] test_schedule_poll_with_disabled_agent fails

 

Public bug reported:

stable/havana fails for this test with following error log:
 neutron.tests.unit.services.loadbalancer.test_agent_scheduler.LBaaSAgentSchedulerTestCaseXML.test_schedule_poll_with_disabled_agent_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
2014-03-29 12:07:31,214     INFO [neutron.manager] Loading Plugin: neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
2014-03-29 12:07:31,216    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
Traceback (most recent call last):
  File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
    self.agent_state)
  File "neutron/agent/rpc.py", line 74, in report_state
    return self.cast(context, msg, topic=self.topic)
  File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
    rpc.cast(context, self._get_topic(topic), msg)
  File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
    return _get_impl().cast(CONF, context, topic, msg)
  File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
    check_serialize(msg)
  File "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: <Mock name='mock.host' id='464328656'> is not JSON serializable
2014-03-29 12:07:31,217    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
Traceback (most recent call last):
  File "neutron/openstack/common/loopingcall.py", line 82, in _inner
    delay = interval - timeutils.delta_seconds(start, end)
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
2014-03-29 12:07:31,218    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
Traceback (most recent call last):
  File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
    self.agent_state)
  File "neutron/agent/rpc.py", line 74, in report_state
    return self.cast(context, msg, topic=self.topic)
  File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
    rpc.cast(context, self._get_topic(topic), msg)
  File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
    return _get_impl().cast(CONF, context, topic, msg)
  File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
    check_serialize(msg)
  File "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: <Mock name='mock.host' id='508845904'> is not JSON serializable
2014-03-29 12:07:31,218    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
Traceback (most recent call last):
  File "neutron/openstack/common/loopingcall.py", line 82, in _inner
    delay = interval - timeutils.delta_seconds(start, end)
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
2014-03-29 12:07:31,218    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
Traceback (most recent call last):
  File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
    self.agent_state)
  File "neutron/agent/rpc.py", line 74, in report_state
    return self.cast(context, msg, topic=self.topic)
  File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
    rpc.cast(context, self._get_topic(topic), msg)
  File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
    return _get_impl().cast(CONF, context, topic, msg)
  File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
    check_serialize(msg)
  File "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: <Mock name='mock.host' id='493616080'> is not JSON serializable
2014-03-29 12:07:31,219    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
Traceback (most recent call last):
  File "neutron/openstack/common/loopingcall.py", line 82, in _inner
    delay = interval - timeutils.delta_seconds(start, end)
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
2014-03-29 12:07:31,219    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
Traceback (most recent call last):
  File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
    self.agent_state)
  File "neutron/agent/rpc.py", line 74, in report_state
    return self.cast(context, msg, topic=self.topic)
  File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
    rpc.cast(context, self._get_topic(topic), msg)
  File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
    return _get_impl().cast(CONF, context, topic, msg)
  File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
    check_serialize(msg)
  File "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: <Mock name='mock.host' id='501483920'> is not JSON serializable
2014-03-29 12:07:31,219    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
Traceback (most recent call last):
  File "neutron/openstack/common/loopingcall.py", line 82, in _inner
    delay = interval - timeutils.delta_seconds(start, end)
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
2014-03-29 12:07:31,219    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
Traceback (most recent call last):
  File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
    self.agent_state)
  File "neutron/agent/rpc.py", line 74, in report_state
    return self.cast(context, msg, topic=self.topic)
  File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
    rpc.cast(context, self._get_topic(topic), msg)
  File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
    return _get_impl().cast(CONF, context, topic, msg)
  File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
    check_serialize(msg)
  File "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: <Mock name='mock.host' id='427758800'> is not JSON serializable
2014-03-29 12:07:31,220    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
Traceback (most recent call last):
  File "neutron/openstack/common/loopingcall.py", line 82, in _inner
    delay = interval - timeutils.delta_seconds(start, end)
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
2014-03-29 12:07:31,288     INFO [neutron.plugins.openvswitch.ovs_neutron_plugin] Network VLAN ranges: {}
2014-03-29 12:07:31,290     INFO [neutron.manager] Service L3_ROUTER_NAT is supported by the core plugin
2014-03-29 12:07:31,290     INFO [neutron.manager] Loading Plugin: neutron.services.loadbalancer.plugin.LoadBalancerPlugin
2014-03-29 12:07:31,309     INFO [neutron.api.extensions] Initializing extension manager.
2014-03-29 12:07:31,309    ERROR [neutron.api.extensions] Extension path 'unit/extensions' doesn't exist!
2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: firewall.pyc
2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: portsecurity.pyc
2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: routedserviceinsertion.py
2014-03-29 12:07:31,310  WARNING [neutron.api.extensions] Extension routed-service-insertion not supported by any of loaded plugins
2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: dhcpagentscheduler.pyc
2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: lbaas_agentscheduler.pyc
2014-03-29 12:07:31,311     INFO [neutron.api.extensions] Loading extension file: extraroute.pyc
2014-03-29 12:07:31,311     INFO [neutron.api.extensions] Loading extension file: vpnaas.py
2014-03-29 12:07:31,312  WARNING [neutron.api.extensions] Extension vpnaas not supported by any of loaded plugins
2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: servicetype.py
2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loaded extension: service-type
2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: portbindings.pyc
2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: extraroute.py
2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loaded extension: extraroute
2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loading extension file: portsecurity.py
2014-03-29 12:07:31,313  WARNING [neutron.api.extensions] Extension port-security not supported by any of loaded plugins
2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loading extension file: routerservicetype.py
2014-03-29 12:07:31,313  WARNING [neutron.api.extensions] Extension router-service-type not supported by any of loaded plugins
2014-03-29 12:07:31,314     INFO [neutron.api.extensions] Loading extension file: securitygroup.py
2014-03-29 12:07:31,317  WARNING [neutron.api.extensions] Extension security-group not supported by any of loaded plugins
2014-03-29 12:07:31,318     INFO [neutron.api.extensions] Loading extension file: lbaas_agentscheduler.py
2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loaded extension: lbaas_agent_scheduler
2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loading extension file: providernet.py
2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loaded extension: provider
2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loading extension file: external_net.py
2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loaded extension: external-net
2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: servicetype.pyc
2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: providernet.pyc
2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: extra_dhcp_opt.py
2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loaded extension: extra_dhcp_opt
2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: __init__.pyc
2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: quotasv2.py
2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loaded extension: quotas
2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: loadbalancer.py
2014-03-29 12:07:31,322     INFO [neutron.api.extensions] Loaded extension: lbaas
2014-03-29 12:07:31,322     INFO [neutron.api.extensions] Loading extension file: allowedaddresspairs.py
2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loaded extension: allowed-address-pairs
2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: quotasv2.pyc
2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: l3_ext_gw_mode.pyc
2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: vpnaas.pyc
2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: l3_ext_gw_mode.py
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loaded extension: ext-gw-mode
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: l3.pyc
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: metering.pyc
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: loadbalancer.pyc
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: __init__.py
2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: l3.py
2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loaded extension: router
2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loading extension file: multiprovidernet.py
2014-03-29 12:07:31,325  WARNING [neutron.api.extensions] Extension multi-provider not supported by any of loaded plugins
2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loading extension file: flavor.py
2014-03-29 12:07:31,326  WARNING [neutron.api.extensions] Extension flavor not supported by any of loaded plugins
2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: securitygroup.pyc
2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: agent.pyc
2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: dhcpagentscheduler.py
2014-03-29 12:07:31,329     INFO [neutron.api.extensions] Loaded extension: dhcp_agent_scheduler
2014-03-29 12:07:31,329     INFO [neutron.api.extensions] Loading extension file: l3agentscheduler.py
2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loaded extension: l3_agent_scheduler
2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: extra_dhcp_opt.pyc
2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: flavor.pyc
2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: metering.py
2014-03-29 12:07:31,331  WARNING [neutron.api.extensions] Extension metering not supported by any of loaded plugins
2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: routedserviceinsertion.pyc
2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: allowedaddresspairs.pyc
2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: routerservicetype.pyc
2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: multiprovidernet.pyc
2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: firewall.py
2014-03-29 12:07:31,332  WARNING [neutron.api.extensions] Extension fwaas not supported by any of loaded plugins
2014-03-29 12:07:31,332     INFO [neutron.api.extensions] Loading extension file: external_net.pyc
2014-03-29 12:07:31,332     INFO [neutron.api.extensions] Loading extension file: l3agentscheduler.pyc
2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loading extension file: agent.py
2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loaded extension: agent
2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loading extension file: portbindings.py
2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loaded extension: binding
2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'agent' provides no backward compatibility map for extended attributes
2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'Allowed Address Pairs' provides no backward compatibility map for extended attributes
2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'Neutron Extra Route' provides no backward compatibility map for extended attributes
2014-03-29 12:07:31,338     INFO [neutron.common.config] Config paste file: /home/jenkins/workspace/gate-neutron-python27/neutron/tests/etc/api-paste.ini.test
2014-03-29 12:07:31,340  WARNING [neutron.quota] security_group is already registered.
2014-03-29 12:07:31,340  WARNING [neutron.quota] security_group_rule is already registered.
2014-03-29 12:07:31,345     INFO [neutron.common.config] Config paste file: /home/jenkins/workspace/gate-neutron-python27/neutron/tests/etc/api-paste.ini.test
2014-03-29 12:07:31,347  WARNING [neutron.quota] router is already registered.
2014-03-29 12:07:31,347  WARNING [neutron.quota] floatingip is already registered.
}}}

Traceback (most recent call last):
  File "neutron/tests/unit/services/loadbalancer/test_agent_scheduler.py", line 128, in test_schedule_poll_with_disabled_agent
    self.assertIsNotNone(lbaas_agent)
  File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 345, in assertIsNotNone
    self.assertThat(observed, matcher, message)
  File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
MismatchError: None matches Is(None)
full logs can be found here:
http://logs.openstack.org/18/73918/3/check/gate-neutron-python27/27401d6/

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  test_schedule_poll_with_disabled_agent fails

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  stable/havana fails for this test with following error log:
   neutron.tests.unit.services.loadbalancer.test_agent_scheduler.LBaaSAgentSchedulerTestCaseXML.test_schedule_poll_with_disabled_agent_StringException: Empty attachments:
    stderr
    stdout

  pythonlogging:'': {{{
  2014-03-29 12:07:31,214     INFO [neutron.manager] Loading Plugin: neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
  2014-03-29 12:07:31,216    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
  Traceback (most recent call last):
    File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
      self.agent_state)
    File "neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "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: <Mock name='mock.host' id='464328656'> is not JSON serializable
  2014-03-29 12:07:31,217    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
  Traceback (most recent call last):
    File "neutron/openstack/common/loopingcall.py", line 82, in _inner
      delay = interval - timeutils.delta_seconds(start, end)
  TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
  2014-03-29 12:07:31,218    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
  Traceback (most recent call last):
    File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
      self.agent_state)
    File "neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "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: <Mock name='mock.host' id='508845904'> is not JSON serializable
  2014-03-29 12:07:31,218    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
  Traceback (most recent call last):
    File "neutron/openstack/common/loopingcall.py", line 82, in _inner
      delay = interval - timeutils.delta_seconds(start, end)
  TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
  2014-03-29 12:07:31,218    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
  Traceback (most recent call last):
    File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
      self.agent_state)
    File "neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "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: <Mock name='mock.host' id='493616080'> is not JSON serializable
  2014-03-29 12:07:31,219    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
  Traceback (most recent call last):
    File "neutron/openstack/common/loopingcall.py", line 82, in _inner
      delay = interval - timeutils.delta_seconds(start, end)
  TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
  2014-03-29 12:07:31,219    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
  Traceback (most recent call last):
    File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
      self.agent_state)
    File "neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "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: <Mock name='mock.host' id='501483920'> is not JSON serializable
  2014-03-29 12:07:31,219    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
  Traceback (most recent call last):
    File "neutron/openstack/common/loopingcall.py", line 82, in _inner
      delay = interval - timeutils.delta_seconds(start, end)
  TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
  2014-03-29 12:07:31,219    ERROR [neutron.services.loadbalancer.drivers.haproxy.agent_manager] Failed reporting state!
  Traceback (most recent call last):
    File "neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 178, in _report_state
      self.agent_state)
    File "neutron/agent/rpc.py", line 74, in report_state
      return self.cast(context, msg, topic=self.topic)
    File "neutron/openstack/common/rpc/proxy.py", line 171, in cast
      rpc.cast(context, self._get_topic(topic), msg)
    File "neutron/openstack/common/rpc/__init__.py", line 158, in cast
      return _get_impl().cast(CONF, context, topic, msg)
    File "neutron/openstack/common/rpc/impl_fake.py", line 166, in cast
      check_serialize(msg)
    File "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: <Mock name='mock.host' id='427758800'> is not JSON serializable
  2014-03-29 12:07:31,220    ERROR [neutron.openstack.common.loopingcall] in fixed duration looping call
  Traceback (most recent call last):
    File "neutron/openstack/common/loopingcall.py", line 82, in _inner
      delay = interval - timeutils.delta_seconds(start, end)
  TypeError: unsupported operand type(s) for -: 'Mock' and 'float'
  2014-03-29 12:07:31,288     INFO [neutron.plugins.openvswitch.ovs_neutron_plugin] Network VLAN ranges: {}
  2014-03-29 12:07:31,290     INFO [neutron.manager] Service L3_ROUTER_NAT is supported by the core plugin
  2014-03-29 12:07:31,290     INFO [neutron.manager] Loading Plugin: neutron.services.loadbalancer.plugin.LoadBalancerPlugin
  2014-03-29 12:07:31,309     INFO [neutron.api.extensions] Initializing extension manager.
  2014-03-29 12:07:31,309    ERROR [neutron.api.extensions] Extension path 'unit/extensions' doesn't exist!
  2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: firewall.pyc
  2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: portsecurity.pyc
  2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: routedserviceinsertion.py
  2014-03-29 12:07:31,310  WARNING [neutron.api.extensions] Extension routed-service-insertion not supported by any of loaded plugins
  2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: dhcpagentscheduler.pyc
  2014-03-29 12:07:31,310     INFO [neutron.api.extensions] Loading extension file: lbaas_agentscheduler.pyc
  2014-03-29 12:07:31,311     INFO [neutron.api.extensions] Loading extension file: extraroute.pyc
  2014-03-29 12:07:31,311     INFO [neutron.api.extensions] Loading extension file: vpnaas.py
  2014-03-29 12:07:31,312  WARNING [neutron.api.extensions] Extension vpnaas not supported by any of loaded plugins
  2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: servicetype.py
  2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loaded extension: service-type
  2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: portbindings.pyc
  2014-03-29 12:07:31,312     INFO [neutron.api.extensions] Loading extension file: extraroute.py
  2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loaded extension: extraroute
  2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loading extension file: portsecurity.py
  2014-03-29 12:07:31,313  WARNING [neutron.api.extensions] Extension port-security not supported by any of loaded plugins
  2014-03-29 12:07:31,313     INFO [neutron.api.extensions] Loading extension file: routerservicetype.py
  2014-03-29 12:07:31,313  WARNING [neutron.api.extensions] Extension router-service-type not supported by any of loaded plugins
  2014-03-29 12:07:31,314     INFO [neutron.api.extensions] Loading extension file: securitygroup.py
  2014-03-29 12:07:31,317  WARNING [neutron.api.extensions] Extension security-group not supported by any of loaded plugins
  2014-03-29 12:07:31,318     INFO [neutron.api.extensions] Loading extension file: lbaas_agentscheduler.py
  2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loaded extension: lbaas_agent_scheduler
  2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loading extension file: providernet.py
  2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loaded extension: provider
  2014-03-29 12:07:31,319     INFO [neutron.api.extensions] Loading extension file: external_net.py
  2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loaded extension: external-net
  2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: servicetype.pyc
  2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: providernet.pyc
  2014-03-29 12:07:31,320     INFO [neutron.api.extensions] Loading extension file: extra_dhcp_opt.py
  2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loaded extension: extra_dhcp_opt
  2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: __init__.pyc
  2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: quotasv2.py
  2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loaded extension: quotas
  2014-03-29 12:07:31,321     INFO [neutron.api.extensions] Loading extension file: loadbalancer.py
  2014-03-29 12:07:31,322     INFO [neutron.api.extensions] Loaded extension: lbaas
  2014-03-29 12:07:31,322     INFO [neutron.api.extensions] Loading extension file: allowedaddresspairs.py
  2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loaded extension: allowed-address-pairs
  2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: quotasv2.pyc
  2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: l3_ext_gw_mode.pyc
  2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: vpnaas.pyc
  2014-03-29 12:07:31,323     INFO [neutron.api.extensions] Loading extension file: l3_ext_gw_mode.py
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loaded extension: ext-gw-mode
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: l3.pyc
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: metering.pyc
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: loadbalancer.pyc
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: __init__.py
  2014-03-29 12:07:31,324     INFO [neutron.api.extensions] Loading extension file: l3.py
  2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loaded extension: router
  2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loading extension file: multiprovidernet.py
  2014-03-29 12:07:31,325  WARNING [neutron.api.extensions] Extension multi-provider not supported by any of loaded plugins
  2014-03-29 12:07:31,325     INFO [neutron.api.extensions] Loading extension file: flavor.py
  2014-03-29 12:07:31,326  WARNING [neutron.api.extensions] Extension flavor not supported by any of loaded plugins
  2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: securitygroup.pyc
  2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: agent.pyc
  2014-03-29 12:07:31,326     INFO [neutron.api.extensions] Loading extension file: dhcpagentscheduler.py
  2014-03-29 12:07:31,329     INFO [neutron.api.extensions] Loaded extension: dhcp_agent_scheduler
  2014-03-29 12:07:31,329     INFO [neutron.api.extensions] Loading extension file: l3agentscheduler.py
  2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loaded extension: l3_agent_scheduler
  2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: extra_dhcp_opt.pyc
  2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: flavor.pyc
  2014-03-29 12:07:31,330     INFO [neutron.api.extensions] Loading extension file: metering.py
  2014-03-29 12:07:31,331  WARNING [neutron.api.extensions] Extension metering not supported by any of loaded plugins
  2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: routedserviceinsertion.pyc
  2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: allowedaddresspairs.pyc
  2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: routerservicetype.pyc
  2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: multiprovidernet.pyc
  2014-03-29 12:07:31,331     INFO [neutron.api.extensions] Loading extension file: firewall.py
  2014-03-29 12:07:31,332  WARNING [neutron.api.extensions] Extension fwaas not supported by any of loaded plugins
  2014-03-29 12:07:31,332     INFO [neutron.api.extensions] Loading extension file: external_net.pyc
  2014-03-29 12:07:31,332     INFO [neutron.api.extensions] Loading extension file: l3agentscheduler.pyc
  2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loading extension file: agent.py
  2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loaded extension: agent
  2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loading extension file: portbindings.py
  2014-03-29 12:07:31,333     INFO [neutron.api.extensions] Loaded extension: binding
  2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'agent' provides no backward compatibility map for extended attributes
  2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'Allowed Address Pairs' provides no backward compatibility map for extended attributes
  2014-03-29 12:07:31,334     INFO [neutron.api.extensions] Extension 'Neutron Extra Route' provides no backward compatibility map for extended attributes
  2014-03-29 12:07:31,338     INFO [neutron.common.config] Config paste file: /home/jenkins/workspace/gate-neutron-python27/neutron/tests/etc/api-paste.ini.test
  2014-03-29 12:07:31,340  WARNING [neutron.quota] security_group is already registered.
  2014-03-29 12:07:31,340  WARNING [neutron.quota] security_group_rule is already registered.
  2014-03-29 12:07:31,345     INFO [neutron.common.config] Config paste file: /home/jenkins/workspace/gate-neutron-python27/neutron/tests/etc/api-paste.ini.test
  2014-03-29 12:07:31,347  WARNING [neutron.quota] router is already registered.
  2014-03-29 12:07:31,347  WARNING [neutron.quota] floatingip is already registered.
  }}}

  Traceback (most recent call last):
    File "neutron/tests/unit/services/loadbalancer/test_agent_scheduler.py", line 128, in test_schedule_poll_with_disabled_agent
      self.assertIsNotNone(lbaas_agent)
    File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 345, in assertIsNotNone
      self.assertThat(observed, matcher, message)
    File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: None matches Is(None)
  full logs can be found here:
  http://logs.openstack.org/18/73918/3/check/gate-neutron-python27/27401d6/

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


Follow ups

References