Bug 1721397 - RHEL8 Amphora image fails tempest tests due to a Python3 issue
Summary: RHEL8 Amphora image fails tempest tests due to a Python3 issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 15.0 (Stein)
Assignee: Carlos Goncalves
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-18 08:19 UTC by Nir Magnezi
Modified: 2019-09-26 10:52 UTC (History)
7 users (show)

Fixed In Version: openstack-octavia-4.0.2-0.20190618180410.0598806.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:23:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tempest.log (6.49 MB, text/plain)
2019-06-18 08:20 UTC, Nir Magnezi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 665498 0 None MERGED Fix a python3 issue in the amphora-agent 2020-07-30 13:11:09 UTC
OpenStack gerrit 665698 0 None MERGED Fix a python3 issue in the amphora-agent 2020-07-30 13:11:09 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:23:36 UTC

Description Nir Magnezi 2019-06-18 08:19:28 UTC
Description of problem:
================
The RHEL8 based amphora image currently fails on five tempest tests:

octavia_tempest_plugin.tests.api.v2.test_l7policy.L7PolicyAPITest.test_l7policy_list
octavia_tempest_plugin.tests.api.v2.test_l7policy.L7PolicyAPITest.test_l7policy_show
octavia_tempest_plugin.tests.api.v2.test_l7policy.L7PolicyAPITest.test_l7policy_update
octavia_tempest_plugin.tests.api.v2.test_listener.ListenerAPITest.test_listener_list
octavia_tempest_plugin.tests.api.v2.test_load_balancer.LoadBalancerAPITest.test_load_balancer_ipv6_create


Captured the following Trace from a working Amphora:

ERROR flask.app Traceback (most recent call last):
ERROR flask.app   File "/usr/lib/python3.6/site-packages/octavia/amphorae/backends/agent/api_server/listener.py", line 260, in start_stop_listener
ERROR flask.app     subprocess.check_output(cmd.split(), stderr=subprocess.STDOUT)
ERROR flask.app   File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
ERROR flask.app     **kwargs).stdout
ERROR flask.app   File "/usr/lib64/python3.6/subprocess.py", line 438, in run
ERROR flask.app     output=stdout, stderr=stderr)
ERROR flask.app subprocess.CalledProcessError: Command '['/usr/sbin/service', 'haproxy-33b98b82-087c-4d3f-92f8-fe905244d0b2', 'reload']' returned non-zero exit status 1.
ERRPR flask.app
ERROR flask.app During handling of the above exception, another exception occurred:
ERROR flask.app
ERROR flask.app Traceback (most recent call last):
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
ERROR flask.app     response = self.full_dispatch_request()
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
ERROR flask.app     rv = self.handle_user_exception(e)
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
ERROR flask.app     reraise(exc_type, exc_value, tb)
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
ERROR flask.app     raise value
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
ERROR flask.app     rv = self.dispatch_request()
ERROR flask.app   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
ERROR flask.app     return self.view_functions[rule.endpoint](**req.view_args)
ERROR flask.app   File "/usr/lib/python3.6/site-packages/octavia/amphorae/backends/agent/api_server/server.py", line 153, in start_stop_listener
ERROR flask.app     return self._listener.start_stop_listener(listener_id, action)
flask.app   File "/usr/lib/python3.6/site-packages/octavia/amphorae/backends/agent/api_server/listener.py", line 262, in start_stop_listener
ERROR flask.app     if 'Job is already running' not in e.output:
ERROR flask.app TypeError: a bytes-like object is required, not 'str'

Possible fix: https://review.opendev.org/#/c/665698/

Version-Release number of selected component (if applicable):
==========================================
OSP15: octavia-amphora-image-x86_64-15.0-20190614.3.el8ost.noarch

How reproducible:
============
Always

Steps to Reproduce:
Run octavia-tempest-plugin tests against an RHEL8 based amphora image  ==> topology=SINGLE

Actual results:
=======
As mentioned above, five failed tests.


Expected results:
=========
All tests should pass


Additional info:
========
Note that SELinux is enforcing, but no AVCs were detected.

Comment 1 Nir Magnezi 2019-06-18 08:20:37 UTC
Created attachment 1581602 [details]
tempest.log

Comment 11 errata-xmlrpc 2019-09-21 11:23:21 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, 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-2019:2811


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