tox -etht fails with ModuleNotFoundError

Bug #2000357 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Rabi Mishra

Bug Description

This happens after tox has been bumped and impacts both master and stable branches.

Noticed at:

https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_434/860315/4/check/openstack-tox-tht/434bd90/job-output.txt

2022-12-23 04:53:08.418330 | ubuntu-focal | platform linux -- Python 3.8.10, pytest-7.2.0, pluggy-1.0.0
2022-12-23 04:53:08.418353 | ubuntu-focal | cachedir: .tox/tht/.pytest_cache
2022-12-23 04:53:08.418401 | ubuntu-focal | rootdir: /home/zuul/src/opendev.org/openstack/tripleo-heat-templates
2022-12-23 04:53:08.418422 | ubuntu-focal | plugins: ansible-playbook-runner-0.5.4, metadata-2.0.4, html-3.2.0, xdist-3.1.0, cov-4.0.0
2022-12-23 04:53:08.418442 | ubuntu-focal | collected 1 item / 1 error
2022-12-23 04:53:08.418460 | ubuntu-focal |
2022-12-23 04:53:08.418479 | ubuntu-focal | ==================================== ERRORS ====================================
2022-12-23 04:53:08.418497 | ubuntu-focal | ____ ERROR collecting tripleo_heat_templates/tests/test_tht_derivce_pci.py _____
2022-12-23 04:53:08.418515 | ubuntu-focal | ImportError while importing test module '/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tripleo_heat_templates/tests/test_tht_derivce_pci.py'.
2022-12-23 04:53:08.418533 | ubuntu-focal | Hint: make sure your test modules/packages have valid Python names.
2022-12-23 04:53:08.418551 | ubuntu-focal | Traceback:
2022-12-23 04:53:08.418573 | ubuntu-focal | /usr/lib/python3.8/importlib/__init__.py:127: in import_module
2022-12-23 04:53:08.418591 | ubuntu-focal | return _bootstrap._gcd_import(name[level:], package, level)
2022-12-23 04:53:08.418611 | ubuntu-focal | tripleo_heat_templates/tests/test_tht_derivce_pci.py:26: in <module>
2022-12-23 04:53:08.418647 | ubuntu-focal | import derive_pci_passthrough_whitelist as pci # noqa: E402
2022-12-23 04:53:08.418673 | ubuntu-focal | deployment/neutron/derive_pci_passthrough_whitelist.py:23: in <module>
2022-12-23 04:53:08.418691 | ubuntu-focal | from oslo_concurrency import processutils
2022-12-23 04:53:08.418709 | ubuntu-focal | E ModuleNotFoundError: No module named 'oslo_concurrency'
2022-12-23 04:53:08.418727 | ubuntu-focal | - generated html file: file:///home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/tht/log/reports.html -

Changed in tripleo:
status: Confirmed → In Progress
Rabi Mishra (rabi)
Changed in tripleo:
assignee: nobody → Rabi Mishra (rabi)
milestone: none → antelope-1
tags: added: ci
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/868465
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/7fd4519b222166edc5a02121a4a04c113ab671be
Submitter: "Zuul (22348)"
Branch: master

commit 7fd4519b222166edc5a02121a4a04c113ab671be
Author: rabi <email address hidden>
Date: Fri Dec 23 11:57:25 2022 +0530

    Remove tox skipdist=True

    This does not work with latest tox 4.x.

    Closes-Bug: #2000357
    Change-Id: Ib0fca00c92ef56fce57eb6355cb6be36e478a744

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-operator-ansible (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/868471
Committed: https://opendev.org/openstack/python-tripleoclient/commit/35f2d79eea6c5167bc86af50b0181145f3ad32b6
Submitter: "Zuul (22348)"
Branch: master

commit 35f2d79eea6c5167bc86af50b0181145f3ad32b6
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:18:18 2022 +0900

    Remove tox skipdist=True

    This does not work with latest tox 4.x.

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: Iccf25bd75c2d11aee54f8846c69f7797a170edaf

Revision history for this message
Juan Badia Payno (jbadiapa) wrote :
Revision history for this message
Rabi Mishra (rabi) wrote :

> I've just hit this on stable/wallaby

We're debating whether to pin tox in stable branches or backport these fixes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/868469
Committed: https://opendev.org/openstack/tripleo-ansible/commit/254ff2bd1ccc2c9c4afe61ed617df22448652a3e
Submitter: "Zuul (22348)"
Branch: master

commit 254ff2bd1ccc2c9c4afe61ed617df22448652a3e
Author: rabi <email address hidden>
Date: Fri Dec 23 12:30:43 2022 +0530

    Remove tox skipdist=True

    This does not work with latest tox 4.x.
    Also fixes few other issues in tox.ini.

    Closes-Bug: #2000357
    Change-Id: Ia3fe0e1de08f47ec434d04a5baae2b476132be19

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/868470
Committed: https://opendev.org/openstack/tripleo-common/commit/93c21833829cc5731057586e9c5cb2140ea2d646
Submitter: "Zuul (22348)"
Branch: master

commit 93c21833829cc5731057586e9c5cb2140ea2d646
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:17:37 2022 +0900

    Adapt to tox 4.x

    skipdist=True does not work with latest tox 4.x.

    Also, skip_install=True without any deps causes the following task
    failure in CI, because the log directory is no longer created. This
    change ensures we use the individual environment instead of using
    a different environment.

    TASK [tox : Install any sibling python packages]
    ...
    ubuntu-jammy | FileNotFoundError: [Errno 2] No such file or directory:
    '/home/zuul/src/opendev.org/openstack/tripleo-common/.tox/pep8/log/
    pep8-siblings.txt'

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: I638649e0722011ad39cc94f0cc0bfcf65cf1518b

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-docs (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/869032

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/tripleo-common/+/869034

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/868466
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/a044fb80b42699bc66a21bd4ce52bb2364738b7f
Submitter: "Zuul (22348)"
Branch: stable/zed

commit a044fb80b42699bc66a21bd4ce52bb2364738b7f
Author: rabi <email address hidden>
Date: Fri Dec 23 11:57:25 2022 +0530

    Remove tox skipdist=True

    This does not work with latest tox 4.x.

    Closes-Bug: #2000357
    Change-Id: Ib0fca00c92ef56fce57eb6355cb6be36e478a744
    (cherry picked from commit 7fd4519b222166edc5a02121a4a04c113ab671be)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/869019

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/wallaby)

Change abandoned by "Rabi Mishra <email address hidden>" on branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/869019

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/869034
Committed: https://opendev.org/openstack/tripleo-common/commit/c30505b0a89d3a0f8f2a69044d28a9daad0d98a2
Submitter: "Zuul (22348)"
Branch: stable/zed

commit c30505b0a89d3a0f8f2a69044d28a9daad0d98a2
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:17:37 2022 +0900

    Adapt to tox 4.x

    skipdist=True does not work with latest tox 4.x.

    Also, skip_install=True without any deps causes the following task
    failure in CI, because the log directory is no longer created. This
    change ensures we use the individual environment instead of using
    a different environment.

    TASK [tox : Install any sibling python packages]
    ...
    ubuntu-jammy | FileNotFoundError: [Errno 2] No such file or directory:
    '/home/zuul/src/opendev.org/openstack/tripleo-common/.tox/pep8/log/
    pep8-siblings.txt'

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: I638649e0722011ad39cc94f0cc0bfcf65cf1518b
    (cherry picked from commit 93c21833829cc5731057586e9c5cb2140ea2d646)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/869033
Committed: https://opendev.org/openstack/python-tripleoclient/commit/fcb9861d80708f9a150b93d5c79c9623a221ee89
Submitter: "Zuul (22348)"
Branch: stable/zed

commit fcb9861d80708f9a150b93d5c79c9623a221ee89
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:18:18 2022 +0900

    Remove tox skipdist=True

    This does not work with latest tox 4.x.

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: Iccf25bd75c2d11aee54f8846c69f7797a170edaf
    (cherry picked from commit 35f2d79eea6c5167bc86af50b0181145f3ad32b6)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-common/+/869039

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/869040

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/869039
Committed: https://opendev.org/openstack/tripleo-common/commit/8a72ca13e9b0325cf94e5b2f47725210f1b98835
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 8a72ca13e9b0325cf94e5b2f47725210f1b98835
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:17:37 2022 +0900

    Adapt to tox 4.x

    skipdist=True does not work with latest tox 4.x.

    Also, skip_install=True without any deps causes the following task
    failure in CI, because the log directory is no longer created. This
    change ensures we use the individual environment instead of using
    a different environment.

    TASK [tox : Install any sibling python packages]
    ...
    ubuntu-jammy | FileNotFoundError: [Errno 2] No such file or directory:
    '/home/zuul/src/opendev.org/openstack/tripleo-common/.tox/pep8/log/
    pep8-siblings.txt'

    Also includes Ia66c28fb935a127102982f8b644397fd35b09a96.

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: I638649e0722011ad39cc94f0cc0bfcf65cf1518b
    (cherry picked from commit 93c21833829cc5731057586e9c5cb2140ea2d646)
    (cherry picked from commit c30505b0a89d3a0f8f2a69044d28a9daad0d98a2)
    (cherry picked from commit 9532e28e579016ad17d5a29ead2c231f38af191d)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/869040
Committed: https://opendev.org/openstack/python-tripleoclient/commit/b751bcdc3802428a46fcf8fba945241d4fd47183
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit b751bcdc3802428a46fcf8fba945241d4fd47183
Author: Takashi Kajinami <email address hidden>
Date: Fri Dec 23 16:18:18 2022 +0900

    Remove tox skipdist=True

    This does not work with latest tox 4.x.

    Also includes Icba1345ce6ab9819ad5683c3227573fb961c7f0d.

    Closes-Bug: #2000357
    Co-Authored-By: Rabi Mishra <email address hidden>
    Change-Id: Iccf25bd75c2d11aee54f8846c69f7797a170edaf
    (cherry picked from commit 35f2d79eea6c5167bc86af50b0181145f3ad32b6)
    (cherry picked from commit fcb9861d80708f9a150b93d5c79c9623a221ee89)
    (cherry picked from commit 3c66b09cd3375fb1568cfcbda752944e8863fabf)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/869032
Committed: https://opendev.org/openstack/tripleo-ansible/commit/df161e5cbe5da6492c62f727e16edbedcb9602a3
Submitter: "Zuul (22348)"
Branch: stable/zed

commit df161e5cbe5da6492c62f727e16edbedcb9602a3
Author: rabi <email address hidden>
Date: Fri Dec 23 12:30:43 2022 +0530

    Remove tox skipdist=True

    This does not work with latest tox 4.x.
    Also fixes few other issues in tox.ini.

    This also includes I1c2289a1cff56a4f9a0ecf9aec81765e1046a4b5.

    Closes-Bug: #2000357
    Change-Id: Ia3fe0e1de08f47ec434d04a5baae2b476132be19
    (cherry picked from commit 254ff2bd1ccc2c9c4afe61ed617df22448652a3e
     and 7759985e8dfb339eec23a309762c6be825fb1060)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-docs (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-docs/+/868574
Committed: https://opendev.org/openstack/tripleo-docs/commit/62518a75e542da136a6019e2d90054b39d267e44
Submitter: "Zuul (22348)"
Branch: master

commit 62518a75e542da136a6019e2d90054b39d267e44
Author: rabi <email address hidden>
Date: Mon Dec 26 09:10:05 2022 +0530

    Remove tox skipdist=True

    This does not work with latest tox 4.x.
    Also makes changes to make tox.ini latest tox
    compatible.

    Closes-Bug: #2000357
    Change-Id: I76666a3931b542e0859be58ae0426cd5f36fb347

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-operator-ansible (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/868472
Reason: tripleo master is being retired

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.