Bug 1348542 - gnocchi tests require packages that are not in RHOSP9 repos
Summary: gnocchi tests require packages that are not in RHOSP9 repos
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-gnocchi
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ga
: 9.0 (Mitaka)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-21 12:17 UTC by Anshul Behl
Modified: 2016-08-11 12:27 UTC (History)
3 users (show)

Fixed In Version: openstack-gnocchi-2.1.3-2.el7ost
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2016-08-11 12:27:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1597 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 9 Release Candidate Advisory 2016-08-11 16:06:52 UTC

Description Anshul Behl 2016-06-21 12:17:56 UTC
Steps to replicate:

Repos
# rhos-release 9   -p 2016-06-20.1

Configure rhos9 repos using rhos-release
Install tempest
#yum install openstack-tempest

Go to /usr/share/openstack-tempest-10.0.0

#./run_tempest.sh

I see the below exception

[root@unused openstack-tempest-10.0.0]# ./run_tempest.sh 
No virtual environment found...create one? (Y/n) n
2016-06-21 22:59:58.826 6922 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
Non-zero exit code (2) from test listing.
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list 
--- import errors ---
Failed to import test module: gnocchi.tempest.scenario
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 479, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/gnocchi/tempest/scenario/__init__.py", line 18, in <module>
    from gabbi import driver
ImportError: No module named gabbi
The test run didn't actually run any tests
[root@unused openstack-tempest-10.0.0]# yum -y install python-gabbi
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No package python-gabbi available.
Error: Nothing to do


The above package is not in openstack repos and is required to run tests,
This need to fixed on priority

Please let me know if more info is needed

Comment 5 Yurii Prokulevych 2016-07-22 10:41:00 UTC
rpm -qR python-gnocchi-tests-2.1.3-2.el7ost.noarch
python(abi) = 2.7
python-gabbi
python-gnocchi = 2.1.3-2.el7ost
...

yum info python-gabbi
Loaded plugins: search-disabled-repos
Installed Packages
Name        : python-gabbi
Arch        : noarch
Version     : 1.22.0
Release     : 1.el7ost
Size        : 394 k
Repo        : installed
From repo   : rhelosp-9.0-puddle
Summary     : Declarative HTTP testing library
URL         : https://github.com/cdent/gabbi
License     : ASL 2.0
Description : Gabbi is a tool for running HTTP tests where requests and responses
            : are represented in a declarative YAML-based form.

Tempest run executed.

Comment 7 errata-xmlrpc 2016-08-11 12:27:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1597.html


Note You need to log in before you can comment on or make changes to this bug.