Bug 2116451

Summary: ImportError 'h2' package is not installed for octavia_tempest_plugin/tests/barbican_scenario
Product: Red Hat OpenStack Reporter: Mikolaj Ciecierski <mciecier>
Component: python-h2Assignee: Gregory Thiemonge <gthiemon>
Status: CLOSED ERRATA QA Contact: OSP Team <rhos-maint>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: gthiemon, jcapitao, jjoyce, jschluet, ltoscano, mburns, mgarciac, oschwart, ralonsoh, shrjoshi
Target Milestone: betaKeywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-h2-4.0.0-3.1.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 01:11:45 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:
Bug Depends On: 2160471    
Bug Blocks:    

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