Bug 1923787

Summary: octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py", line 22 No module named 'httpcore'
Product: Red Hat OpenStack Reporter: wes hayutin <whayutin>
Component: python-httpxAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: OSP Team <rhos-maint>
Severity: urgent Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: cgoncalves, hrybacki, jjoyce, mburns, shrjoshi, ykarel
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-httpx-0.17.1-1.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:13:29 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 wes hayutin 2021-02-01 22:09:11 UTC
Description of problem:

 Failures during discovery
2021-01-31 19:13:02.156686 | primary | =========================
2021-01-31 19:13:02.157913 | primary | --- import errors ---
2021-01-31 19:13:02.157933 | primary | Failed to import test module: octavia_tempest_plugin.tests.barbican_scenario.v2.test_tls_barbican
2021-01-31 19:13:02.157939 | primary | Traceback (most recent call last):
2021-01-31 19:13:02.157943 | primary |   File "/usr/lib64/python3.6/unittest/loader.py", line 428, in _find_test_path
2021-01-31 19:13:02.157947 | primary |     module = self._get_module_from_name(name)
2021-01-31 19:13:02.157952 | primary |   File "/usr/lib64/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2021-01-31 19:13:02.157956 | primary |     __import__(name)
2021-01-31 19:13:02.157969 | primary |   File "/usr/lib/python3.6/site-packages/octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py", line 22, in <module>
2021-01-31 19:13:02.157982 | primary |     import httpx
2021-01-31 19:13:02.157988 | primary |   File "/usr/lib/python3.6/site-packages/httpx/__init__.py", line 2, in <module>
2021-01-31 19:13:02.157993 | primary |     from ._api import delete, get, head, options, patch, post, put, request, stream
2021-01-31 19:13:02.157999 | primary |   File "/usr/lib/python3.6/site-packages/httpx/_api.py", line 3, in <module>
2021-01-31 19:13:02.158005 | primary |     from ._client import Client, StreamContextManager
2021-01-31 19:13:02.158011 | primary |   File "/usr/lib/python3.6/site-packages/httpx/_client.py", line 7, in <module>
2021-01-31 19:13:02.158017 | primary |     import httpcore
2021-01-31 19:13:02.158024 | primary | ModuleNotFoundError: No module named 'httpcore'
2021-01-31 19:13:02.158030 | primary |
2021-01-31 19:13:02.158036 | primary | ================================================================================
2021-01-31 19:13:02.158042 | primary | The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

Comment 1 Carlos Goncalves 2021-02-02 08:31:01 UTC
It seems the work in BZ #1920039 to package httpx missed at least dependency of httpcore.
httpcore was packaged in RDO a while ago along with many other httpx dependencies -- https://review.rdoproject.org/r/#/c/29827/

Comment 2 Yatin Karel 2021-02-03 14:47:21 UTC
Actually httpcore package is available in osp17, issue is httpx is missing dep on httpcore and would need https://github.com/rdo-common/python-httpx/commit/2c4a96c7c67997920a93183d71c4ea9a6f1b6090 or can rebuild https://cbs.centos.org/koji/buildinfo?buildID=31424 against osp17.

Comment 4 Jon Schlueter 2021-02-03 15:29:37 UTC
internal build available

Comment 14 errata-xmlrpc 2022-09-21 12:13:29 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543