tempest barbican setup fails: ImportError: No module named octavia_lib.common

Bug #1812322 reported by wes hayutin on 2019-01-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Unassigned

Bug Description

1-18 01:22:37.863171 | primary | 2019-01-18 01:20:33 | File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
2019-01-18 01:22:37.863272 | primary | 2019-01-18 01:20:33 | module = self._get_module_from_name(name)
2019-01-18 01:22:37.863435 | primary | 2019-01-18 01:20:33 | File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
2019-01-18 01:22:37.863514 | primary | 2019-01-18 01:20:33 | __import__(name)
2019-01-18 01:22:37.863736 | primary | 2019-01-18 01:20:33 | File "/usr/lib/python2.7/site-packages/octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py", line 28, in <module>
2019-01-18 01:22:37.863862 | primary | 2019-01-18 01:20:33 | from octavia_lib.common import constants as lib_consts
2019-01-18 01:22:37.863966 | primary | 2019-01-18 01:20:33 | ImportError: No module named octavia_lib.common
2019-01-18 01:22:37.864010 | primary | 2019-01-18 01:20:33 |
2019-01-18 01:22:37.864153 | primary | 2019-01-18 01:20:33 | ================================================================================
2019-01-18 01:22:37.864354 | primary | 2019-01-18 01:20:33 | The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

Tags: ci Edit Tag help
chandan kumar (chkumar246) wrote :

https://github.com/openstack/octavia-tempest-plugin/commit/0a0f9b342a73c924ba9e7142878a2889ac2061aa broke it.
and https://github.com/openstack/octavia-tempest-plugin/commit/0a0f9b342a73c924ba9e7142878a2889ac2061aa#diff-b03119484154d807139512ef9393b286R28 -> adds a new import octavia_lib comes from https://github.com/openstack/octavia-lib which is not yet packaged in RDO.

Best solution pin the plugin in rdo at known commit and till then work on packaging the dependence in RDO.
Once package is available add a Requires in python-octavia-tests-tempest packages.

chandan kumar (chkumar246) wrote :

Pinned octavia-tempest-plugin at known good hash https://review.rdoproject.org/r/#/c/18401/

wes hayutin (weshayutin) on 2019-02-04
Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers