summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorAndrew Laski <andrew.laski@rackspace.com>2012-12-07 14:42:29 -0500
committerAndrew Laski <andrew.laski@rackspace.com>2013-01-08 23:16:43 -0500
commit5e520fe223f6dba11717231912b0c00e3e4b1129 (patch)
treec718131f6532ea1ba9518a6c1ea3f592d38aeafa /nova/exception.py
parentb9959b180e8035a0654313be3d6cded2da1d4894 (diff)
downloadnova-5e520fe223f6dba11717231912b0c00e3e4b1129.tar.gz
nova-5e520fe223f6dba11717231912b0c00e3e4b1129.tar.xz
nova-5e520fe223f6dba11717231912b0c00e3e4b1129.zip
New instance_actions and events table, model, and api
These tables will be a place to record actions taken on an instance, and related underlying events. This will provide a log of what has taken place which can aid in debugging or just satisfy curiosity. It will also hold error information in the event that something exceptional occurs during the action. This is setting up the ability to report error information without needing to set the VM to an ERROR state. Blueprint instance-actions Change-Id: I1f793abf0e4df0e4977850127fc41b4750ba2f4f
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 9507a0088..7ec23d32d 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1074,6 +1074,15 @@ class UnexpectedTaskStateError(NovaException):
"the actual state is %(actual)s")
+class InstanceActionNotFound(NovaException):
+ message = _("Action for request_id %(request_id)s on instance"
+ " %(instance_uuid)s not found")
+
+
+class InstanceActionEventNotFound(NovaException):
+ message = _("Event %(event)s not found for action id %(action_id)s")
+
+
class CryptoCAFileNotFound(FileNotFound):
message = _("The CA file for %(project)s could not be found")