Bug 1558378
Summary: | QOS unit tests fail with "TypeError: 'Version' object does not support indexing" | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Arie Bregman <abregman> |
Component: | python-oslo-utils | Assignee: | Jakub Libosvar <jlibosva> |
Status: | CLOSED ERRATA | QA Contact: | Toni Freger <tfreger> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 12.0 (Pike) | CC: | amuller, apevec, bcafarel, bhaley, chrisw, jamsmith, jlibosva, lhh, majopela, nyechiel, srevivo, vstinner |
Target Milestone: | z3 | Keywords: | Triaged, ZStream |
Target Release: | 12.0 (Pike) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-oslo-utils-3.28.2-1.el7ost | Doc Type: | Rebase: Bug Fixes Only |
Doc Text: |
In this update, the python-oslo-utils is rebased to version 3.28.2 to ensure compatibility with setuptools version 39 and newer.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-08-20 12:53:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Arie Bregman
2018-03-20 06:43:24 UTC
OSP 10 and 11 are also affected Upstream is busted too Upstream recap mail: http://lists.openstack.org/pipermail/openstack-dev/2018-March/128529.html This bug has been fixed upstream in oslo.utils 3.28.2 (for OpenStack Pike, OSP 12): * https://review.openstack.org/#/c/554053/ * https://bugs.launchpad.net/oslo.utils/+bug/1706394 oslo.utils will be upgraded to 3.28.2 as the next "Rebase" batch. The previous batch upgraded it to 3.28.1: bz#1545607 See also bz#1561020 which is the same bug. This bz has been marked as NOTABUG, since the issue was caused by setuptools upgraded manually using pip in an Ansible playbook. "QOS unit tests fail with TypeError: ..." Please check if setuptools is upgraded manually to the latest version. I bet that setuptools was upgraded manually using pip, and not properly installed from a RPM package. The workaround is to prevent upgrading setuptools using pip. Usually, it's not a good practice to upgrade a Python module using pip when it has been installed by RPM. (In reply to Victor Stinner from comment #7) > This bug has been fixed upstream in oslo.utils 3.28.2 (for OpenStack Pike, > OSP 12): > > * https://review.openstack.org/#/c/554053/ > * https://bugs.launchpad.net/oslo.utils/+bug/1706394 > > oslo.utils will be upgraded to 3.28.2 as the next "Rebase" batch. The > previous batch upgraded it to 3.28.1: bz#1545607 > > See also bz#1561020 which is the same bug. This bz has been marked as > NOTABUG, since the issue was caused by setuptools upgraded manually using > pip in an Ansible playbook. Shouldn't we wait here for downstream rebase to 3.28.2 that contains the workaround for cases where setuptools was actually upgraded by pip? That's my plan: wait for downstream rebase to 3.28.2. python-oslo-utils-3.28.2-1.el7ost package is now available for tests. Works fine now :) I updated the DocText field. 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/RHBA-2018:2521 |