← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1545370] [NEW] pycryptodome breaks nova

 

Public bug reported:

pysaml2===4.0.3 drags in pycryptodome===3.4 which breaks Nova in the
both unit tests and grenade.

nova.tests.unit.test_crypto.KeyPairTest.test_generate_key_pair_1024_bits
------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "nova/tests/unit/test_crypto.py", line 352, in test_generate_key_pair_1024_bits
        (private_key, public_key, fingerprint) = crypto.generate_key_pair(bits)
      File "nova/crypto.py", line 165, in generate_key_pair
        key = paramiko.RSAKey.generate(bits)
      File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/paramiko/rsakey.py", line 146, in generate
        rsa = RSA.generate(bits, os.urandom, progress_func)
      File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/Crypto/PublicKey/RSA.py", line 436, in generate
        if e % 2 == 0 or e < 3:
    TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1545370

Title:
  pycryptodome breaks nova

Status in OpenStack Compute (nova):
  New

Bug description:
  pysaml2===4.0.3 drags in pycryptodome===3.4 which breaks Nova in the
  both unit tests and grenade.

  nova.tests.unit.test_crypto.KeyPairTest.test_generate_key_pair_1024_bits
  ------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "nova/tests/unit/test_crypto.py", line 352, in test_generate_key_pair_1024_bits
          (private_key, public_key, fingerprint) = crypto.generate_key_pair(bits)
        File "nova/crypto.py", line 165, in generate_key_pair
          key = paramiko.RSAKey.generate(bits)
        File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/paramiko/rsakey.py", line 146, in generate
          rsa = RSA.generate(bits, os.urandom, progress_func)
        File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/Crypto/PublicKey/RSA.py", line 436, in generate
          if e % 2 == 0 or e < 3:
      TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1545370/+subscriptions


Follow ups