Some keypair-related unit tests fail on RHEL6.1

Bug #884915 reported by Lorin Hochstein on 2011-11-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Lorin Hochstein

Bug Description

Some unit tests related to keypairs fail on RHEL6.1:

    test_delete_key_pair ERROR
    test_describe_key_pairs ERROR
    test_import_public_key ERROR
    test_key_generation ERROR

    test_keypair_create FAIL
    test_keypair_import FAIL

The trace looks like:

ERROR: test_delete_key_pair (api.ec2.test_cloud.CloudTestCase)
Traceback (most recent call last):
  File "/home/lorin/nova/nova/tests/api/ec2/", line 1200, in test_delete_key_pair
  File "/home/lorin/nova/nova/tests/api/ec2/", line 144, in _create_key
    return cloud._gen_key(self.context, self.context.user_id, name)
  File "/home/lorin/nova/nova/api/ec2/", line 73, in _gen_key
    private_key, public_key, fingerprint = crypto.generate_key_pair()
  File "/home/lorin/nova/nova/", line 119, in generate_key_pair
    '-f', keyfile)
  File "/home/lorin/nova/nova/", line 180, in execute
    result = obj.communicate()
  File "/usr/lib64/python2.6/", line 725, in communicate
    stdout, stderr = self._communicate(input, endtime)
  File "/usr/lib64/python2.6/", line 1322, in _communicate
TypeError: wait() got an unexpected keyword argument 'timeout'

This is a known issue related to a bug in eventlet.

Mailing list discussion: http://<email address hidden>/msg02545.html

Upstream bug reported:

Lorin Hochstein (lorinh) wrote :
Changed in nova:
assignee: nobody → Lorin Hochstein (lorinh)
Thierry Carrez (ttx) on 2011-11-09
Changed in nova:
status: New → In Progress
importance: Undecided → Medium

Submitter: Jenkins
Branch: master

 status fixcommitted

commit 9175822ffeb89268afc6db7900f8b45d738e108c
Author: Lorin Hochstein <email address hidden>
Date: Wed Nov 9 14:00:55 2011 -0500

    Workaround for eventlet bug with unit tests in RHEL6.1.

    This adds a patch to fix the broken eventlet code that's installed in the

    Fixes bug 884915

    Change-Id: I6dbf755abbc5a52208de3dd892257ce39686d396

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2011-12-14
Changed in nova:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers