Bug 1529937

Summary: tests fail due to missing test_utils module
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: abregman, apevec, ccollett, chkumar, jschluet, lhh, slinaber
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-10.0.0-7.b4a056dgit.el7ost Doc Type: If docs needed, set a value
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1548490 (view as bug list) Environment:
Last Closed: 2018-03-15 12:45:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1526098, 1548490    

Description Arie Bregman 2017-12-31 10:41:52 UTC
Description of problem:

Neutron-lbaas OSP 9 tests are failing due to the following missing file 'tempest/lib/common/utils/test_utils.py'

Looks like it should be backported from OSP 10

Version-Release number of selected component (if applicable): Latest OSP 9

How reproducible: 100%

Steps to Reproduce:
1. Execute neutron-lbaas OSP 9 tests

Actual results:

Failed to import test module: neutron_lbaas.tests.tempest.v2.scenario.test_session_persistence
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/neutron_lbaas/tests/tempest/v2/scenario/test_session_persistence.py", line 18, in <module>
    from neutron_lbaas.tests.tempest.v2.scenario import base
  File "/usr/lib/python2.7/site-packages/neutron_lbaas/tests/tempest/v2/scenario/base.py", line 31, in <module>
    from tempest.lib.common.utils import test_utils
ImportError: cannot import name test_utils


Expected results: Tests passed successfully

Comment 1 Chandan Kumar 2018-01-15 08:57:20 UTC
Hello Arie,

Here is the attached scratch-build containing the fixes:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=15001358

Here is the rpm link: http://download.eng.bos.redhat.com/brewroot/work/tasks/1358/15001358/openstack-tempest-10.0.0-7.b4a056dgit.el7ost.noarch.rpm

Please test it and confirm so that I can do the final build.

Comment 3 Chandan Kumar 2018-01-19 09:40:13 UTC
Here is the tagged build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=646388.

Comment 7 Martin Kopec 2018-02-20 16:15:39 UTC
openstack-tempest-10.0.0-7.b4a056dgit.el7ost package contains the fix for the ImportError mentioned above -> VERIFIED.

Note: neutron-lbaas package's version needs to be 8.4.0-3 or higher, because of the bug [1].

Tested on deployment:
RHOS9
core_puddle=2017-10-26.2
undercloud:1,controller:1,compute:1
ipv4, vxlan

[root@undercloud-0 ~]# rpm -qa | grep neutron-lbaas
python-neutron-lbaas-8.4.0-3.el7ost.noarch
python-neutron-lbaas-tests-8.4.0-3.el7ost.noarch
openstack-neutron-lbaas-8.4.0-3.el7ost.noarch


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1526098

Comment 10 errata-xmlrpc 2018-03-15 12:45:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0540