Bug 1460001

Summary: neutron-lbaas scenario tests fail because python-testscenarios not being pulled by neutron-lbaas tests subpackage
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: openstack-neutron-lbaasAssignee: Nir Magnezi <nmagnezi>
Status: CLOSED ERRATA QA Contact: Alexander Stafeyev <astafeye>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 11.0 (Ocata)CC: amuller, apevec, lhh, nyechiel, tvignaud
Target Milestone: Upstream M2Keywords: AutomationBlocker, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-lbaas-11.0.0-0.20170706121958.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 21:31:55 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: 1470032    
Bug Blocks:    

Description Arie Bregman 2017-06-08 19:23:01 UTC
Description of problem:

The following neutron-lbaas tests are using testscenarios python module:

neutron_lbaas/tests/tempest/v2/ddt/test_listeners_admin_state.py

But python-neutron-lbaas-tests is not installing testscenarios RPM (or any other RPM! only python-neutron-lbasas) hence the tests are failing


Version-Release number of selected component (if applicable): python-neutron-lbaas-tests-10.0.0-8.el7ost.noarch


How reproducible: 100%


Steps to Reproduce:
1. Install python-neutron-lbaas-tests
2. Run tests

Actual results:

---
Failed to import test module: neutron_lbaas.tests.tempest.v2.ddt.test_health_monitor_admin_state_up\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 445, in _find_test_path\n    module = self._get_module_from_name(name)\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 384, in _get_module_from_name\n    __import__(name)\n  File \"/usr/lib/python2.7/site-packages/neutron_lbaas/tests/tempest/v2/ddt/test_health_monitor_admin_state_up.py\", line 17, in <module>\n    import testscenarios\nImportError: No module named testscenarios\n\nFailed to import test module: neutron_lbaas.tests.tempest.v2.ddt.test_listeners_admin_state\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 445, in _find_test_path\n    module = self._get_module_from_name(name)\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 384, in _get_module_from_name\n    __import__(name)\n  File \"/usr/lib/python2.7/site-packages/neutron_lbaas/tests/tempest/v2/ddt/test_listeners_admin_state.py\", line 16, in <module>\n    import testscenarios\nImportError: No module named testscenarios\n\nFailed to import test module: neutron_lbaas.tests.tempest.v2.ddt.test_members_admin_state_up\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 445, in _find_test_path\n    module = self._get_module_from_name(name)\n  File \"/usr/lib/python2.7/site-packages/unittest2/loader.py\", line 384, in _get_module_from_name\n    __import__(name)\n  File \"/usr/lib/python2.7/site-packages/neutron_lbaas/tests/tempest/v2/ddt/test_members_admin_state_up.py\", line 16, in <module>
---


Expected results: Tests passed successfully

Comment 2 Nir Magnezi 2017-07-05 09:05:14 UTC
https://review.rdoproject.org/r/#/c/7145/ got merged to RDO.
Waiting for the next RDO import for this change to be part of the OSP package.

Comment 7 errata-xmlrpc 2017-12-13 21:31:55 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/RHEA-2017:3462