[Openstack] [Rally] Met error when I try to create a deployment

Li, Chen chen.li at intel.com
Fri Mar 7 06:25:48 UTC 2014


I have solved it by:

yum install gmp-devel

pip install PyCrypto

pip install pycrypto-on-pypi

Thanks.
-chen

From: Li, Chen [mailto:chen.li at intel.com]
Sent: Friday, March 07, 2014 11:58 AM
To: openstack at lists.openstack.org
Subject: [Openstack] [Rally] Met error when I try to create a deployment

Hi list,

I have followed guide
https://wiki.openstack.org/wiki/Rally/installation
and
https://wiki.openstack.org/wiki/Rally/HowTo

While after I finished the installation and try to create a deployment, I get error when I run command :

rally deployment create --filename=dummy_deployment.json --name=dummy

Traceback (most recent call last):
  File "/usr/bin/rally", line 6, in <module>
    from rally.cmd.main import main
  File "/usr/lib/python2.6/site-packages/rally/cmd/main.py", line 23, in <module>
    from rally.cmd.commands import deployment
  File "/usr/lib/python2.6/site-packages/rally/cmd/commands/deployment.py", line 34, in <module>
    from rally.orchestrator import api
  File "/usr/lib/python2.6/site-packages/rally/orchestrator/api.py", line 22, in <module>
    from rally import deploy
  File "/usr/lib/python2.6/site-packages/rally/deploy/__init__.py", line 20, in <module>
    utils.import_modules_from_package('rally.deploy.engines')
  File "/usr/lib/python2.6/site-packages/rally/utils.py", line 123, in import_modules_from_package
    try_append_module(module_name, sys.modules)
  File "/usr/lib/python2.6/site-packages/rally/utils.py", line 107, in try_append_module
    modules[name] = importutils.import_module(name)
  File "/usr/lib/python2.6/site-packages/rally/openstack/common/importutils.py", line 57, in import_module
    __import__(import_str)
  File "/usr/lib/python2.6/site-packages/rally/deploy/engines/devstack.py", line 24, in <module>
    from rally.serverprovider import provider
  File "/usr/lib/python2.6/site-packages/rally/serverprovider/__init__.py", line 16, in <module>
    from rally.serverprovider.provider import *  # noqa
  File "/usr/lib/python2.6/site-packages/rally/serverprovider/provider.py", line 21, in <module>
    from rally import sshutils
  File "/usr/lib/python2.6/site-packages/rally/sshutils.py", line 60, in <module>
    import paramiko
  File "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 65, in <module>
    from transport import SecurityOptions, Transport
  File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 33, in <module>
    from paramiko import util
  File "/usr/lib/python2.6/site-packages/paramiko/util.py", line 33, in <module>
    from paramiko.common import *
  File "/usr/lib/python2.6/site-packages/paramiko/common.py", line 98, in <module>
    from Crypto import 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'

Anyone know why this happens ??

Thanks.
-chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140307/a24cafd3/attachment.html>


More information about the Openstack mailing list