Bug 2170139 - Rebase to python-wsgi_intercept 1.8.1
Summary: Rebase to python-wsgi_intercept 1.8.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-wsgi_intercept
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: z5
: 16.2 (Train on RHEL 8.4)
Assignee: Lon Hohberger
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-15 18:46 UTC by Artom Lifshitz
Modified: 2023-09-19 04:33 UTC (History)
6 users (show)

Fixed In Version: python-wsgi_intercept-1.8.1-1.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-26 12:17:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-22446 0 None None None 2023-02-15 21:26:54 UTC
Red Hat Product Errata RHBA-2023:1763 0 None None None 2023-04-26 12:18:07 UTC

Description Artom Lifshitz 2023-02-15 18:46:11 UTC
Description of problem:

We're currently packaging, and depending on, python-wsgi_intercept 1.2.2. This does not work in functional tests (which I guess we never ran from RPMs?), as evidenced by [1]. We need >= 1.7.0 as per upstream's test-requirements.txt. Please  rebase to 1.8.1.

Version-Release number of selected component (if applicable):

python-wsgi_intercept 1.2.2

How reproducible:

Consistently and deterministically.

Steps to Reproduce:

1. Run Nova functional tests from RPMs (not pypi)

Actual results:

All tests fail in the placement fixture with the following stacktrace:

  Traceback (most recent call last):
  File "/home/zuul/src/code.engineering.redhat.com/nova/nova/tests/functional/api_sample_tests/test_servers.py", line 103, in setUp
    super(ServersSampleBase, self).setUp()
  File "/home/zuul/src/code.engineering.redhat.com/nova/nova/tests/functional/api_sample_tests/api_sample_base.py", line 113, in setUp
    super(ApiSampleTestBaseV21, self).setUp()
  File "/home/zuul/src/code.engineering.redhat.com/nova/nova/tests/functional/integrated_helpers.py", line 113, in setUp
    placement = self.useFixture(func_fixtures.PlacementFixture())
  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
    reraise(*exc_info)
  File "/usr/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
    raise exc_obj.with_traceback(exc_tb)
  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
    fixture.setUp()
  File "/home/zuul/src/code.engineering.redhat.com/nova/nova/tests/functional/fixtures.py", line 66, in setUp
    super(PlacementFixture, self).setUp()
  File "/usr/lib/python3.6/site-packages/placement/tests/functional/fixtures/placement.py", line 85, in setUp
    intercept = interceptor.RequestsInterceptor(app, url=self.endpoint)
  File "/usr/lib/python3.6/site-packages/wsgi_intercept/interceptor.py", line 35, in __init__
    self._init_from_url(url)
  File "/usr/lib/python3.6/site-packages/wsgi_intercept/interceptor.py", line 70, in _init_from_url
    host, port = parsed_url.netloc.split(':')
ValueError: not enough values to unpack (expected 2, got 1)

Expected results:

Tests pass.

Additional info:

[1] https://code.engineering.redhat.com/gerrit/c/nova/+/439279

Comment 16 errata-xmlrpc 2023-04-26 12:17:48 UTC
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 (Red Hat OpenStack Platform 16.2.5 (Train) bug fix and enhancement 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-2023:1763

Comment 17 Red Hat Bugzilla 2023-09-19 04:33:41 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.