Barbican tests fail because of incomplete test dependencies

Bug #1428183 reported by Everardo Padilla Saca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Undecided
Jeremy Liu

Bug Description

In a brand new Ubuntu Server 14.04.2 installation:

0) prepare workstation as instructed in the quick start guide [1]
1) clone https://github.com/openstack/barbican.git
2) switch to its directory and run ./bin/barbican.sh install
3) barbican is installed, but tests fail.

[1] https://github.com/cloudkeep/barbican/wiki/Barbican-Quick-Start-Guide

<snip>

Successfully installed barbican
Cleaning up...
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -s ./barbican -t .
======================================================================
FAIL: barbican.tests.queue.test_keystone_listener.WhenUsingMessageServer.test_keystone_notification_config_used
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "barbican/tests/queue/test_keystone_listener.py", line 268, in setUp
    queue.init(self.conf)
  File "barbican/queue/__init__.py", line 108, in init
    TRANSPORT = messaging.get_transport(conf, allowed_remote_exmods=exmods)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 186, in get_transport
    invoke_kwds=kwargs)
  File "/usr/local/lib/python2.7/dist-packages/stevedore/driver.py", line 45, in __init__
    verify_requirements=verify_requirements,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/named.py", line 55, in __init__
    verify_requirements)
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 170, in _load_plugins
    self._on_load_failure_callback(self, ep, err)
  File "/usr/local/lib/python2.7/dist-packages/stevedore/driver.py", line 50, in _default_on_load_failure
    raise err
ImportError: No module named anyjson
Traceback (most recent call last):
_StringException: Empty attachments:
  stderr
  stdout

</snip>

This message is shown since anyjson was not installed (missing in test-requirements.txt).
There are 4 missing dependencies:
1) webtest
2) greenlet
3) amqp
4) anyjson

Attached is a patch that adds the missing requirements with the latest version available.

Revision history for this message
Everardo Padilla Saca (everardo-padilla-saca) wrote :
Changed in barbican:
assignee: nobody → Everardo Padilla Saca (everardo-padilla-saca)
Changed in barbican:
status: New → In Progress
Revision history for this message
Douglas Mendizábal (dougmendizabal) wrote :

Hi Everado, thank you for the patch. Unfortunately we don't accept diff patches via Launchpad. Please submit your changes via Gerrit as described in this wiki entry:

https://wiki.openstack.org/wiki/Gerrit_Workflow

Changed in barbican:
status: In Progress → New
Alexis Rivera (gardlt)
Changed in barbican:
assignee: Everardo Padilla Saca (everardo-padilla-saca) → Alexis Rivera (garivera89)
Changed in barbican:
assignee: Alexis Rivera (garivera89) → nobody
Changed in barbican:
assignee: nobody → Nithya Renganathan (narengan)
Jeremy Liu (liujiong)
Changed in barbican:
assignee: Nithya Renganathan (narengan) → liujiong (liujiong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

Fix proposed to branch: master
Review: https://review.openstack.org/329739

Changed in barbican:
status: New → In Progress
Revision history for this message
Jeremy Liu (liujiong) wrote :

according to the newest openstack/global-requirements.txt
the missed requirements are as follows:
WebTest>=2.0 # MIT
greenlet>=0.3.2 # MIT
amqp>=1.4.0,<2.0 # LGPL
anyjson>=0.3.3 # BSD

Revision history for this message
Thomas Bechtold (toabctl) wrote :

Looks like a problem of you installed environment (stevedore and/or oslo.messaging). Barbican is not directly using any of "anyjson,WebTest, greenlet or amqp".

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/329739
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=9df6e5bb7b4aad638ce07037fb0bee4b3b9c446e
Submitter: Jenkins
Branch: master

commit 9df6e5bb7b4aad638ce07037fb0bee4b3b9c446e
Author: liujiong <email address hidden>
Date: Wed Jun 15 10:01:55 2016 +0800

    Barbican tests fail because of incomplete test dependencies

    Missing dependencies in test-requirements.txt

    Closes-bug: #1428183
    Change-Id: I894eb015cf9ceac7bbc315da81d300abd58cd7ef

Changed in barbican:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/barbican 3.0.0.0b2

This issue was fixed in the openstack/barbican 3.0.0.0b2 development milestone.

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.