From c20cd8ed9d0294e99293cdcb5eea0885a5a12573 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 24 Nov 2021 01:35:29 +0900 Subject: [PATCH] cinder-backup: Ensure ca cert is defined when tls-proxy is enabled Change-Id: Id679eb7061d8e609ce76fbb5b720a041990e8e86 --- lib/cinder_backups/swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cinder_backups/swift b/lib/cinder_backups/swift index d7c977e1e3..c7ec306246 100644 --- a/lib/cinder_backups/swift +++ b/lib/cinder_backups/swift @@ -24,6 +24,9 @@ function configure_cinder_backup_swift { # to use it. iniset $CINDER_CONF DEFAULT backup_driver "cinder.backup.drivers.swift.SwiftBackupDriver" iniset $CINDER_CONF DEFAULT backup_swift_url "$SWIFT_SERVICE_PROTOCOL://$SERVICE_HOST:$SWIFT_DEFAULT_BIND_PORT/v1/AUTH_" + if is_service_enabled tls-proxy; then + iniset $CINDER_CONF DEFAULT backup_swift_ca_cert_file $SSL_BUNDLE_FILE + fi } # init_cinder_backup_swift: nothing to do