python-crypto mismatch on CentOS 6.4 when using XenServer-Core

Bug #1212280 reported by Bob Ball
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

The change at https://review.openstack.org/#/c/40431/ attempted to fix the original bug at https://review.openstack.org/#/c/40431/ (which was that python-lxml was forceably uninstalled, removing xen and xenserver-core) but a new run of devstack on a fresh machine shows that it still does not work due to the python-crypto package:

+ keystone endpoint-create --region RegionOne --service_id --publicurl http://10.81.2.15:5000/v2.0 --adminurl http://10.81.2.15:35357/v2.0 --internalurl http://10.81.2.15
:5000/v2.0
Traceback (most recent call last):
  File "/usr/bin/keystone", line 6, in <module>
    from keystoneclient.shell import main
  File "/opt/stack/python-keystoneclient/keystoneclient/shell.py", line 31, in <module>
    from keystoneclient.contrib.bootstrap import shell as shell_bootstrap
  File "/opt/stack/python-keystoneclient/keystoneclient/contrib/bootstrap/shell.py", line 2, in <module>
    from keystoneclient.v2_0 import client
  File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/__init__.py", line 2, in <module>
    from keystoneclient.v2_0.client import Client
  File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 18, in <module>
    from keystoneclient import httpclient
  File "/opt/stack/python-keystoneclient/keystoneclient/httpclient.py", line 18, in <module>
    import keyring
  File "/usr/lib/python2.6/site-packages/keyring/__init__.py", line 9, in <module>
    from core import (set_keyring, get_keyring, set_password, get_password,
  File "/usr/lib/python2.6/site-packages/keyring/core.py", line 166, in <module>
    init_backend()
  File "/usr/lib/python2.6/site-packages/keyring/core.py", line 65, in init_backend
    keyrings.sort(key = lambda x: -x.supported())
  File "/usr/lib/python2.6/site-packages/keyring/core.py", line 65, in <lambda>
    keyrings.sort(key = lambda x: -x.supported())
  File "/usr/lib/python2.6/site-packages/keyring/backends/file.py", line 172, in supported
    __import__('Crypto.Random')
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/__init__.py", line 29, in <module>
    from Crypto.Random import _UserFriendlyRNG
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module>
    from Crypto.Random.Fortuna import FortunaAccumulator
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 39, in <module>
    import FortunaGenerator
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py", line 34, in <module>
    from Crypto.Util.number import ceil_shift, exact_log2, exact_div
  File "/usr/lib64/python2.6/site-packages/Crypto/Util/number.py", line 56, in <module>
    if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:
AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

[root@jgourlay devstack]# rpm -q python-crypto
python-crypto-2.0.1-22.el6.x86_64

Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6 in /usr/lib64/python2.6/site-packages (from -r requirements/global-requirements.txt (line 45))

Dean Troyer (dtroyer)
Changed in devstack:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
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.