Bug 2116451 - ImportError 'h2' package is not installed for octavia_tempest_plugin/tests/barbican_scenario
Summary: ImportError 'h2' package is not installed for octavia_tempest_plugin/tests/b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-h2
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 17.1
Assignee: Gregory Thiemonge
QA Contact: OSP Team
URL:
Whiteboard:
: 2160409 (view as bug list)
Depends On: 2160471
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-08 14:21 UTC by Mikolaj Ciecierski
Modified: 2023-08-16 01:12 UTC (History)
10 users (show)

Fixed In Version: python-h2-4.0.0-3.1.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:11:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 44569 0 None None None 2022-08-18 09:54:10 UTC
RDO 44571 0 None None None 2022-12-15 15:08:51 UTC
RDO 44572 0 None None None 2022-12-15 15:08:51 UTC
RDO 44573 0 None None None 2022-12-15 15:08:51 UTC
Red Hat Issue Tracker OSP-18100 0 None None None 2022-08-08 14:44:45 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:12:13 UTC

Description Mikolaj Ciecierski 2022-08-08 14:21:37 UTC
Description of problem:

While executing octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py,
the test is failing with error:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py", line 1246, in test_http_2_tls_traffic
    self.test_http_versions_tls_traffic('HTTP/2', ['h2', 'http/1.1'])
  File "/usr/lib/python3.9/site-packages/octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py", line 1240, in test_http_versions_tls_traffic
    client = httpx.Client(http2=(http_version == 'HTTP/2'), verify=context)
  File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 590, in __init
    raise ImportError(
ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using pip install httpx[http2].


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


How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Luigi Toscano 2022-08-08 15:25:05 UTC
The question is: should the python-octavia-tests-tempest RPM unconditionally depend on the python3-h2 package?

Comment 4 Gregory Thiemonge 2022-08-18 06:20:47 UTC
(In reply to Luigi Toscano from comment #2)
> The question is: should the python-octavia-tests-tempest RPM unconditionally
> depend on the python3-h2 package?

Yes I think so, but it seems that python3-h2 is not available in RHEL

Comment 5 Luigi Toscano 2022-08-18 08:02:27 UTC
(In reply to Gregory Thiemonge from comment #4)
> (In reply to Luigi Toscano from comment #2)
> > The question is: should the python-octavia-tests-tempest RPM unconditionally
> > depend on the python3-h2 package?
> 
> Yes I think so, but it seems that python3-h2 is not available in RHEL

It is in the RDO repositories, which means it can become available for RHOSP. Should we propose a change to the spec file of the RDO repository?

Comment 6 Gregory Thiemonge 2022-08-18 09:54:10 UTC
(In reply to Luigi Toscano from comment #5)
> (In reply to Gregory Thiemonge from comment #4)
> > (In reply to Luigi Toscano from comment #2)
> > > The question is: should the python-octavia-tests-tempest RPM unconditionally
> > > depend on the python3-h2 package?
> > 
> > Yes I think so, but it seems that python3-h2 is not available in RHEL
> 
> It is in the RDO repositories, which means it can become available for
> RHOSP. Should we propose a change to the spec file of the RDO repository?

Thanks,
I have proposed a patch https://review.rdoproject.org/r/c/openstack/octavia-tempest-plugin-distgit/+/44569

Comment 8 Joel Capitao 2022-12-15 15:08:51 UTC
(In reply to Gregory Thiemonge from comment #6)
> (In reply to Luigi Toscano from comment #5)
> > (In reply to Gregory Thiemonge from comment #4)
> > > (In reply to Luigi Toscano from comment #2)
> > > > The question is: should the python-octavia-tests-tempest RPM unconditionally
> > > > depend on the python3-h2 package?
> > > 
> > > Yes I think so, but it seems that python3-h2 is not available in RHEL
> > 
> > It is in the RDO repositories, which means it can become available for
> > RHOSP. Should we propose a change to the spec file of the RDO repository?
> 
> Thanks,
> I have proposed a patch
> https://review.rdoproject.org/r/c/openstack/octavia-tempest-plugin-distgit/+/
> 44569

The patch above has been merged in master and backported in Yoga, Xena and Wallaby [1].


[1] https://review.rdoproject.org/r/q/Ibd6630b0a18188d7344a96ff0c376650d76abd1f

Comment 12 Tom Weininger 2023-01-17 15:40:09 UTC
*** Bug 2160409 has been marked as a duplicate of this bug. ***

Comment 26 errata-xmlrpc 2023-08-16 01:11:45 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.1 (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-2023:4577


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