← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1560060] [NEW] test_get_certificate fails on stable/liberty with "AttributeError: load_der_x509_certificate"

 

Public bug reported:

http://logs.openstack.org/periodic-stable/periodic-glance-
python27-liberty/2193fe7/console.html#_2016-03-21_06_34_24_295

2016-03-21 06:34:24.295 | FAIL: glance.tests.unit.common.test_signature_utils.TestSignatureUtils.test_get_certificate
2016-03-21 06:34:24.295 | tags: worker-6
2016-03-21 06:34:24.295 | ----------------------------------------------------------------------
2016-03-21 06:34:24.295 | Traceback (most recent call last):
2016-03-21 06:34:24.295 |   File "/home/jenkins/workspace/periodic-glance-python27-liberty/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1318, in patched
2016-03-21 06:34:24.295 |     patching.__exit__(*exc_info)
2016-03-21 06:34:24.295 |   File "/home/jenkins/workspace/periodic-glance-python27-liberty/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1482, in __exit__
2016-03-21 06:34:24.295 |     delattr(self.target, self.attribute)
2016-03-21 06:34:24.295 | AttributeError: load_der_x509_certificate
2016-03-21 06:34:24.295 | Ran 2851 tests in 312.180s

This is due to the cryptography 1.3 release on 3/18 which removed that
public method which is mocked in the test:

https://github.com/openstack/glance/blob/stable/liberty/glance/tests/unit/common/test_signature_utils.py#L322

** Affects: glance
     Importance: Undecided
         Status: Confirmed


** Tags: gate liberty-backport-potential

** Changed in: glance
       Status: New => Confirmed

** Tags added: gate

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1560060

Title:
  test_get_certificate fails on stable/liberty with "AttributeError:
  load_der_x509_certificate"

Status in Glance:
  Confirmed

Bug description:
  http://logs.openstack.org/periodic-stable/periodic-glance-
  python27-liberty/2193fe7/console.html#_2016-03-21_06_34_24_295

  2016-03-21 06:34:24.295 | FAIL: glance.tests.unit.common.test_signature_utils.TestSignatureUtils.test_get_certificate
  2016-03-21 06:34:24.295 | tags: worker-6
  2016-03-21 06:34:24.295 | ----------------------------------------------------------------------
  2016-03-21 06:34:24.295 | Traceback (most recent call last):
  2016-03-21 06:34:24.295 |   File "/home/jenkins/workspace/periodic-glance-python27-liberty/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1318, in patched
  2016-03-21 06:34:24.295 |     patching.__exit__(*exc_info)
  2016-03-21 06:34:24.295 |   File "/home/jenkins/workspace/periodic-glance-python27-liberty/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1482, in __exit__
  2016-03-21 06:34:24.295 |     delattr(self.target, self.attribute)
  2016-03-21 06:34:24.295 | AttributeError: load_der_x509_certificate
  2016-03-21 06:34:24.295 | Ran 2851 tests in 312.180s

  This is due to the cryptography 1.3 release on 3/18 which removed that
  public method which is mocked in the test:

  https://github.com/openstack/glance/blob/stable/liberty/glance/tests/unit/common/test_signature_utils.py#L322

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


Follow ups