openstack-tox-py37 fails with " AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'"

Bug #1961302 reported by Jiri Podivin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Jiri Podivin

Bug Description

The stable/ussuri and stable/train branches of openstack/tripleo-validations repo are affected by a bug causing openstack-tox-py37 job to fail.

While the ultimate cause is yet unknown it is possible that the issue lies in one of the patches to the tox.ini or zuul configuration files that wasn't backported.

Diagnostic is in progress.

Trace:
------
 Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "/home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 124, in get_requires_for_build_wheel
          backend = _build_backend()
        File "/home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 102, in _build_backend
          obj = getattr(obj, path_part)
      AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: invocation failed (exit code 1)
ERROR: could not install deps [-c/home/zuul/src/opendev.org/openstack/requirements/upper-constraints.txt, -r/home/zuul/src/opendev.org/openstack/tripleo-validations/requirements.txt, -r/home/zuul/src/opendev.org/openstack/tripleo-validations/test-requirements.txt, -r/home/zuul/src/opendev.org/openstack/tripleo-validations/molecule-requirements.txt]; v = InvocationError('/home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37/bin/python -m pip install -c/home/zuul/src/opendev.org/openstack/requirements/upper-constraints.txt -r/home/zuul/src/opendev.org/openstack/tripleo-validations/requirements.txt -r/home/zuul/src/opendev.org/openstack/tripleo-validations/test-requirements.txt -r/home/zuul/src/opendev.org/openstack/tripleo-validations/molecule-requirements.txt', 1)
py37 finish: getenv /home/zuul/src/opendev.org/openstack/tripleo-validations/.tox/py37 after 44.09 seconds

Logs:
-----
https://68db4884d478eaab0773-a122e892f22a38ddc5f951fb4c0c5ba5.ssl.cf2.rackcdn.com/785645/8/check/openstack-tox-py37/9e81cad/job-output.txt

Job execution records:
----------------------
https://zuul.opendev.org/t/openstack/builds?job_name=openstack-tox-py37&project=openstack%2Ftripleo-validations&skip=0

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/tripleo-validations/+/830153

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/tripleo-validations/+/830154

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/tripleo-validations/+/830155

Jiri Podivin (jpodivin)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/830154
Committed: https://opendev.org/openstack/tripleo-validations/commit/b885a241b9d1c84f1a3f24ea42420148fa989c68
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit b885a241b9d1c84f1a3f24ea42420148fa989c68
Author: Jiri Podivin <email address hidden>
Date: Mon Feb 21 13:49:51 2022 +0100

    [Ussuri-Only] Preventing tox from using local packages

    Usage of packages already present on the host can have unintend
    consenquences during test runs.

    Closes-Bug: #1961302

    Signed-off-by: Jiri Podivin <email address hidden>
    Change-Id: If784d1945b2efed8b7bed30c62067371b014b641
    (cherry picked from commit 4291886c6a9b21c6bafeff9aaf91a99bc00b6a3a)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/train)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/830155
Committed: https://opendev.org/openstack/tripleo-validations/commit/9844302e2619c357dbf3b800f1fc7c0c90c79355
Submitter: "Zuul (22348)"
Branch: stable/train

commit 9844302e2619c357dbf3b800f1fc7c0c90c79355
Author: Jiri Podivin <email address hidden>
Date: Mon Feb 21 13:49:51 2022 +0100

    [Train-Only] Preventing tox from using local packages

    Usage of packages already present on the host can have unintend
    consenquences during test runs.

    Closes-Bug: #1961302

    Signed-off-by: Jiri Podivin <email address hidden>
    Change-Id: If784d1945b2efed8b7bed30c62067371b014b641
    (cherry picked from commit 4291886c6a9b21c6bafeff9aaf91a99bc00b6a3a)
    (cherry picked from commit a0c992beb18e56d86fde2f966056256e0f484e77)

tags: added: in-stable-train
Jiri Podivin (jpodivin)
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/830153
Committed: https://opendev.org/openstack/tripleo-validations/commit/5cabac44ac9ed8e870b73149a468ace26485c2b7
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 5cabac44ac9ed8e870b73149a468ace26485c2b7
Author: Jiri Podivin <email address hidden>
Date: Mon Feb 21 13:49:51 2022 +0100

    [Victoria-Only] Preventing tox from using local packages

    Usage of packages already present on the host can have unintend
    consenquences during test runs.

    Closes-Bug: #1961302

    Signed-off-by: Jiri Podivin <email address hidden>
    Change-Id: If784d1945b2efed8b7bed30c62067371b014b641

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations ussuri-eol

This issue was fixed in the openstack/tripleo-validations ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations 13.5.0

This issue was fixed in the openstack/tripleo-validations 13.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations train-eol

This issue was fixed in the openstack/tripleo-validations train-eol 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.