test_100_create_image auth failure jammy-yoga

Bug #1988491 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Swift Proxy Charm
Fix Committed
Undecided
Unassigned

Bug Description

2022-09-01 19:47:16 [INFO] ======================================================================
2022-09-01 19:47:16 [INFO] ERROR: test_100_create_image (zaza.openstack.charm_tests.swift.tests.SwiftImageCreateTest)
2022-09-01 19:47:16 [INFO] Create an image and do simple validation of image in swift.
2022-09-01 19:47:16 [INFO] ----------------------------------------------------------------------
2022-09-01 19:47:16 [INFO] Traceback (most recent call last):
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/swift/tests.py", line 51, in test_100_create_image
2022-09-01 19:47:16 [INFO] glance_setup.add_lts_image(image_name=self.image_name)
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/glance/setup.py", line 164, in add_lts_image
2022-09-01 19:47:16 [INFO] add_image(image_url,
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/glance/setup.py", line 100, in add_image
2022-09-01 19:47:16 [INFO] openstack_utils.create_image(
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/utilities/openstack.py", line 2598, in create_image
2022-09-01 19:47:16 [INFO] image = upload_image_to_glance(
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/utilities/openstack.py", line 2542, in upload_image_to_glance
2022-09-01 19:47:16 [INFO] glance.images.upload(
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/glanceclient/common/utils.py", line 598, in inner
2022-09-01 19:47:16 [INFO] return RequestIdProxy(wrapped(*args, **kwargs))
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/glanceclient/v2/images.py", line 288, in upload
2022-09-01 19:47:16 [INFO] resp, body = self.http_client.put(url, headers=hdrs, data=body)
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/keystoneauth1/adapter.py", line 404, in put
2022-09-01 19:47:16 [INFO] return self.request(url, 'PUT', **kwargs)
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/glanceclient/common/http.py", line 387, in request
2022-09-01 19:47:16 [INFO] return self._handle_response(resp)
2022-09-01 19:47:16 [INFO] File "/mnt/release-tools/charms/swift-storage/.tox/func-target/lib/python3.8/site-packages/glanceclient/common/http.py", line 126, in _handle_response
2022-09-01 19:47:16 [INFO] raise exc.from_response(resp, resp.content)
2022-09-01 19:47:16 [INFO] glanceclient.exc.HTTPInternalServerError: HTTP 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation.
2022-09-01 19:47:16 [INFO] ----------------------------------------------------------------------
2022-09-01 19:47:16 [INFO] Ran 1 test in 45.974s
2022-09-01 19:47:16 [INFO] FAILED

swift-proxy's log shows:
Bad response code while validating token: 400 Expecting to find domain in user. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.

Changed in charm-swift-proxy:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-swift-proxy (master)

Reviewed: https://review.opendev.org/c/openstack/charm-swift-proxy/+/847513
Committed: https://opendev.org/openstack/charm-swift-proxy/commit/745a89a7c1b1837b72bf36bf9ff2024d40de8fac
Submitter: "Zuul (22348)"
Branch: master

commit 745a89a7c1b1837b72bf36bf9ff2024d40de8fac
Author: Corey Bryant <email address hidden>
Date: Fri Jun 10 20:14:49 2022 +0000

    Add Kinetic and Zed support

    * sync charm-helpers to classic charms
    * change openstack-origin/source default to zed
    * align testing with zed
    * add new zed bundles
    * add zed bundles to tests.yaml
    * add zed tests to osci.yaml and .zuul.yaml
    * update build-on and run-on bases
    * add bindep.txt for py310
    * sync tox.ini and requirements.txt for ruamel
    * use charmcraft_channel 2.0/stable
    * drop reactive plugin overrides
    * move interface/layer env vars to charmcraft.yaml
    * add domain/project to auth section of yoga proxy-server.conf

    Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
    Closes-Bug: #1988491

Changed in charm-swift-proxy:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.