Skip to content

Commit 8832cef

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "When we failed to load pkcs12 cert print warning" into stable/2023.2
2 parents c0cd920 + dbe59b8 commit 8832cef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

octavia/certificates/manager/barbican.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def get_cert(self, context, cert_ref, resource_ref=None, check_only=False,
115115
return pkcs12.PKCS12Cert(cert_secret.payload)
116116
except exceptions.UnreadablePKCS12:
117117
raise
118-
except Exception:
118+
except Exception as e:
119+
LOG.warning('Failed to load PKCS12Cert for secret %s with %s',
120+
cert_ref, str(e))
121+
LOG.warning('Falling back to the barbican_legacy implementation.')
119122
# If our get fails, try with the legacy driver.
120123
# TODO(rm_work): Remove this code when the deprecation cycle for
121124
# the legacy driver is complete.

0 commit comments

Comments
 (0)