Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1433604 - Fail to execute unit tests
Fail to execute unit tests
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron (Show other bugs)
11.0 (Ocata)
Unspecified Unspecified
low Severity high
: rc
: 11.0 (Ocata)
Assigned To: Arie Bregman
Arie Bregman
: Automation, AutomationBlocker
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-18 13:05 EDT by Arie Bregman
Modified: 2017-05-17 16:08 EDT (History)
7 users (show)

See Also:
Fixed In Version: python-neutron-tests-10.0.0-11
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-05-17 16:08:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
RDO 5963 None None None 2017-03-30 10:49 EDT
Red Hat Product Errata RHEA-2017:1245 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 Bug Fix and Enhancement Advisory 2017-05-17 19:01:50 EDT

  None (edit)
Description Arie Bregman 2017-03-18 13:05:45 EDT
Description of problem:

Unable to run neutron OSP 11 unit tests. The problem seems to be the missing tests directory in oslo_db.

The failure is:

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 "neutron/tests/unit/db/test_sqlalchemytypes.py", line 17, in <module>
    from oslo_db.tests.sqlalchemy import base as test_base
ImportError: No module named tests.sqlalchemy
The test run didn't actually run any tests

Note: this is probably a packaging issue and not an issue with neutron. python-oslo-db should include the tests so we can run neutorn unit tests.

How reproducible: 100%


Steps to Reproduce:
1. Install python-oslo-db from puddle
2. Run neutron unit tests

Actual results: Fail to execute unit tests.

Expected results: All the unit tests passed successfully
Comment 3 Assaf Muller 2017-03-20 08:56:00 EDT
The fix is to add oslo-db-tests as a dependency of the Neutron tests subpackage in RDO master, backport it to RDO stable/ocata and that will be imported in to OSP 11 by release delivery.
Comment 5 Arie Bregman 2017-03-21 08:30:58 EDT
Thanks, it works.
Submitted patch to RDO: https://review.rdoproject.org/r/#/c/5877
Comment 6 Assaf Muller 2017-03-23 14:14:12 EDT
Arie added the package in component CI to unblock. For developers that install the tests RPM and want to run the unit tests, Arie will pursue the RDO patch.
Comment 7 Assaf Muller 2017-03-30 10:49:43 EDT
Fixed merged to RDO Ocata branch, will be available in OSP 11 in next import.
Comment 9 errata-xmlrpc 2017-05-17 16:08:57 EDT
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:1245

Note You need to log in before you can comment on or make changes to this bug.