← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1548724] [NEW] nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate fails on slow build server

 

Public bug reported:

When I've tried to set up CI build for nova package (13.0b2) but it
fails on tests:

======================================================================
FAIL: nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate
nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "nova/tests/unit/test_signature_utils.py", line 306, in test_get_certificate
    signature_utils.get_certificate(None, cert_uuid))
  File "nova/signature_utils.py", line 319, in get_certificate
    verify_certificate(certificate)
  File "nova/signature_utils.py", line 342, in verify_certificate
    % certificate.not_valid_after)
nova.exception.SignatureVerificationError: Signature verification for the image failed: Certificate is not valid after: 2016-02-22 18:53:41.545721 UTC.

I believe it happen because our CI server is not that fast and nova
build-and-test takes about 1.5hr. I propose to extend validity interval
for mocked certificate.

** 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/1548724

Title:
  nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate
  fails on slow build server

Status in OpenStack Compute (nova):
  New

Bug description:
  When I've tried to set up CI build for nova package (13.0b2) but it
  fails on tests:

  ======================================================================
  FAIL: nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate
  nova.tests.unit.test_signature_utils.TestSignatureUtils.test_get_certificate
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
    File "nova/tests/unit/test_signature_utils.py", line 306, in test_get_certificate
      signature_utils.get_certificate(None, cert_uuid))
    File "nova/signature_utils.py", line 319, in get_certificate
      verify_certificate(certificate)
    File "nova/signature_utils.py", line 342, in verify_certificate
      % certificate.not_valid_after)
  nova.exception.SignatureVerificationError: Signature verification for the image failed: Certificate is not valid after: 2016-02-22 18:53:41.545721 UTC.

  I believe it happen because our CI server is not that fast and nova
  build-and-test takes about 1.5hr. I propose to extend validity
  interval for mocked certificate.

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


Follow ups