"tempest init cloud" throws error

Bug #1650215 reported by ankur bhatia
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Expired
Undecided
Unassigned

Bug Description

I tried to configure tempest. I followed the following steps mentioned in the document.

1. git clone http://git.openstack.org/openstack/tempest
2. pip install tempest/
3. tempest init cloud-01

After the "tempest init cloud-01" command I get the following error:

vagrant@allinone47 ~]$ tempest init c
 2016-12-15 10:39:38.670 26037 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
 2016-12-15 10:39:38.671 26037 ERROR tempest.test_discover.plugins [-] Could not load 'aodh_tests': No module named tests.tempest.plugin
 2016-12-15 10:39:38.672 26037 ERROR tempest [-] No module named tests.tempest.plugin

Tags: tempest
Revision history for this message
Andrea Frittoli (andrea-frittoli) wrote :

It looks like you have aodh installed. This could be a problem specific to the aodh plugin.
On a clean venv I cannot reproduce the issue.
Could you specify platform, python version and attach the output of pip freeze?
Also could you try on a clean system without aodh installed?

Changed in tempest:
status: New → Incomplete
Revision history for this message
chandan kumar (chkumar246) wrote :

Are you using packstack or DevStack or other installer based deployment on which you are trying to run tempest? Please specify the environment.

Revision history for this message
drovalev_a (drovalev-a) wrote :

I am using packstack on CentOS Linux release 7.3.1611 (Core).

Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2

Revision history for this message
drovalev_a (drovalev-a) wrote :

After some investigation:

>>> import pkg_resources
>>> list(pkg_resources.iter_entry_points('tempest.test_plugins'))
[EntryPoint.parse('gnocchi_tests = gnocchi.tempest.plugin:GnocchiTempestPlugin'), EntryPoint.parse('aodh_tests = aodh.tests.tempest.plugin:AodhTempestPlugin'), EntryPoint.parse('neutron_tests = neutron.tests.tempest.plugin:NeutronTempestPlugin'), EntryPoint.parse('ceilometer_tests = ceilometer.tests.tempest.plugin:CeilometerTempestPlugin'), EntryPoint.parse('manila_tests = manila_tempest_tests.plugin:ManilaTempestPlugin'), EntryPoint.parse('cinder_tests = cinder.tests.tempest.plugin:CinderTempestPlugin'), EntryPoint.parse('keystone_tests = keystone_tempest_plugin.plugin:KeystoneTempestPlugin')]

But there are no catalogs:
       site-packages/aodh/tests
       site-packages/neutron/tests
       site-packages/cinder/tests
and so on.
These python packages are installed with a correspondent tempest entry point which is detected by pkg_resources package. But, actually, the tests itself are not installed as a part of its packages.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tempest because there has been no activity for 60 days.]

Changed in tempest:
status: Incomplete → Expired
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.