lbaasv2 tempest tests requires lbaas repo

Bug #1652561 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
High
YAMAMOTO Takashi

Bug Description

lbassv2 tests in networking-midonet tempest plugin import modules from lbaas repo
directly. it breaks a setup without lbaas.

eg. http://logs.openstack.org/40/342540/30/experimental/gate-grenade-dsvm-networking-midonet-ubuntu-xenial-nv/b11f10a/console.html

2016-12-26 03:52:57.176575 | running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
2016-12-26 03:52:57.178534 | OS_STDERR_CAPTURE= File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/__init__.py", line 143, in execute
2016-12-26 03:52:57.178560 | result = self.run()
2016-12-26 03:52:57.178590 | File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/run.py", line 213, in run
2016-12-26 03:52:57.178604 | return self._run_tests(cmd)
2016-12-26 03:52:57.178656 | File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/run.py", line 345, in _run_tests
2016-12-26 03:52:57.178667 | cmd.setUp()
2016-12-26 03:52:57.178693 | File "/usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py", line 234, in setUp
2016-12-26 03:52:57.178707 | self.test_ids = self.list_tests()
2016-12-26 03:52:57.178735 | File "/usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py", line 312, in list_tests
2016-12-26 03:52:57.178746 | % (run_proc.returncode))
2016-12-26 03:52:57.178771 | ${O
2016-12-26 03:52:57.206147 | S_Non-zero exit code (2) from test listing.
2016-12-26 03:52:57.209798 | STDERR_CAPTURE:-1} \
2016-12-26 03:52:57.209829 | OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
2016-12-26 03:52:57.209851 | OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
2016-12-26 03:52:57.209881 | ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list
2016-12-26 03:52:57.209893 | --- import errors ---
2016-12-26 03:52:57.209929 | Failed to import test module: midonet.neutron.tests.tempest.tests.api.test_lbaasv2
2016-12-26 03:52:57.209944 | Traceback (most recent call last):
2016-12-26 03:52:57.209972 | File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
2016-12-26 03:52:57.209988 | module = self._get_module_from_name(name)
2016-12-26 03:52:57.210017 | File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
2016-12-26 03:52:57.210028 | __import__(name)
2016-12-26 03:52:57.210061 | File "/opt/stack/new/networking-midonet/midonet/neutron/tests/tempest/tests/api/test_lbaasv2.py", line 18, in <module>
2016-12-26 03:52:57.210078 | from neutron_lbaas.tests.tempest.v2.api \
2016-12-26 03:52:57.210098 | ImportError: No module named neutron_lbaas.tests.tempest.v2.api
2016-12-26 03:52:57.210124 | > /usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py(312)list_tests()
2016-12-26 03:52:57.210137 | -> % (run_proc.returncode))
2016-12-26 03:52:57.210144 | (Pdb)
2016-12-26 03:52:57.210160 | The test run didn't actually run any tests

Tags: lbaas
Changed in networking-midonet:
importance: Undecided → High
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
milestone: none → 4.0.0
status: New → In Progress
tags: added: lbaas
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/415092
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=f5d862b64b44be65651564f4034e60983932e9ad
Submitter: Jenkins
Branch: master

commit f5d862b64b44be65651564f4034e60983932e9ad
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Dec 28 16:47:47 2016 +0900

    tempest: Remove lbaas v2 api tests

    Because it introduced hard dependency on neutron-lbaas.
    The following patch reintroduce the tests in a different way.

    Closes-Bug: #1652561
    Change-Id: Ifac41df0d514e776022af857f02831ebc40d8797

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 4.0.0

This issue was fixed in the openstack/networking-midonet 4.0.0 release.

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.