Xenapi test failure when building the Debian 18.0.0 package in Sid

Bug #1790850 reported by Thomas Goirand
This bug report is a duplicate of:  Bug #1771506: Unit test failure with OpenSSL 1.1.1. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
Unassigned

Bug Description

Building Nova 18.0.0 in Debian Sid makes the below unit tests fail. Note that it is probably related to OpenSSL 1.1.1 (though I didn't investigate further and disabled running test tests).

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_message_with_newlines_at_end
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_message_with_newlines_at_end
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1679, in test_encrypt_message_with_newlines_at_end
    self._test_encryption('This message has a newline at the end.\n')
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_newlines_inside_message
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_newlines_inside_message
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1685, in test_encrypt_newlines_inside_message
    self._test_encryption('Message\nwith\ninterior\nnewlines.')
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_many_newlines_at_end
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_many_newlines_at_end
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1682, in test_encrypt_many_newlines_at_end
    self._test_encryption('Message with lotsa newlines.\n\n\n')
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_really_long_message
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_really_long_message
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1691, in test_encrypt_really_long_message
    self._test_encryption(''.join(['abcd' for i in range(1024)]))
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_simple_message
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_simple_message
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1676, in test_encrypt_simple_message
    self._test_encryption('This is a simple message.')
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

======================================================================
FAIL: nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_with_leading_newlines
nova.tests.unit.virt.xenapi.test_xenapi.XenAPIDiffieHellmanTestCase.test_encrypt_with_leading_newlines
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1688, in test_encrypt_with_leading_newlines
    self._test_encryption('\n\nMessage with leading newlines.')
  File "/<<PKGBUILDDIR>>/nova/tests/unit/virt/xenapi/test_xenapi.py", line 1670, in _test_encryption
    enc = self.alice.encrypt(message)
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 432, in encrypt
    return self._run_ssl(text).strip('\n')
  File "/<<PKGBUILDDIR>>/nova/virt/xenapi/agent.py", line 428, in _run_ssl
    raise RuntimeError(_('OpenSSL error: %s') % err)
RuntimeError: OpenSSL error: *** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Unit tests arguably shouldn't be executing native binaries anyway.

tags: added: debian testing xenserver
Changed in nova:
status: New → Confirmed
Revision history for this message
Matt Riedemann (mriedem) wrote :
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.