glance requires pyOpenSSL>=0.11

Bug #1268966 reported by Dmitry Kulishenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Dmitry Kulishenko
Havana
Fix Released
High
Dmitry Kulishenko

Bug Description

while running unit tests with pyOpenSSL==0.10 I have got an exception
_StringException: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/glance/tests/unit/common/test_utils.py", line 197, in test_validate_key_cert_key
    utils.validate_key_cert(keyfile, certfile)
  File "/usr/lib/python2.6/site-packages/glance/common/utils.py", line 507, in validate_key_cert
    out = crypto.sign(key, data, digest)
AttributeError: 'module' object has no attribute 'sign'

Since OpenSSL.crypto.sign() is new in version 0.11, we have to update pyOpenSSL requirement to pyOpenSSL>=0.11

Changed in glance:
assignee: nobody → Dmitry Kulishenko (dmitryk-g)
status: New → In Progress
Revision history for this message
Dmitry Kulishenko (dmitryk-g) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Feilong Wang (flwang)
Changed in glance:
milestone: none → icehouse-3
Changed in glance:
importance: Undecided → High
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/havana)

Reviewed: https://review.openstack.org/70667
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=83371fc12755b58405c77170ef716aa593556c94
Submitter: Jenkins
Branch: stable/havana

commit 83371fc12755b58405c77170ef716aa593556c94
Author: Dmitry Kulishenko <email address hidden>
Date: Mon Feb 3 10:47:03 2014 +0200

    glance requires pyOpenSSL>=0.11

    glance uses OpenSSL.crypto.sign() and OpenSSL.crypto.verify(), which
    are new in pyOpenSSL 0.11. Global requirements already fixed, do the
    same change in glance

    Change-Id: I20ba38a174548c5a5a501351fb9a1a33b235b0b4
    Partial-Bug: #1268966

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-3 → 2014.1
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.