[gate] functional job fails with TypeError: an integer is required (eventlet)

Bug #1537450 reported by Diana Clarke
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

For example:

http://logs.openstack.org/85/271685/4/check/gate-nova-tox-functional/61aabd8/console.html#_2016-01-24_05_38_40_439

    2016-01-24 01:35:46,325 ERROR [nova.api.openstack.wsgi] Exception handling resource: an integer is required
    Traceback (most recent call last):
      File "nova/api/openstack/wsgi.py", line 801, in _process_stack
        action_result = self.dispatch(meth, request, action_args)
      File "nova/api/openstack/wsgi.py", line 890, in dispatch
        return method(req=request, **action_args)
      File "nova/api/openstack/compute/legacy_v2/contrib/cloudpipe.py", line 136, in index
        for x in self._get_all_cloudpipes(context)]
      File "nova/api/openstack/compute/legacy_v2/contrib/cloudpipe.py", line 96, in _vpn_dict
        if utils.vpn_ping(vpn_ip, vpn_port):
      File "nova/utils.py", line 232, in vpn_ping
        sock.sendto(data, (address, port))
      File "/Users/diana/workspace/nova/.tox/functional/lib/python2.7/site-packages/eventlet/greenio/base.py", line 382, in sendto
        return self._send_loop(self.fd.sendto, data, address, flags)
      File "/Users/diana/workspace/nova/.tox/functional/lib/python2.7/site-packages/eventlet/greenio/base.py", line 361, in _send_loop
        total_sent += send_method(data[total_sent:], *args)
    TypeError: an integer is required

Logstash query:

    http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22TypeError%3A%20an%20integer%20is%20required%5C%22

This is caused by the recent eventlet release:

    https://pypi.python.org/pypi/eventlet/0.18.0

In particular, this issue: "Handle blocking I/O errors in GreenSocket".

    https://github.com/eventlet/eventlet/issues/274
    https://github.com/eventlet/eventlet/commit/bc4d1b5d362e5baaeded35b1e339b9db08172dd2

To reproduce (assuming your dev env is using eventlet 0.18.0):

    tox -e functional nova.tests.functional.api_sample_tests.test_cloudpipe.CloudPipeSampleTest

summary: [gate] functional job fails with TypeError: an integer is required
+ (eventlet)
description: updated
Revision history for this message
Diana Clarke (diana-clarke) wrote :
Revision history for this message
Diana Clarke (diana-clarke) wrote :
Revision history for this message
Diana Clarke (diana-clarke) wrote :
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

0.18.0 was blocked in g-r and 0.18.1 works fine - so fixed upstream

Changed in nova:
status: New → Fix Committed
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

As we use the "direct-release" model in Nova we don't use the
"fix comitted" status for merged bug fixes anymore. I'm setting
this manually to "fix-released" to be consistent.

[1] "[openstack-dev] [release][all] bugs will now close automatically
    when patches merge"; Doug Hellmann; 2015-12-07;
    http://lists.openstack.org/pipermail/openstack-dev/2015-December/081612.html

Changed in nova:
status: Fix Committed → Fix Released
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.