summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorChris Yeoh <cyeoh@au1.ibm.com>2012-08-25 15:51:37 +0930
committerChris Yeoh <cyeoh@au1.ibm.com>2012-09-12 14:33:57 +0930
commit0d2523f029b291817551e33fe15cd7ab33fe2102 (patch)
tree032bb7ce112be21a8483f8f431897c1ab331e440 /nova/exception.py
parent511807ed248fbe63cb6642c1cff6e0bd4bb8ae5d (diff)
downloadnova-0d2523f029b291817551e33fe15cd7ab33fe2102.tar.gz
nova-0d2523f029b291817551e33fe15cd7ab33fe2102.tar.xz
nova-0d2523f029b291817551e33fe15cd7ab33fe2102.zip
Stop fetch_ca from throwing IOError exceptions
Fixes bug #883300 Fixes problem where fetch_ca could throw an IOError exception rather than a Nova specific exception. Adds FileError exception. Fixes other functions in crypto.py that had very similar problems. Change-Id: Ic2e43c35ad58c67d33156c53d2a41910dfdf8678
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 1f51a08b5..e2db0dad8 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1100,6 +1100,14 @@ class UnexpectedTaskStateError(NovaException):
"the actual state is %(actual)s")
+class CryptoCAFileNotFound(FileNotFound):
+ message = _("The CA file for %(project)s could not be found")
+
+
+class CryptoCRLFileNotFound(FileNotFound):
+ message = _("The CRL file for %(project)s could not be found")
+
+
def get_context_from_function_and_args(function, args, kwargs):
"""Find an arg of type RequestContext and return it.