networking-bgpvpn-functional-full job fails with ModuleNotFoundError: No module named 'mock'

Bug #1876028 reported by Lajos Katona
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-bgpvpn
Fix Released
Undecided
Elod Illes

Bug Description

networking-bgpvpn-functional-full job is failing 100% on master and on freshly cut stable/ussuri branches with the following exception:
2020-04-28 22:56:15.630615 | controller | =========================
2020-04-28 22:56:15.630635 | controller | Failures during discovery
2020-04-28 22:56:15.630654 | controller | =========================
2020-04-28 22:56:15.630673 | controller | --- import errors ---
2020-04-28 22:56:15.630694 | controller | Failed to import test module: networking_bgpvpn.tests.functional.db.test_migrations
2020-04-28 22:56:15.630714 | controller | Traceback (most recent call last):
2020-04-28 22:56:15.630734 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
2020-04-28 22:56:15.630753 | controller | module = self._get_module_from_name(name)
2020-04-28 22:56:15.630773 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2020-04-28 22:56:15.630792 | controller | __import__(name)
2020-04-28 22:56:15.630812 | controller | File "/home/zuul/src/opendev.org/openstack/networking-bgpvpn/networking_bgpvpn/tests/functional/db/test_migrations.py", line 17, in <module>
2020-04-28 22:56:15.630832 | controller | from neutron.tests.functional.db import test_migrations
2020-04-28 22:56:15.630852 | controller | File "/usr/local/lib/python3.6/dist-packages/neutron/tests/functional/db/test_migrations.py", line 25, in <module>
2020-04-28 22:56:15.630872 | controller | from oslotest import base as oslotest_base
2020-04-28 22:56:15.630892 | controller | ModuleNotFoundError: No module named 'oslotest'
2020-04-28 22:56:15.630911 | controller |
2020-04-28 22:56:15.630930 | controller | Failed to import test module: networking_bgpvpn.tests.functional.test_placeholder
2020-04-28 22:56:15.630949 | controller | Traceback (most recent call last):
2020-04-28 22:56:15.630968 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
2020-04-28 22:56:15.630987 | controller | module = self._get_module_from_name(name)
2020-04-28 22:56:15.631007 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2020-04-28 22:56:15.631026 | controller | __import__(name)
2020-04-28 22:56:15.631045 | controller | File "/home/zuul/src/opendev.org/openstack/networking-bgpvpn/networking_bgpvpn/tests/functional/test_placeholder.py", line 1, in <module>
2020-04-28 22:56:15.631065 | controller | from neutron.tests import base
2020-04-28 22:56:15.631084 | controller | File "/usr/local/lib/python3.6/dist-packages/neutron/tests/base.py", line 29, in <module>
2020-04-28 22:56:15.631104 | controller | import mock
2020-04-28 22:56:15.631124 | controller | ModuleNotFoundError: No module named 'mock'
2020-04-28 22:56:15.631142 | controller |
2020-04-28 22:56:15.631161 | controller | ================================================================================
2020-04-28 22:56:15.631181 | controller | The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

Changed in bgpvpn:
status: New → In Progress
assignee: nobody → Lajos Katona (lajos-katona)
Changed in bgpvpn:
assignee: Lajos Katona (lajos-katona) → nobody
Changed in bgpvpn:
assignee: nobody → Elod Illes (elod-illes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-bgpvpn (master)

Reviewed: https://review.opendev.org/724300
Committed: https://git.openstack.org/cgit/openstack/networking-bgpvpn/commit/?id=1fbfb94bc08859ad2a5398b32b4fe2e64c98724b
Submitter: Zuul
Branch: master

commit 1fbfb94bc08859ad2a5398b32b4fe2e64c98724b
Author: Elod Illes <email address hidden>
Date: Wed Apr 29 14:07:52 2020 +0200

    Fix dsvm-functional and cleanup tox.ini

    Remove unnecessary things from tox.ini:
    - install_command: it's better to use the built-in install command
    - VIRTUAL_ENV: this is set anyways
    - sitepackages: it's enough to use virtualenv's packages

    Besides these seem to be unnecessary 'sitepackages' setting started to
    break functional job with an error message that there are missing
    packages, however those were installed. By removing sitepackages=True
    setting the errors dissapear.

    Closes-Bug: #1876028
    Change-Id: Ifc4904fa89eb7fcaaa8cd623112f419ac57ea286

Changed in bgpvpn:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-bgpvpn (stable/ussuri)

Reviewed: https://review.opendev.org/724378
Committed: https://git.openstack.org/cgit/openstack/networking-bgpvpn/commit/?id=0649023d959ba87c57ead2d9d5985d02986ea182
Submitter: Zuul
Branch: stable/ussuri

commit 0649023d959ba87c57ead2d9d5985d02986ea182
Author: Elod Illes <email address hidden>
Date: Wed Apr 29 14:07:52 2020 +0200

    Fix dsvm-functional and cleanup tox.ini

    Remove unnecessary things from tox.ini:
    - install_command: it's better to use the built-in install command
    - VIRTUAL_ENV: this is set anyways
    - sitepackages: it's enough to use virtualenv's packages

    Besides these seem to be unnecessary 'sitepackages' setting started to
    break functional job with an error message that there are missing
    packages, however those were installed. By removing sitepackages=True
    setting the errors dissapear.

    Closes-Bug: #1876028
    Change-Id: Ifc4904fa89eb7fcaaa8cd623112f419ac57ea286
    (cherry picked from commit 1fbfb94bc08859ad2a5398b32b4fe2e64c98724b)

tags: added: in-stable-ussuri
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.