Merge "Fix 'cinder-backup' service when Swift with TLS enabled" into stable/2023.1

This commit is contained in:
Zuul 2024-05-22 17:58:59 +00:00 committed by Gerrit Code Review
commit 88b8364db5

View File

@ -449,7 +449,8 @@ class SwiftBackupDriver(chunkeddriver.ChunkedBackupDriver):
"possible we could have problems because of it.")
return
conn = swift.Connection(retries=CONF.backup_swift_retry_attempts,
preauthurl=CONF.backup_swift_url)
preauthurl=CONF.backup_swift_url,
cacert=CONF.backup_swift_ca_cert_file)
try:
conn.get_capabilities()
# TODO(e0ne) catch less general exception