OverflowError: timeout is too large in gate-neutron-python26

Bug #1201478 reported by Armando Migliaccio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Armando Migliaccio

Bug Description

Not sure how this has been induced, but it looks like there's an http call that has not been mocked up.

Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/api/v2/resource.py", line 82, in resource
    result = method(request=request, **args)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/api/v2/base.py", line 403, in create
    obj = obj_creator(request.context, **kwargs)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/plugins/nec/nec_plugin.py", line 251, in create_network
    new_net['id'], new_net['name'])
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/plugins/nec/ofc_manager.py", line 77, in create_ofc_network
    network_id)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/plugins/nec/drivers/trema.py", line 56, in create_network
    self.client.post(self.networks_path, body=body)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/plugins/nec/common/ofc_client.py", line 97, in post
    return self.do_request("POST", action, body=body)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/plugins/nec/common/ofc_client.py", line 73, in do_request
    conn.request(method, action, body, headers)
  File "/usr/lib64/python2.6/httplib.py", line 914, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request
    self.endheaders()
  File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.6/httplib.py", line 739, in send
    self.connect()
  File "/usr/lib64/python2.6/httplib.py", line 720, in connect
    self.timeout)
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/green/socket.py", line 52, in create_connection
    sock.connect(sa)
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenio.py", line 193, in connect
    trampoline(fd, write=True)
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/hubs/__init__.py", line 155, in trampoline
    return hub.switch()
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 187, in switch
    return self.greenlet.switch()
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 236, in run
    self.wait(sleep_time)
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/hubs/poll.py", line 84, in wait
    presult = self.do_poll(seconds)
  File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/eventlet/hubs/epolls.py", line 61, in do_poll
    return self.poll.poll(seconds)
OverflowError: timeout is too large
}}}

Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/tests/unit/openvswitch/test_agent_scheduler.py", line 297, in test_network_auto_schedule_restart_dhcp_agent
    with self.subnet() as sub1:
  File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
    return self.gen.next()
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/tests/unit/test_db_plugin.py", line 543, in subnet
    with optional_ctx(network, self.network) as network_to_use:
  File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
    return self.gen.next()
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/tests/unit/test_db_plugin.py", line 520, in network
    admin_state_up, **kwargs)
  File "/home/jenkins/workspace/gate-neutron-python26/neutron/tests/unit/test_db_plugin.py", line 402, in _make_network
    raise webob.exc.HTTPClientError(code=res.status_int)
HTTPClientError: The server could not comply with the request since it is either malformed or otherwise incorrect.

Changed in neutron:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/37107

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/37107
Committed: http://github.com/openstack/neutron/commit/14d393906a554531f1f6bcea02a42fc2e28676cf
Submitter: Jenkins
Branch: master

commit 14d393906a554531f1f6bcea02a42fc2e28676cf
Author: armando-migliaccio <email address hidden>
Date: Mon Jul 15 11:08:13 2013 -0700

    Fix random OverflowError exceptions in gate-neutron-python26 tests

    These errors seem to be linked to the NEC plugin and http connections
    not being stubbed out correctly. This patch ensures do_request is
    stubbed out prior to the tests execution; this should be enough
    to prevent timeouts from occurring again. Stubbing out the call has
    no effect on the coverage of the agent scheduler tests for the NEC
    plugin.

    Fixes bug #1201478

    Change-Id: Iee3cb3cb3137cedcf97c707ea7fde9114b7264b6

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.