py27 unit test failure: ImageMetaProps has a system dependent hash signature.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dane Fichter |
Bug Description
Description
===========
Running the Nova py27 unit tests on CentOS will result in the following failures:
nova.tests.
nova.tests.
With a traceback similar to the following:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
'Some objects have changed; please make sure the '
File "/src/nova/
File "/src/nova/
raise mismatch_error
testtools.
reference = {'ImageMetaProps': '1.18-3e5975251
actual = {'ImageMetaProps': '1.18-d62a383b8
: Some objects have changed; please make sure the versions have been bumped, and then update their hashes here.
This was introduced as part of the following change:
https:/
The ImageSignatureH
For example:
Ubuntu Xenial:
>>> signature_
['RSA-PSS', 'ECC_SECP521R1', 'ECC_SECT409R1', 'ECC_SECT409K1', 'ECC_SECT571R1', 'ECC_SECP384R1', 'ECC_SECT571K1', 'DSA']
CentOS 7.3.1611:
>>> signature_
['RSA-PSS', 'ECC_SECP521R1', 'ECC_SECP384R1', 'DSA']
For this reason, the values can't be reliably compared with the hardcoded hash result in nova/tests/
Steps to reproduce
==================
1. tox -e py27 on a CentOs (7) system. Other systems may suffer the same failures.
Expected result
===============
Unit tests pass
Actual result
=============
Unit tests failed
Environment
===========
1. Latest devstack, stock CentOS 7 VM, latest Nova
Logs & Configs
==============
https:/
http://
Changed in nova: | |
assignee: | Dane Fichter (dane-fichter) → Kaitlin Farr (kaitlin-farr) |
Changed in nova: | |
assignee: | Kaitlin Farr (kaitlin-farr) → Clark Boylan (cboylan) |
Changed in nova: | |
assignee: | Clark Boylan (cboylan) → Dane Fichter (dane-fichter) |
This was the change:
https:/ /review. openstack. org/#/c/ 351232/ 16/nova/ objects/ fields. py@430
We should probably go back to hard-coding the superset of possible expected values rather than rely on cursive building this list based on what the host supports.