Tempest installation - plugins

asked 2015-12-13 07:09:07 -0500

bkopilov gravatar image

Hi , I was used to install temepst manually , installing virtualenv and pip install requirments.txt && test-requirments.txt The way i am running tempest : tox -egenconfig cd /home/stack/tempest && source /home/stack/tempest/.venv/bin/activate && testr list-tests | grep .api. > /home/stack/tempest/tests

testr run --load-list=/home/stack/tempest/tests--subunit | tee >(subunit2junitxml --output-to=$tempest_dir/xunit_temp0.xml) | subunit-2to1 | $tempest_dir/tools/colorizer.py

This installation method was working for me and i was able to run testr commands

Lately , after installing requirments && test-requirements files , i could not run testr commands due to failures related to missing packages as Traceback (most recent call last): File "/home/stack/tempest/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path module = self._get_module_from_name(name) File "/home/stack/tempest/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name __import__(name) File "tempest/api/baremetal/admin/test_api_discovery.py", line 13, in <module> from tempest.api.baremetal.admin import base File "tempest/api/baremetal/admin/base.py", line 19, in <module> from tempest import test File "tempest/test.py", line 34, in <module> from tempest import clients File "tempest/clients.py", line 105, in <module> from tempest.services.image.v1.json.images_client import ImagesClient File "tempest/services/image/v1/json/images_client.py", line 28, in <module> from tempest.common import glance_http File "tempest/common/glance_http.py", line 25, in <module> import OpenSSL ImportError: No module named OpenSSL

Traceback (most recent call last): File "/home/stack/tempest/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path module = self._get_module_from_name(name) File "/home/stack/tempest/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name __import__(name) File "tempest/test_discover/test_discover.py", line 18, in <module> from tempest.test_discover import plugins File "tempest/test_discover/plugins.py", line 20, in <module> from tempest_lib.common.utils import misc ImportError: No module named tempest_lib.common.utils Non-zero exit code (2) from test listing.

could you please explain how to install tempest with virtualenv and all needed pulgins / packages ? I prefer to call testr directly. Anything changed on tempest side ?

Thanks, Benny

edit retag flag offensive close merge delete