From 8efb0211669f344812ae9a7d2b5435a68a9a2687 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Wed, 5 Mar 2014 15:15:15 -0800 Subject: [PATCH] Log the command output on CertificateConfigError In auth_token middleware if the CertificateConfigError is raise for a reason other than the certificate file missing or the ca cert file missing, log the actual output from the verify comment to aid in correcting the issue. Related-Bug: #1285833 Change-Id: I6b469b9037b7ef59993132f87a75152149ee6310 --- keystoneclient/middleware/auth_token.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keystoneclient/middleware/auth_token.py b/keystoneclient/middleware/auth_token.py index 427e7c5c6..d6aac449f 100644 --- a/keystoneclient/middleware/auth_token.py +++ b/keystoneclient/middleware/auth_token.py @@ -1259,6 +1259,7 @@ class AuthProtocol(object): self.signing_ca_file_name): self.fetch_ca_cert() continue + self.LOG.error('CMS Verify output: %s', err.output) raise except cms.subprocess.CalledProcessError as err: self.LOG.warning('Verify error: %s', err)