diff options
author | Andrew Laski <andrew.laski@rackspace.com> | 2012-12-07 14:42:29 -0500 |
---|---|---|
committer | Andrew Laski <andrew.laski@rackspace.com> | 2013-01-08 23:16:43 -0500 |
commit | 5e520fe223f6dba11717231912b0c00e3e4b1129 (patch) | |
tree | c718131f6532ea1ba9518a6c1ea3f592d38aeafa /nova/exception.py | |
parent | b9959b180e8035a0654313be3d6cded2da1d4894 (diff) | |
download | nova-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.py | 9 |
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") |