group-based-policy is incompatible with tempest

Bug #1931091 reported by Martin Kopec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy
New
Undecided
Unassigned

Bug Description

Install tempest and group-based-policy plugin and list the tests then. Tempest will fail with an ImportError. See the steps and the traceback below.

group-based-policy]$ pip install .
Processing /home/centos/sanity_tempest/group-based-policy
Requirement already satisfied: pbr>=4.0.0 in /home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages (from group-based-policy==12.0.1.dev36) (5.6.0)
Collecting pyOpenSSL>=16.2.0
  Using cached pyOpenSSL-20.0.1-py2.py3-none-any.whl (54 kB)
Requirement already satisfied: cryptography>=3.2 in /home/centos/sanity_tempest/tempest/.tox/py36/lib64/python3.6/site-packages (from pyOpenSSL>=16.2.0->group-based-policy==12.0.1.dev36) (3.4.7)
Requirement already satisfied: six>=1.5.2 in /home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages (from pyOpenSSL>=16.2.0->group-based-policy==12.0.1.dev36) (1.16.0)
Requirement already satisfied: cffi>=1.12 in /home/centos/sanity_tempest/tempest/.tox/py36/lib64/python3.6/site-packages (from cryptography>=3.2->pyOpenSSL>=16.2.0->group-based-policy==12.0.1.dev36) (1.14.5)
Requirement already satisfied: pycparser in /home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages (from cffi>=1.12->cryptography>=3.2->pyOpenSSL>=16.2.0->group-based-policy==12.0.1.dev36) (2.20)
Building wheels for collected packages: group-based-policy
  Building wheel for group-based-policy (setup.py) ... done
  Created wheel for group-based-policy: filename=group_based_policy-12.0.1.dev36-py3-none-any.whl size=1305506 sha256=2cf049f70407bb72c4b85d790de0b4b0204cfb960f25c67bbf1c28ac288b04fa
  Stored in directory: /home/centos/.cache/pip/wheels/d2/bf/db/19662f12af2678b9a2841f0a1253068dae3e59b9b803802383
Successfully built group-based-policy
Installing collected packages: pyOpenSSL, group-based-policy
Successfully installed group-based-policy-12.0.1.dev36 pyOpenSSL-20.0.1
WARNING: You are using pip version 21.0.1; however, version 21.1.2 is available.
You should consider upgrading via the '/home/centos/sanity_tempest/tempest/.tox/py36/bin/python -m pip install --upgrade pip' command.
(py36)[master][centos@mkopec-devstack group-based-policy]$ tempest list-plugins
+---------------------------+---------------------------------------------------------------+
| Name | EntryPoint |
+---------------------------+---------------------------------------------------------------+
| gbp_tests | gbpservice.tests.tempest.plugin:GroupBasedPolicyTempestPlugin |
+---------------------------+---------------------------------------------------------------+
(py36)[master ?][centos@mkopec-devstack group-based-policy]$ tempest init ../gbp_env
2021-06-07 09:36:22.903 710311 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2021-06-07 09:36:22.910 710311 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: vmware-nsx-tempest-plugin
2021-06-07 09:36:22.911 710311 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: gbp_tests
2021-06-07 09:36:22.911 710311 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: vmware-nsx-tempest-plugin
2021-06-07 09:36:22.912 710311 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: gbp_tests
2021-06-07 09:36:22.923 710311 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: vmware-nsx-tempest-plugin
2021-06-07 09:36:22.923 710311 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: gbp_tests
/home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages/oslo_config/types.py:57: UserWarning: converting '3000' to a string
  warnings.warn('converting \'%s\' to a string' % str_val)
(py36)[master ?][centos@mkopec-devstack group-based-policy]$ cd ../gbp_env/
(py36)[centos@mkopec-devstack gbp_env]$ tempest run -l | grep gbp
ImportError: Start directory is not importable: '/home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages/gbpservice/tests/gbpservice/tests/tempest'
(py36)[centos@mkopec-devstack gbp_env]$ tempest run -l

=========================
Failures during discovery
=========================
--- import errors ---
Failed to call load_tests:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 129, in loadTestsFromModule
    return load_tests(self, tests, pattern)
  File "/home/centos/sanity_tempest/tempest/tempest/test_discover/test_discover.py", line 53, in load_tests
    top_level_dir=top_path))
  File "/usr/lib64/python3.6/unittest/loader.py", line 338, in discover
    raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: '/home/centos/sanity_tempest/tempest/.tox/py36/lib/python3.6/site-packages/gbpservice/tests/gbpservice/tests/tempest'

================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
100(py36)[centos@mkopec-devstack gbp_env]$

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.