Fix guest agent failed to use swiftclient over TLS

This commit adds insecure=True parameter to swiftclient.

Story: #2010674
Task: #47748
Change-Id: I6156b289659dc9130effb1666c3cd2e14366bffe
This commit is contained in:
wu.chunyang 2023-11-16 22:50:28 +08:00 committed by wu.chunyang
parent aacc4a6917
commit 895e59237e
3 changed files with 10 additions and 2 deletions

View File

@ -43,7 +43,9 @@ def _get_service_client(auth_url, token, tenant_id, region_name=None):
os_options = {
'region_name': region_name
}
return swiftclient.Connection(session=sess, os_options=os_options)
return swiftclient.Connection(session=sess,
os_options=os_options,
insecure=True)
def _set_attr(original):

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fix a bug where swift client in the trove guest instance failed to verify
certification against the self-signed certificate authority.
`Story 2010674 <https://storyboard.openstack.org/#!/story/2010674>`__

View File

@ -82,7 +82,7 @@
s-container: true
s-object: true
s-proxy: true
tls-proxy: false
tls-proxy: true
tempest: true
q-svc: true
q-agt: true