Bug 1401966 - [Docs][Director][Manual Installation] Add missing action for tempest test instructions
Summary: [Docs][Director][Manual Installation] Add missing action for tempest test ins...
Keywords:
Status: CLOSED DUPLICATE of bug 1386849
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: async
: 10.0 (Newton)
Assignee: Lukas Ruzicka
QA Contact: Petr Kovar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 13:17 UTC by Cyril Lopez
Modified: 2017-01-03 10:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-03 10:56:05 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Cyril Lopez 2016-12-06 13:17:07 UTC
Description of problem:

To run the tempest some of package are needed. This action is missing in the documentation after configure-tempest-directory :
sudo tools/install_test_packages.py

Version-Release number of selected component (if applicable):
openstack-tempest-13.0.0-7.bafe630git.el7ost.noarch
instack-undercloud-5.1.0-4.el7ost.noarch


Steps to Reproduce:
1. deploy an overcloud
2. mkdir tempest ; cd tempest ; /usr/share/openstack-tempest-13.0.0/tools/configure-tempest-directory
3. run tools/config_tempest.py...


Actual results:
[stack@XXX tempest]$ tools/config_tempest.py --deployer-input ~/tempest-deployer-input.conf --debug --create identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD --network-id 86651600-cd8c-4dc1-b7c5-5e4c91add9bb
2016-12-06 06:23:52.805 31947 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2016-12-06 06:23:53.089 31947 ERROR tempest.test_discover.plugins [-] Could not load 'mistral_test': No module named mistral_tempest_tests.plugin
2016-12-06 06:23:53.090 31947 CRITICAL tempest [-] ImportError: No module named mistral_tempest_tests.plugin
2016-12-06 06:23:53.090 31947 ERROR tempest Traceback (most recent call last):
2016-12-06 06:23:53.090 31947 ERROR tempest   File "tools/config_tempest.py", line 421, in <module>
2016-12-06 06:23:53.090 31947 ERROR tempest     class TempestConf(ConfigParser.SafeConfigParser):
2016-12-06 06:23:53.090 31947 ERROR tempest   File "tools/config_tempest.py", line 429, in TempestConf
2016-12-06 06:23:53.090 31947 ERROR tempest     CONF = tempest.config.TempestConfigPrivate(parse_conf=False)
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/home/stack/tempest/tempest/config.py", line 1291, in __init__
2016-12-06 06:23:53.090 31947 ERROR tempest     register_opts()
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/home/stack/tempest/tempest/config.py", line 1186, in register_opts
2016-12-06 06:23:53.090 31947 ERROR tempest     ext_plugins = plugins.TempestTestPluginManager()
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/home/stack/tempest/tempest/lib/common/utils/misc.py", line 28, in getinstance
2016-12-06 06:23:53.090 31947 ERROR tempest     instances[cls] = cls()
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/home/stack/tempest/tempest/test_discover/plugins.py", line 126, in __init__
2016-12-06 06:23:53.090 31947 ERROR tempest     on_load_failure_callback=self.failure_hook)
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 93, in __init__
2016-12-06 06:23:53.090 31947 ERROR tempest     verify_requirements)
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 171, in _load_plugins
2016-12-06 06:23:53.090 31947 ERROR tempest     self._on_load_failure_callback(self, ep, err)
2016-12-06 06:23:53.090 31947 ERROR tempest   File "/home/stack/tempest/tempest/test_discover/plugins.py", line 132, in failure_hook
2016-12-06 06:23:53.090 31947 ERROR tempest     raise err
2016-12-06 06:23:53.090 31947 ERROR tempest ImportError: No module named mistral_tempest_tests.plugin
2016-12-06 06:23:53.090 31947 ERROR tempest 

Additional info:
Run this and it will works

[stack@XXX tempest]$ sudo tools/install_test_packages.py

Comment 1 Lucy Bopf 2016-12-22 05:04:46 UTC
Assigning to Lukas for review.

Comment 2 Lukas Ruzicka 2016-12-22 10:56:54 UTC
This bug seems similar to this one (https://bugzilla.redhat.com/show_bug.cgi?id=1386849). Could you please verify if this bug could be solved by installing the necessary tempest plug-ins into your system?

Comment 3 Cyril Lopez 2016-12-22 18:07:02 UTC
I don't know cause in the doc link into the other bug, it's wrote what is needed : 

you can automatically install the required tempest plugins of the configured services on the environment.

 # python /usr/share/openstack-tempest-*/tools/install_test_packages.py

Comment 4 Lukas Ruzicka 2016-12-23 11:15:40 UTC
(In reply to Cyril Lopez from comment #3)
> I don't know cause in the doc link into the other bug, it's wrote what is
> needed : 
> 
> you can automatically install the required tempest plugins of the configured
> services on the environment.


If the automatic installation of the plugins is what is needed to do, then it was already done with the above mentioned bug. I assume we can close this one, too.

> 
>  # python /usr/share/openstack-tempest-*/tools/install_test_packages.py

Comment 5 Petr Kovar 2017-01-03 10:56:05 UTC
(In reply to Lukas Ruzicka from comment #4)
> (In reply to Cyril Lopez from comment #3)
> > I don't know cause in the doc link into the other bug, it's wrote what is
> > needed : 
> > 
> > you can automatically install the required tempest plugins of the configured
> > services on the environment.
> 
> 
> If the automatic installation of the plugins is what is needed to do, then
> it was already done with the above mentioned bug. I assume we can close this
> one, too.


That's sensible. Please reopen if need be.

*** This bug has been marked as a duplicate of bug 1386849 ***


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