Bug 1859086 - Broken tempest - Request (main): 502 PUT ends with Unhandled error: tempest.lib.exceptions.UnexpectedResponseCode: Unexpected response code received
Summary: Broken tempest - Request (main): 502 PUT ends with Unhandled error: tempest....
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tempestconf
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-21 08:40 UTC by Ronnie Rasouli
Modified: 2023-09-15 01:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-28 07:54:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-6493 0 None None None 2022-08-10 16:19:54 UTC

Comment 1 Martin Kopec 2020-07-22 14:41:14 UTC
Adding the bug description as a non private comment for better transparency:

"""
Image uploading ends up with error that breaks the tempest setup after overcloud osp16 setup.

2020-07-20 08:38:48.707 314624 INFO config_tempest.constants [-] Uploading image 'cirros-0.4.0-x86_64-disk.img' from '/home/stack/tempest-dir/etc/cirros-0.4.0-x86_64-disk.img'
2020-07-20 08:38:48.936 314624 INFO tempest.lib.common.rest_client [req-23ecbddd-27eb-49e5-89e9-73410f2e82d3 ] Request (main): 201 POST https://10.0.0.101:13292/v2/images 0.227s
2020-07-20 08:38:52.466 314624 INFO tempest.lib.common.rest_client [-] Request (main): 502 PUT https://XX.XX.XX.XX:13292/v2/images/2e68f74a-d2d2-44b7-8ae5-2613cec3b8f5/file 3.528s
2020-07-20 08:38:52.466 314624 CRITICAL tempest [-] Unhandled error: tempest.lib.exceptions.UnexpectedResponseCode: Unexpected response code received
Details: 502
2020-07-20 08:38:52.466 314624 ERROR tempest Traceback (most recent call last):
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/bin/discover-tempest-config", line 10, in <module>
2020-07-20 08:38:52.466 314624 ERROR tempest     sys.exit(main())
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/config_tempest/main.py", line 606, in main
2020-07-20 08:38:52.466 314624 ERROR tempest     verbose=args.verbose
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/config_tempest/main.py", line 545, in config_tempest
2020-07-20 08:38:52.466 314624 ERROR tempest     image.create_tempest_images(conf)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 113, in create_tempest_images
2020-07-20 08:38:52.466 314624 ERROR tempest     image_dest=img_path)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 161, in find_or_upload_image
2020-07-20 08:38:52.466 314624 ERROR tempest     image = self._upload_image(image_name, image_dest)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 212, in _upload_image
2020-07-20 08:38:52.466 314624 ERROR tempest     self.client.store_image_file(image['id'], data)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/tempest/lib/services/image/v2/images_client.py", line 151, in store_image_file
2020-07-20 08:38:52.466 314624 ERROR tempest     body=data, chunked=True)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 687, in request
2020-07-20 08:38:52.466 314624 ERROR tempest     self._error_checker(resp, resp_body)
2020-07-20 08:38:52.466 314624 ERROR tempest   File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 868, in _error_checker
2020-07-20 08:38:52.466 314624 ERROR tempest     resp=resp)
2020-07-20 08:38:52.466 314624 ERROR tempest tempest.lib.exceptions.UnexpectedResponseCode: Unexpected response code received
2020-07-20 08:38:52.466 314624 ERROR tempest Details: 502
2020-07-20 08:38:52.466 314624 ERROR tempest 


Version-Release number of selected component (if applicable):
openstack-tempest-23.0.0-0.20200225221147.d432237.el8ost.noarch
puppet-glance-15.4.1-0.20200403211535.a9b1a12.el8ost.noarch
python3-glanceclient-2.17.0-0.20200225114356.40c19aa.el8ost.noarch
"""

Comment 2 Martin Kopec 2020-07-22 14:43:52 UTC
I believe that the problem is that glance service is not up/running after the upgrade at least at the time of discover-tempest-config execution. To test my theory, would it possible to add a check in the job to test if all the services are running properly after the upgrade and before the python-tempestconf/tempest execution?

Comment 3 Martin Kopec 2021-07-28 07:54:56 UTC
Closing as NOT A BUG in python-tempestconf component.

Comment 4 Red Hat Bugzilla 2023-09-15 01:30:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days


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