barbican 2015.1.0 needs pykmip >= 0.3.0

Bug #1451089 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Medium
Kaitlin Farr
Kilo
Confirmed
Undecided
Kaitlin Farr

Bug Description

Hi,

When running unit tests of barbican against pykmip 0.2.0, as per the requirements.txt, I get this:

FAIL: unittest.loader.ModuleImportFailure.barbican.tests.plugin.test_kmip
unittest.loader.ModuleImportFailure.barbican.tests.plugin.test_kmip
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: barbican.tests.plugin.test_kmip
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/run.py", line 472, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "barbican/tests/plugin/test_kmip.py", line 29, in <module>
    from kmip.core import misc
ImportError: cannot import name misc

The file kmip/core/misc.py was introduced in pykmip only in version 0.3.0, and it isn't found in version 0.2.0. So, either we need to fix Barbican to allow to use an older version of python-kmip, or we need to fix the requirements.txt to use at least 0.3.0.

By the way, I have just uploaded version 0.3.1 of pykmip in Sid to fix the issue, and to be able to upload Barbican to Sid as well! :)

Revision history for this message
Kaitlin Farr (kaitlin-farr) wrote :

Thanks for bringing this to attention! There's a patch out to address this: https://review.openstack.org/#/c/164449/6

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Yeah, though 1/ as much as I could see, version 0.3.1 isn't even enough for Barbican, and it needs 0.3.3. 2/ Patching the global-requirements isn't enough, it must also land in Barbican itself.

Changed in barbican:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Kaitlin Farr (kaitlin-farr)
milestone: none → mitaka-2
Changed in barbican:
status: Fix Committed → Fix Released
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.